Class StaticExternalResourceInfoProvider
- java.lang.Object
-
- org.apache.flink.runtime.externalresource.StaticExternalResourceInfoProvider
-
- All Implemented Interfaces:
ExternalResourceInfoProvider
public class StaticExternalResourceInfoProvider extends Object implements ExternalResourceInfoProvider
Static implementation ofExternalResourceInfoProvider
which 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 ExternalResourceInfo>> externalResources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<ExternalResourceInfo>
getExternalResourceInfos(String resourceName)
Get the specific external resource information by the resourceName.
-
-
-
Constructor Detail
-
StaticExternalResourceInfoProvider
public StaticExternalResourceInfoProvider(Map<String,Set<? extends ExternalResourceInfo>> externalResources)
-
-
Method Detail
-
getExternalResourceInfos
public Set<ExternalResourceInfo> getExternalResourceInfos(String resourceName)
Description copied from interface:ExternalResourceInfoProvider
Get the specific external resource information by the resourceName.- Specified by:
getExternalResourceInfos
in interfaceExternalResourceInfoProvider
- Parameters:
resourceName
- of the required external resource- Returns:
- information set of the external resource identified by the resourceName
-
-