Class ConfigFile
java.lang.Object
org.apache.hadoop.yarn.service.api.records.ConfigFile
- All Implemented Interfaces:
Serializable
A config file that needs to be created and made available as a volume in an
service component container.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()The absolute path that this configuration file should be mounted as, in the service container.booleanbooleangetBoolean(String name, boolean defaultValue) longgetType()inthashCode()properties(Map<String, String> properties) A blob of key value pairs that will be dumped in the dest_file in the format as specified in type.voidsetDestFile(String destFile) voidsetProperties(Map<String, String> properties) voidsetSrcFile(String srcFile) voidsetType(ConfigFile.TypeEnum type) voidsetVisibility(LocalResourceVisibility localrsrcVisibility) This provides the source location of the configuration file, the content of which is dumped to dest_file post property substitutions, in the format as specified in type.toString()type(ConfigFile.TypeEnum type) Config file in the standard format like xml, properties, json, yaml, template.visibility(LocalResourceVisibility localrsrcVisibility) Visibility of the Config file.
-
Constructor Details
-
ConfigFile
public ConfigFile()
-
-
Method Details
-
copy
-
type
Config file in the standard format like xml, properties, json, yaml, template. -
getType
-
setType
-
destFile
The absolute path that this configuration file should be mounted as, in the service container. -
getDestFile
-
setDestFile
-
srcFile
This provides the source location of the configuration file, the content of which is dumped to dest_file post property substitutions, in the format as specified in type. Typically the src_file would point to a source controlled network accessible file maintained by tools like puppet, chef, or hdfs etc. Currently, only hdfs is supported. -
getSrcFile
-
setSrcFile
-
visibility
Visibility of the Config file. -
getVisibility
-
setVisibility
-
properties
A blob of key value pairs that will be dumped in the dest_file in the format as specified in type. If src_file is specified, src_file content are dumped in the dest_file and these properties will overwrite, if any, existing properties in src_file or be added as new properties in src_file. -
getProperties
-
setProperties
-
getLong
-
getBoolean
-
equals
-
hashCode
public int hashCode() -
toString
-