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 |
dataPointsaddedChangedPoints, 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() |
setPointValueforcePointRead, getExceptionMessage, getId, getName, getPersistentData, getSerialExceptionMessage, raiseEvent, relinquish, returnToNormal, setPersistentDatapublic 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.ILifecycleinitialize in class DataSourceRTpublic void terminate()
terminate in interface com.serotonin.util.ILifecycleterminate in class DataSourceRTpublic void joinTermination()
joinTermination in interface com.serotonin.util.ILifecyclejoinTermination in class DataSourceRTpublic void beginPolling()
beginPolling in class DataSourceRTpublic void addDataPoint(DataPointRT dataPoint)
addDataPoint in class EventDataSourcepublic void removeDataPoint(DataPointRT dataPoint)
removeDataPoint in class EventDataSourcepublic void run()
run in interface java.lang.Runnable