public class ArbiterMutableConfig extends Object implements Cloneable
Arbiter.| Modifier and Type | Method and Description |
|---|---|
ArbiterMutableConfig |
clone() |
protected ArbiterMutableConfig |
copy() |
String |
getConfigParam(String paramName) |
String |
getConsoleLoggingLevel()
Gets the console logging level.
|
String |
getFileLoggingLevel()
Gets the file logging level.
|
String |
getHelperHosts()
Returns the string identifying one or more helper host and port pairs in
this format:
|
Properties |
getProps() |
boolean |
isConfigParamSet(String paramName) |
ArbiterMutableConfig |
setConfigParam(String paramName,
String value) |
ArbiterMutableConfig |
setConsoleLoggingLevel(String val)
Trace messages equal and above this level will be logged to the
console.
|
ArbiterMutableConfig |
setFileLoggingLevel(String val)
Trace messages equal and above this level will be logged to the je.info
file, which is in the Arbiter home directory.
|
ArbiterMutableConfig |
setHelperHosts(String helperHosts)
Identify one or more helpers nodes by their host and port pairs in this
format:
|
String |
toString()
Display configuration values.
|
public ArbiterMutableConfig setHelperHosts(String helperHosts)
hostname[:port][,hostname[:port]]*
helperHosts - the string representing the host and port pairs.public String getHelperHosts()
hostname[:port][,hostname[:port]]*
public ArbiterMutableConfig setFileLoggingLevel(String val)
| Name | Type | Mutable | Default |
| com.sleepycat.je.util.FileHandler.level | String | No | "INFO" |
val - value of the logging level.public String getFileLoggingLevel()
public ArbiterMutableConfig setConsoleLoggingLevel(String val)
| Name | Type | Mutable | Default |
| com.sleepycat.je.util.ConsoleHandler.level | String | No | "OFF" |
val - Logging level.public String getConsoleLoggingLevel()
public ArbiterMutableConfig setConfigParam(String paramName, String value) throws IllegalArgumentException
paramName - the configuration parameter name, one of the String
constants in this classvalue - The configuration valueIllegalArgumentException - if the paramName or value is invalid.public String getConfigParam(String paramName) throws IllegalArgumentException
paramName - a valid configuration parameter, one of the String
constants in this class.IllegalArgumentException - if the paramName is invalid.protected ArbiterMutableConfig copy()
public boolean isConfigParamSet(String paramName)
public ArbiterMutableConfig clone()
public Properties getProps()
Copyright © 2024. All rights reserved.