@InterfaceAudience.Public @InterfaceStability.Unstable public class Configuration extends Object implements Serializable
Constructor and Description |
---|
Configuration() |
Modifier and Type | Method and Description |
---|---|
Configuration |
env(Map<String,String> 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.
|
boolean |
equals(Object o) |
Configuration |
files(List<ConfigFile> files)
Array of list of files that needs to be created and made available as
volumes in the service component containers.
|
Map<String,String> |
getEnv() |
String |
getEnv(String name) |
List<ConfigFile> |
getFiles() |
Map<String,String> |
getProperties() |
String |
getProperty(String name) |
String |
getProperty(String name,
String defaultValue) |
boolean |
getPropertyBool(String name,
boolean defaultValue) |
int |
getPropertyInt(String name,
int defaultValue) |
long |
getPropertyLong(String name,
long defaultValue) |
int |
hashCode() |
void |
mergeFrom(Configuration that)
Merge all properties and envs from that configuration to this configration.
|
Configuration |
properties(Map<String,String> properties)
A blob of key-value pairs of common service properties.
|
void |
setEnv(Map<String,String> env) |
void |
setFiles(List<ConfigFile> files) |
void |
setProperties(Map<String,String> properties) |
void |
setProperty(String name,
String value) |
String |
toString() |
public Configuration properties(Map<String,String> properties)
public Configuration env(Map<String,String> env)
public Configuration files(List<ConfigFile> files)
public List<ConfigFile> getFiles()
public void setFiles(List<ConfigFile> files)
public long getPropertyLong(String name, long defaultValue)
public int getPropertyInt(String name, int defaultValue)
public boolean getPropertyBool(String name, boolean defaultValue)
public void mergeFrom(Configuration that)
Copyright © 2024 Apache Software Foundation. All rights reserved.