Class StaticExternalResourceInfoProvider
- java.lang.Object
-
- org.apache.flink.runtime.externalresource.StaticExternalResourceInfoProvider
-
- All Implemented Interfaces:
ExternalResourceInfoProvider
public class StaticExternalResourceInfoProvider extends Object implements ExternalResourceInfoProvider
Static implementation ofExternalResourceInfoProviderwhich return fixed collection ofExternalResourceInfo.
-
-
Field Summary
-
Fields inherited from interface org.apache.flink.runtime.externalresource.ExternalResourceInfoProvider
NO_EXTERNAL_RESOURCES
-
-
Constructor Summary
Constructors Constructor Description StaticExternalResourceInfoProvider(Map<String,Set<? extends org.apache.flink.api.common.externalresource.ExternalResourceInfo>> externalResources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<org.apache.flink.api.common.externalresource.ExternalResourceInfo>getExternalResourceInfos(String resourceName)Get the specific external resource information by the resourceName.
-
-
-
Method Detail
-
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
-
-