Interface ResourceAllocator
- All Known Implementing Classes:
NonSupportedResourceAllocatorImpl
public interface ResourceAllocator
Resource related actions which the
SlotManager can perform.-
Method Summary
Modifier and TypeMethodDescriptionvoidcleaningUpDisconnectedResource(ResourceID resourceID) Clean up the disconnected resource with the given resource id.voiddeclareResourceNeeded(Collection<ResourceDeclaration> resourceDeclarations) declare resource need by slot manager.booleanWhether allocate/release resources are supported.
-
Method Details
-
isSupported
boolean isSupported()Whether allocate/release resources are supported. -
cleaningUpDisconnectedResource
Clean up the disconnected resource with the given resource id.- Parameters:
resourceID- identifying which resource to clean up
-
declareResourceNeeded
declare resource need by slot manager.
-