public class EBI25DataSourceRT extends PollingDataSource implements com.serotonin.modbus4j.messaging.MessagingExceptionHandler
Modifier and Type | Field and Description |
---|---|
static int |
DATA_SOURCE_EXCEPTION_EVENT |
private org.apache.commons.logging.Log |
LOG |
private com.serotonin.modbus4j.ModbusMaster |
modbusMaster |
private EBI25DataSourceVO |
vo |
dataPoints, pointListChanged
addedChangedPoints, ATTR_DISCONNECTED_KEY, ATTR_UNRELIABLE_KEY, pointListChangeLock, removedPoints
Constructor and Description |
---|
EBI25DataSourceRT(EBI25DataSourceVO vo) |
Modifier and Type | Method and Description |
---|---|
protected void |
doPoll(long time) |
protected com.serotonin.web.i18n.LocalizableMessage |
getLocalExceptionMessage(java.lang.Exception e) |
private DataPointRT |
getLoggerPoint(int index,
int type) |
void |
initialize() |
void |
receivedException(java.lang.Exception e) |
void |
setPointValue(DataPointRT dataPoint,
PointValueTime valueTime,
SetPointSource source) |
void |
terminate() |
beginPolling, joinTermination, scheduleTimeout, setPollingPeriod, updateChangedPoints
addDataPoint, forcePointRead, getExceptionMessage, getId, getName, getPersistentData, getSerialExceptionMessage, raiseEvent, relinquish, removeDataPoint, returnToNormal, setPersistentData
private final org.apache.commons.logging.Log LOG
public static final int DATA_SOURCE_EXCEPTION_EVENT
private com.serotonin.modbus4j.ModbusMaster modbusMaster
private final EBI25DataSourceVO vo
public EBI25DataSourceRT(EBI25DataSourceVO vo)
protected void doPoll(long time)
doPoll
in class PollingDataSource
private DataPointRT getLoggerPoint(int index, int type)
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 PollingDataSource
public void setPointValue(DataPointRT dataPoint, PointValueTime valueTime, SetPointSource source)
setPointValue
in class DataSourceRT
protected com.serotonin.web.i18n.LocalizableMessage getLocalExceptionMessage(java.lang.Exception e)
public void receivedException(java.lang.Exception e)
receivedException
in interface com.serotonin.modbus4j.messaging.MessagingExceptionHandler