Class Configuration
java.lang.Object
org.apache.hadoop.yarn.service.api.records.Configuration
- All Implemented Interfaces:
Serializable
Set of configuration properties that can be injected into the service
components via envs, files and custom pluggable helper docker containers.
Files of several standard formats like xml, properties, json, yaml and
templates will be supported.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA blob of key-value pairs which will be appended to the default system properties and handed off to the service at start time.booleanfiles(List<ConfigFile> files) Array of list of files that needs to be created and made available as volumes in the service component containers.getEnv()getFiles()getProperty(String name) getProperty(String name, String defaultValue) booleangetPropertyBool(String name, boolean defaultValue) intgetPropertyInt(String name, int defaultValue) longgetPropertyLong(String name, long defaultValue) inthashCode()voidmergeFrom(Configuration that) Merge all properties and envs from that configuration to this configration.properties(Map<String, String> properties) A blob of key-value pairs of common service properties.voidvoidsetFiles(List<ConfigFile> files) voidsetProperties(Map<String, String> properties) voidsetProperty(String name, String value) toString()
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
properties
A blob of key-value pairs of common service properties. -
getProperties
-
setProperties
-
env
A blob of key-value pairs which will be appended to the default system properties and handed off to the service at start time. All placeholder references to properties will be substituted before injection. -
getEnv
-
setEnv
-
files
Array of list of files that needs to be created and made available as volumes in the service component containers. -
getFiles
-
setFiles
-
getPropertyLong
-
getPropertyInt
-
getPropertyBool
-
getProperty
-
setProperty
-
getProperty
-
getEnv
-
equals
-
hashCode
public int hashCode() -
toString
-
mergeFrom
Merge all properties and envs from that configuration to this configration. For ConfigFiles, all properties and envs of that ConfigFile are merged into this ConfigFile.
-