public class PersistentDataSourceRT extends EventDataSource implements java.lang.Runnable
Modifier and Type | Class and Description |
---|---|
(package private) class |
PersistentDataSourceRT.ConnectionHandler |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<PersistentDataSourceRT.ConnectionHandler> |
connectionHandlers |
static int |
DATA_SOURCE_EXCEPTION_EVENT |
(package private) org.apache.commons.logging.Log |
log |
(package private) java.util.Map<java.lang.String,DataPointRT> |
pointXids |
(package private) java.net.ServerSocket |
serverSocket |
(package private) PersistentDataSourceVO |
vo |
dataPoints
addedChangedPoints, ATTR_DISCONNECTED_KEY, ATTR_UNRELIABLE_KEY, pointListChangeLock, removedPoints
Constructor and Description |
---|
PersistentDataSourceRT(PersistentDataSourceVO vo) |
Modifier and Type | Method and Description |
---|---|
void |
addDataPoint(DataPointRT dataPoint) |
void |
beginPolling() |
java.lang.String |
getConnectionAddress(int index) |
int |
getConnectionCount() |
long |
getConnectionTime(int index) |
long |
getPacketsReceived(int index) |
void |
initialize() |
void |
joinTermination() |
void |
removeDataPoint(DataPointRT dataPoint) |
void |
run() |
void |
terminate() |
setPointValue
forcePointRead, getExceptionMessage, getId, getName, getPersistentData, getSerialExceptionMessage, raiseEvent, relinquish, returnToNormal, setPersistentData
public static final int DATA_SOURCE_EXCEPTION_EVENT
final org.apache.commons.logging.Log log
final PersistentDataSourceVO vo
volatile java.net.ServerSocket serverSocket
final java.util.Map<java.lang.String,DataPointRT> pointXids
final java.util.List<PersistentDataSourceRT.ConnectionHandler> connectionHandlers
public PersistentDataSourceRT(PersistentDataSourceVO vo)
public int getConnectionCount()
public java.lang.String getConnectionAddress(int index)
public long getConnectionTime(int index)
public long getPacketsReceived(int index)
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 joinTermination()
joinTermination
in interface com.serotonin.util.ILifecycle
joinTermination
in class DataSourceRT
public void beginPolling()
beginPolling
in class DataSourceRT
public void addDataPoint(DataPointRT dataPoint)
addDataPoint
in class EventDataSource
public void removeDataPoint(DataPointRT dataPoint)
removeDataPoint
in class EventDataSource
public void run()
run
in interface java.lang.Runnable