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 |
dataPointsaddedChangedPoints, 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, setPointValueforcePointRead, getExceptionMessage, getId, getName, getPersistentData, getSerialExceptionMessage, joinTermination, raiseEvent, relinquish, returnToNormal, setPersistentDatapublic 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.ILifecycleinitialize in class DataSourceRTpublic void terminate()
terminate in interface com.serotonin.util.ILifecycleterminate in class DataSourceRTpublic void beginPolling()
beginPolling in class DataSourceRTpublic void run()
run in interface java.lang.Runnableprivate void readParts(java.lang.String[] parts)
private void readError()