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, pointListChangedaddedChangedPoints, 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, updateChangedPointsaddDataPoint, forcePointRead, getExceptionMessage, getId, getName, getPersistentData, getSerialExceptionMessage, raiseEvent, relinquish, removeDataPoint, returnToNormal, setPersistentDataprivate 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 PollingDataSourceprivate DataPointRT getLoggerPoint(int index, int type)
public void initialize()
initialize in interface com.serotonin.util.ILifecycleinitialize in class DataSourceRTpublic void terminate()
terminate in interface com.serotonin.util.ILifecycleterminate in class PollingDataSourcepublic void setPointValue(DataPointRT dataPoint, PointValueTime valueTime, SetPointSource source)
setPointValue in class DataSourceRTprotected 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