Class IdManager

    • Constructor Detail

      • IdManager

        @Inject
        public IdManager​(org.opendaylight.controller.md.sal.binding.api.DataBroker db,
                         LockManagerService lockManager,
                         IdUtils idUtils,
                         org.opendaylight.daexim.DataImportBootReady dataImportBootReady,
                         org.opendaylight.infrautils.jobcoordinator.JobCoordinator jobCoordinator)
                  throws org.opendaylight.controller.md.sal.common.api.data.ReadFailedException,
                         java.lang.InterruptedException
        Throws:
        org.opendaylight.controller.md.sal.common.api.data.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)
      • poolDeleted

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