public class P6OutageOptions extends StandardMBean implements P6OutageLoadableOptions
Modifier and Type | Field and Description |
---|---|
static Map<String,String> |
defaults |
static String |
OUTAGEDETECTION |
static 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.
|
Map<String,String> |
getDefaults() |
boolean |
getOutageDetection() |
long |
getOutageDetectionInterval() |
long |
getOutageDetectionIntervalMS() |
void |
load(Map<String,String> options)
Loads only those options, that are relevant for the current implementation.
|
void |
setOutageDetection(boolean outagedetection) |
void |
setOutageDetection(String outagedetection) |
void |
setOutageDetectionInterval(long outagedetectioninterval) |
void |
setOutageDetectionInterval(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, setImplementation
public static final String OUTAGEDETECTIONINTERVAL
public static final String OUTAGEDETECTION
public P6OutageOptions(P6OptionsRepository optionsRepository)
public Map<String,String> getDefaults()
getDefaults
in interface P6LoadableOptions
public void load(Map<String,String> options)
P6LoadableOptions
load
in interface P6LoadableOptions
options
- options to be loaded.public static P6OutageLoadableOptions getActiveInstance()
P6OutageLoadableOptions
public boolean getOutageDetection()
getOutageDetection
in interface P6OutageOptionsMBean
public void setOutageDetection(String outagedetection)
setOutageDetection
in interface P6OutageLoadableOptions
public void setOutageDetection(boolean outagedetection)
setOutageDetection
in interface P6OutageOptionsMBean
public long getOutageDetectionInterval()
getOutageDetectionInterval
in interface P6OutageOptionsMBean
public long getOutageDetectionIntervalMS()
getOutageDetectionIntervalMS
in interface P6OutageLoadableOptions
public void setOutageDetectionInterval(String outagedetectioninterval)
setOutageDetectionInterval
in interface P6OutageLoadableOptions
public void setOutageDetectionInterval(long outagedetectioninterval)
setOutageDetectionInterval
in interface P6OutageOptionsMBean
Copyright © 2002-2016 P6Spy. All Rights Reserved.