public class P6OutageOptions extends javax.management.StandardMBean implements P6OutageLoadableOptions
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Map<java.lang.String,java.lang.String> |
defaults |
static java.lang.String |
OUTAGEDETECTION |
static java.lang.String |
OUTAGEDETECTIONINTERVAL |
| Constructor and Description |
|---|
P6OutageOptions(P6OptionsRepository optionsRepository) |
| Modifier and Type | Method and Description |
|---|---|
static P6OutageLoadableOptions |
getActiveInstance()
Utility method, to make accessing options from app less verbose.
|
java.util.Map<java.lang.String,java.lang.String> |
getDefaults() |
boolean |
getOutageDetection() |
long |
getOutageDetectionInterval() |
long |
getOutageDetectionIntervalMS() |
void |
load(java.util.Map<java.lang.String,java.lang.String> options)
Loads only those options, that are relevant for the current implementation.
|
void |
setOutageDetection(boolean outagedetection) |
void |
setOutageDetection(java.lang.String outagedetection) |
void |
setOutageDetectionInterval(long outagedetectioninterval) |
void |
setOutageDetectionInterval(java.lang.String outagedetectioninterval) |
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementationpublic static final java.lang.String OUTAGEDETECTIONINTERVAL
public static final java.lang.String OUTAGEDETECTION
protected static final java.util.Map<java.lang.String,java.lang.String> defaults
public P6OutageOptions(P6OptionsRepository optionsRepository)
public java.util.Map<java.lang.String,java.lang.String> getDefaults()
getDefaults in interface P6LoadableOptionspublic void load(java.util.Map<java.lang.String,java.lang.String> options)
P6LoadableOptionsload in interface P6LoadableOptionsoptions - options to be loaded.public static P6OutageLoadableOptions getActiveInstance()
P6OutageLoadableOptionspublic boolean getOutageDetection()
getOutageDetection in interface P6OutageOptionsMBeanpublic void setOutageDetection(java.lang.String outagedetection)
setOutageDetection in interface P6OutageLoadableOptionspublic void setOutageDetection(boolean outagedetection)
setOutageDetection in interface P6OutageOptionsMBeanpublic long getOutageDetectionInterval()
getOutageDetectionInterval in interface P6OutageOptionsMBeanpublic long getOutageDetectionIntervalMS()
getOutageDetectionIntervalMS in interface P6OutageLoadableOptionspublic void setOutageDetectionInterval(java.lang.String outagedetectioninterval)
setOutageDetectionInterval in interface P6OutageLoadableOptionspublic void setOutageDetectionInterval(long outagedetectioninterval)
setOutageDetectionInterval in interface P6OutageOptionsMBean