Class NonSupportedResourceAllocatorImpl
- java.lang.Object
-
- org.apache.flink.runtime.resourcemanager.slotmanager.NonSupportedResourceAllocatorImpl
-
- All Implemented Interfaces:
ResourceAllocator
public class NonSupportedResourceAllocatorImpl extends Object implements ResourceAllocator
ResourceAllocator that not support to allocate/release resources.
-
-
Field Summary
Fields Modifier and Type Field Description static NonSupportedResourceAllocatorImplINSTANCE
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Field Detail
-
INSTANCE
public static final NonSupportedResourceAllocatorImpl INSTANCE
-
-
Method Detail
-
isSupported
public boolean isSupported()
Description copied from interface:ResourceAllocatorWhether allocate/release resources are supported.- Specified by:
isSupportedin interfaceResourceAllocator
-
cleaningUpDisconnectedResource
public void cleaningUpDisconnectedResource(ResourceID resourceID)
Description copied from interface:ResourceAllocatorClean up the disconnected resource with the given resource id.- Specified by:
cleaningUpDisconnectedResourcein interfaceResourceAllocator- Parameters:
resourceID- identifying which resource to clean up
-
declareResourceNeeded
public void declareResourceNeeded(Collection<ResourceDeclaration> resourceDeclarations)
Description copied from interface:ResourceAllocatordeclare resource need by slot manager.- Specified by:
declareResourceNeededin interfaceResourceAllocator
-
-