|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.palantir.opensource.sysmon.linux.LinuxMonitor
public class LinuxMonitor
Implementation of Linux monitoring, this class monitors a Linux host system, starts and stops monitors.
Field Summary | |
---|---|
static String |
CONFIG_KEY_JMX_BEAN_PATH
|
static String |
CONFIG_KEY_PREFIX
Prefix for configuration key for the LinuxMonitor . |
static String |
DEFAULT_JMX_BEAN_PATH
Default path for JMX Beans for this monitor. |
Constructor Summary | |
---|---|
LinuxMonitor()
|
Method Summary | |
---|---|
void |
startPlatformSpecificMonitoring(Properties config)
Starts up monitoring for a Linux VM. |
void |
stopPlatformSpecificMonitoring()
Shuts down and cleans up all the Linux monitors mananged by this class. |
void |
verifyExecutionEnvironment(Properties config)
Runs any tests to verify that the currently running VM is appropriate for this monitor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONFIG_KEY_PREFIX
LinuxMonitor
.
Prefix: "sysmon.linux"
public static final String DEFAULT_JMX_BEAN_PATH
public static final String CONFIG_KEY_JMX_BEAN_PATH
Constructor Detail |
---|
public LinuxMonitor()
Method Detail |
---|
public void startPlatformSpecificMonitoring(Properties config) throws SysmonException, LinuxMonitoringException
startPlatformSpecificMonitoring
in interface SystemMonitor
config
- configuration information for the specific monitor implementations. Must empty
and/or null Properties
objects as a way of signalling that default values should be
used.
SysmonException
- if this platform doesn't match this monitor. The method
verifyExecutionEnvironment(Properties)
LinuxMonitoringException
- - on error with configuration or startup of a specific monitor.
should be called first to check for potential mismatches between platform and monitor.public void stopPlatformSpecificMonitoring()
stopPlatformSpecificMonitoring
in interface SystemMonitor
public void verifyExecutionEnvironment(Properties config) throws SysmonException
os.name
of 'Linux'
and that the os.version
starts with '2.6'.
verifyExecutionEnvironment
in interface SystemMonitor
config
- configuration parameters to be used with this monitor. Currently ignored by
this particular implementation.
SysmonException
- if the execution environment is not apropriate for this monitor.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |