public class NodaveS7DataSource extends PollingDataSource
| Modifier and Type | Field and Description |
|---|---|
static int |
DATA_SOURCE_EXCEPTION_EVENT |
private org.apache.commons.logging.Log |
LOG |
static int |
POINT_READ_EXCEPTION_EVENT |
private NodaveS7DataSourceVO<?> |
vo |
dataPoints, pointListChangedaddedChangedPoints, ATTR_DISCONNECTED_KEY, ATTR_UNRELIABLE_KEY, pointListChangeLock, removedPoints| Constructor and Description |
|---|
NodaveS7DataSource(NodaveS7DataSourceVO<?> vo) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doPoll(long time) |
private long |
getTimestamp(NodaveS7PointLocatorVO point,
java.lang.String arquivo) |
private MangoValue |
getValue(NodaveS7PointLocatorVO point,
java.lang.String arquivo) |
void |
initialize() |
private java.lang.String |
readFile(java.io.File file) |
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 POINT_READ_EXCEPTION_EVENT
public static final int DATA_SOURCE_EXCEPTION_EVENT
private final NodaveS7DataSourceVO<?> vo
public NodaveS7DataSource(NodaveS7DataSourceVO<?> 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 PollingDataSourceprotected void doPoll(long time)
doPoll in class PollingDataSourceprivate MangoValue getValue(NodaveS7PointLocatorVO point, java.lang.String arquivo) throws java.lang.Exception
java.lang.Exceptionprivate long getTimestamp(NodaveS7PointLocatorVO point, java.lang.String arquivo) throws java.lang.Exception
java.lang.Exceptionpublic void setPointValue(DataPointRT dataPoint, PointValueTime valueTime, SetPointSource source)
setPointValue in class DataSourceRTprivate java.lang.String readFile(java.io.File file)