@Singleton public class IdManager extends Object implements IdManagerService, IdManagerMonitor
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AllocateIdOutput>> |
allocateId(AllocateIdInput input) |
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AllocateIdRangeOutput>> |
allocateIdRange(AllocateIdRangeInput input) |
void |
close() |
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<CreateIdPoolOutput>> |
createIdPool(CreateIdPoolInput input) |
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<DeleteIdPoolOutput>> |
deleteIdPool(DeleteIdPoolInput input) |
Map<String,String> |
getLocalPoolsDetails()
Obtain description of ID pool/s.
|
void |
poolDeleted(String parentPoolName,
String poolName) |
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ReleaseIdOutput>> |
releaseId(ReleaseIdInput input) |
void |
start() |
boolean |
updateLocalIdPoolCache(IdPool idPool,
String parentPoolName) |
@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
org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
public Map<String,String> getLocalPoolsDetails()
IdManagerMonitor
getLocalPoolsDetails
in interface IdManagerMonitor
@PostConstruct public void start()
@PreDestroy public void close()
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<CreateIdPoolOutput>> createIdPool(CreateIdPoolInput input)
createIdPool
in interface IdManagerService
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AllocateIdOutput>> allocateId(AllocateIdInput input)
allocateId
in interface IdManagerService
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AllocateIdRangeOutput>> allocateIdRange(AllocateIdRangeInput input)
allocateIdRange
in interface IdManagerService
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<DeleteIdPoolOutput>> deleteIdPool(DeleteIdPoolInput input)
deleteIdPool
in interface IdManagerService
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ReleaseIdOutput>> releaseId(ReleaseIdInput input)
releaseId
in interface IdManagerService
Copyright © 2019 OpenDaylight. All rights reserved.