Class IdManager

    • Constructor Detail

      • IdManager

        @Inject
        public IdManager​(org.opendaylight.mdsal.binding.api.DataBroker db,
                         LockManagerService lockManager,
                         IdUtils idUtils,
                         org.opendaylight.daexim.DataImportBootReady dataImportBootReady,
                         org.opendaylight.infrautils.jobcoordinator.JobCoordinator jobCoordinator,
                         ShardStatusMonitor shardStatusMonitor)
                  throws org.opendaylight.mdsal.common.api.ReadFailedException,
                         java.lang.InterruptedException
        Throws:
        org.opendaylight.mdsal.common.api.ReadFailedException
        java.lang.InterruptedException
    • Method Detail

      • getLocalPoolsDetails

        public java.util.Map<java.lang.String,​java.lang.String> getLocalPoolsDetails()
        Description copied from interface: IdManagerMonitor
        Obtain description of ID pool/s. Suitable for usage e.g. by a CLI tool.
        Specified by:
        getLocalPoolsDetails in interface IdManagerMonitor
        Returns:
        Map with poolName as key, and a String describing the pool (e.g. with information about availableIds & releasedIds)
      • start

        @PostConstruct
        public void start()
      • close

        @PreDestroy
        public void close()
      • updateLocalIdPoolCache

        public boolean updateLocalIdPoolCache​(IdPool idPool,
                                              java.lang.String parentPoolName)
      • allocateId

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AllocateIdOutput>> allocateId​(AllocateIdInput input)
        Description copied from interface: IdManagerService
        Invoke allocateId RPC.
        Specified by:
        allocateId in interface IdManagerService
        Parameters:
        input - of allocateId
        Returns:
        output of allocateId
      • releaseId

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ReleaseIdOutput>> releaseId​(ReleaseIdInput input)
        Description copied from interface: IdManagerService
        Invoke releaseId RPC.
        Specified by:
        releaseId in interface IdManagerService
        Parameters:
        input - of releaseId
        Returns:
        output of releaseId
      • poolDeleted

        public void poolDeleted​(java.lang.String parentPoolName,
                                java.lang.String poolName)