@InterfaceAudience.Public @InterfaceStability.Unstable public class ConfigFile extends Object implements Serializable
Constructor and Description |
---|
ConfigFile() |
Modifier and Type | Method and Description |
---|---|
ConfigFile |
copy() |
ConfigFile |
destFile(String destFile)
The absolute path that this configuration file should be mounted as, in the
service container.
|
boolean |
equals(Object o) |
boolean |
getBoolean(String name,
boolean defaultValue) |
String |
getDestFile() |
long |
getLong(String name,
long defaultValue) |
Map<String,String> |
getProperties() |
String |
getSrcFile() |
org.apache.hadoop.yarn.service.api.records.ConfigFile.TypeEnum |
getType() |
LocalResourceVisibility |
getVisibility() |
int |
hashCode() |
ConfigFile |
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.
|
void |
setDestFile(String destFile) |
void |
setProperties(Map<String,String> properties) |
void |
setSrcFile(String srcFile) |
void |
setType(org.apache.hadoop.yarn.service.api.records.ConfigFile.TypeEnum type) |
void |
setVisibility(LocalResourceVisibility localrsrcVisibility) |
ConfigFile |
srcFile(String 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.
|
String |
toString() |
ConfigFile |
type(org.apache.hadoop.yarn.service.api.records.ConfigFile.TypeEnum type)
Config file in the standard format like xml, properties, json, yaml,
template.
|
ConfigFile |
visibility(LocalResourceVisibility localrsrcVisibility)
Visibility of the Config file.
|
public ConfigFile copy()
public ConfigFile type(org.apache.hadoop.yarn.service.api.records.ConfigFile.TypeEnum type)
public org.apache.hadoop.yarn.service.api.records.ConfigFile.TypeEnum getType()
public void setType(org.apache.hadoop.yarn.service.api.records.ConfigFile.TypeEnum type)
public ConfigFile destFile(String destFile)
public String getDestFile()
public void setDestFile(String destFile)
public ConfigFile srcFile(String srcFile)
public String getSrcFile()
public void setSrcFile(String srcFile)
public ConfigFile visibility(LocalResourceVisibility localrsrcVisibility)
public LocalResourceVisibility getVisibility()
public void setVisibility(LocalResourceVisibility localrsrcVisibility)
public ConfigFile properties(Map<String,String> properties)
public long getLong(String name, long defaultValue)
public boolean getBoolean(String name, boolean defaultValue)
Copyright © 2023 Apache Software Foundation. All rights reserved.