Class PublishedConfigurationOutputter
java.lang.Object
org.apache.hadoop.yarn.service.utils.PublishedConfigurationOutputter
- Direct Known Subclasses:
PublishedConfigurationOutputter.EnvOutputter,PublishedConfigurationOutputter.JsonOutputter,PublishedConfigurationOutputter.PropertiesOutputter,PublishedConfigurationOutputter.XmlOutputter,PublishedConfigurationOutputter.YamlOutputter
Output a published configuration
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionabstract StringasString()Convert to a stringcreateOutputter(ConfigFormat format, PublishedConfiguration owner) Create an outputter for the chosen formatvoidSave the config to a destination file, in the format of this outputtervoidsave(OutputStream out) Save the content.
-
Field Details
-
owner
-
-
Constructor Details
-
PublishedConfigurationOutputter
-
-
Method Details
-
save
Save the config to a destination file, in the format of this outputter- Parameters:
dest- destination file- Throws:
IOException
-
save
Save the content. The default saves the asString() value to the output stream- Parameters:
out- output stream- Throws:
IOException
-
asString
Convert to a string- Returns:
- the string form
- Throws:
IOException
-
createOutputter
public static PublishedConfigurationOutputter createOutputter(ConfigFormat format, PublishedConfiguration owner) Create an outputter for the chosen format- Parameters:
format- format enumerationowner- owning config- Returns:
- the outputter
-