public class VMStatDataSourceRT extends EventDataSource implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Integer,java.lang.Integer> |
attributePositions |
static int |
DATA_SOURCE_EXCEPTION_EVENT |
private java.io.BufferedReader |
in |
private org.apache.commons.logging.Log |
log |
static int |
PARSE_EXCEPTION_EVENT |
private boolean |
terminated |
private java.lang.Process |
vmstatProcess |
private VMStatDataSourceVO |
vo |
dataPoints
addedChangedPoints, ATTR_DISCONNECTED_KEY, ATTR_UNRELIABLE_KEY, pointListChangeLock, removedPoints
Constructor and Description |
---|
VMStatDataSourceRT(VMStatDataSourceVO vo) |
Modifier and Type | Method and Description |
---|---|
void |
beginPolling() |
void |
initialize() |
private void |
readError() |
private void |
readParts(java.lang.String[] parts) |
void |
run() |
void |
terminate() |
addDataPoint, removeDataPoint, setPointValue
forcePointRead, getExceptionMessage, getId, getName, getPersistentData, getSerialExceptionMessage, joinTermination, raiseEvent, relinquish, returnToNormal, setPersistentData
public static final int DATA_SOURCE_EXCEPTION_EVENT
public static final int PARSE_EXCEPTION_EVENT
private final org.apache.commons.logging.Log log
private final VMStatDataSourceVO vo
private java.lang.Process vmstatProcess
private java.io.BufferedReader in
private java.util.Map<java.lang.Integer,java.lang.Integer> attributePositions
private boolean terminated
public VMStatDataSourceRT(VMStatDataSourceVO vo)
public void initialize()
initialize
in interface com.serotonin.util.ILifecycle
initialize
in class DataSourceRT
public void terminate()
terminate
in interface com.serotonin.util.ILifecycle
terminate
in class DataSourceRT
public void beginPolling()
beginPolling
in class DataSourceRT
public void run()
run
in interface java.lang.Runnable
private void readParts(java.lang.String[] parts)
private void readError()