@PublicEvolving public class ExternalResourceOptions extends Object
Modifier and Type | Field and Description |
---|---|
static ConfigOption<Long> |
EXTERNAL_RESOURCE_AMOUNT
The amount for the external resource specified by >resource_name< per TaskExecutor.
|
static String |
EXTERNAL_RESOURCE_AMOUNT_SUFFIX
The amount of the external resource per task executor.
|
static ConfigOption<String> |
EXTERNAL_RESOURCE_DRIVER_FACTORY_CLASS
Defines the factory class name for the external resource identified by >resource_name<.
|
static String |
EXTERNAL_RESOURCE_DRIVER_FACTORY_SUFFIX
The driver factory class of the external resource to use.
|
static ConfigOption<String> |
EXTERNAL_RESOURCE_DRIVER_PARAM
The naming pattern of custom config options for the external resource specified by
>resource_name<.
|
static String |
EXTERNAL_RESOURCE_DRIVER_PARAM_SUFFIX
The suffix of custom config options' prefix for the external resource.
|
static ConfigOption<List<String>> |
EXTERNAL_RESOURCE_LIST
List of the resource_name of all external resources with delimiter ";", e.g.
|
static String |
NONE
Indicate an empty external resources list.
|
Constructor and Description |
---|
ExternalResourceOptions() |
Modifier and Type | Method and Description |
---|---|
static String |
genericKeyWithSuffix(String suffix) |
static String |
getAmountConfigOptionForResource(String resourceName)
Generate the config option key for the amount of external resource with resource_name.
|
static String |
getExternalResourceDriverFactoryConfigOptionForResource(String resourceName)
Generate the config option key for the factory class name of
ExternalResourceDriver . |
static String |
getExternalResourceParamConfigPrefixForResource(String resourceName)
Generate the suffix option key prefix for the user-defined params for external resources.
|
static String |
getSystemConfigKeyConfigOptionForResource(String resourceName,
String suffix)
Generate the config option key for the configuration key of external resource in the
deploying system.
|
public static final String EXTERNAL_RESOURCE_AMOUNT_SUFFIX
public static final String NONE
public static final String EXTERNAL_RESOURCE_DRIVER_FACTORY_SUFFIX
public static final String EXTERNAL_RESOURCE_DRIVER_PARAM_SUFFIX
public static final ConfigOption<List<String>> EXTERNAL_RESOURCE_LIST
Example:
external-resources = gpu;fpga
external-resource.gpu.driver-factory.class: org.apache.flink.externalresource.gpu.GPUDriverFactory
external-resource.gpu.amount: 2
external-resource.gpu.param.type: nvidia
external-resource.fpga.driver-factory.class: org.apache.flink.externalresource.fpga.FPGADriverFactory
external-resource.fpga.amount: 1
public static final ConfigOption<String> EXTERNAL_RESOURCE_DRIVER_FACTORY_CLASS
ExternalResourceDriver
at the TaskExecutor
side.
It is intentionally included into user docs while unused.
public static final ConfigOption<Long> EXTERNAL_RESOURCE_AMOUNT
It is intentionally included into user docs while unused.
public static final ConfigOption<String> EXTERNAL_RESOURCE_DRIVER_PARAM
It is intentionally included into user docs while unused.
public static String getAmountConfigOptionForResource(String resourceName)
public static String getSystemConfigKeyConfigOptionForResource(String resourceName, String suffix)
public static String getExternalResourceDriverFactoryConfigOptionForResource(String resourceName)
ExternalResourceDriver
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.