@Singleton public class ResourceManager extends Object implements ResourceManagerService, AutoCloseable
Constructor and Description |
---|
ResourceManager(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
IdManagerService idManager) |
Modifier and Type | Method and Description |
---|---|
Future<org.opendaylight.yangtools.yang.common.RpcResult<AllocateResourceOutput>> |
allocateResource(AllocateResourceInput input) |
void |
close() |
Future<org.opendaylight.yangtools.yang.common.RpcResult<GetAvailableResourcesOutput>> |
getAvailableResources(GetAvailableResourcesInput input) |
Future<org.opendaylight.yangtools.yang.common.RpcResult<GetResourcePoolOutput>> |
getResourcePool(GetResourcePoolInput input) |
Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> |
releaseResource(ReleaseResourceInput input) |
@Inject public ResourceManager(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, IdManagerService idManager)
public Future<org.opendaylight.yangtools.yang.common.RpcResult<AllocateResourceOutput>> allocateResource(AllocateResourceInput input)
allocateResource
in interface ResourceManagerService
public Future<org.opendaylight.yangtools.yang.common.RpcResult<GetResourcePoolOutput>> getResourcePool(GetResourcePoolInput input)
getResourcePool
in interface ResourceManagerService
java.util.concurrent.Future
resourcePool
, or null
if not presentpublic Future<org.opendaylight.yangtools.yang.common.RpcResult<GetAvailableResourcesOutput>> getAvailableResources(GetAvailableResourcesInput input)
getAvailableResources
in interface ResourceManagerService
java.util.concurrent.Future
availableResources
, or null
if not presentpublic Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> releaseResource(ReleaseResourceInput input)
releaseResource
in interface ResourceManagerService
@PreDestroy public void close()
close
in interface AutoCloseable
Copyright © 2019 OpenDaylight. All rights reserved.