Class StaticExternalResourceInfoProvider
java.lang.Object
org.apache.flink.runtime.externalresource.StaticExternalResourceInfoProvider
- All Implemented Interfaces:
ExternalResourceInfoProvider
public class StaticExternalResourceInfoProvider
extends Object
implements ExternalResourceInfoProvider
Static implementation of
ExternalResourceInfoProvider which return fixed collection of
ExternalResourceInfo.-
Field Summary
Fields inherited from interface org.apache.flink.runtime.externalresource.ExternalResourceInfoProvider
NO_EXTERNAL_RESOURCES -
Constructor Summary
ConstructorsConstructorDescriptionStaticExternalResourceInfoProvider(Map<String, Set<? extends org.apache.flink.api.common.externalresource.ExternalResourceInfo>> externalResources) -
Method Summary
Modifier and TypeMethodDescriptionSet<org.apache.flink.api.common.externalresource.ExternalResourceInfo>getExternalResourceInfos(String resourceName) Get the specific external resource information by the resourceName.
-
Constructor Details
-
StaticExternalResourceInfoProvider
-
-
Method Details
-
getExternalResourceInfos
public Set<org.apache.flink.api.common.externalresource.ExternalResourceInfo> getExternalResourceInfos(String resourceName) Description copied from interface:ExternalResourceInfoProviderGet the specific external resource information by the resourceName.- Specified by:
getExternalResourceInfosin interfaceExternalResourceInfoProvider- Parameters:
resourceName- of the required external resource- Returns:
- information set of the external resource identified by the resourceName
-