Interface ResourceAllocator
-
- All Known Implementing Classes:
NonSupportedResourceAllocatorImpl
public interface ResourceAllocatorResource related actions which theSlotManagercan perform.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcleaningUpDisconnectedResource(ResourceID resourceID)Clean up the disconnected resource with the given resource id.voiddeclareResourceNeeded(Collection<ResourceDeclaration> resourceDeclarations)declare resource need by slot manager.booleanisSupported()Whether allocate/release resources are supported.
-
-
-
Method Detail
-
isSupported
boolean isSupported()
Whether allocate/release resources are supported.
-
cleaningUpDisconnectedResource
void cleaningUpDisconnectedResource(ResourceID resourceID)
Clean up the disconnected resource with the given resource id.- Parameters:
resourceID- identifying which resource to clean up
-
declareResourceNeeded
void declareResourceNeeded(Collection<ResourceDeclaration> resourceDeclarations)
declare resource need by slot manager.
-
-