public class HttpRetrieverDataSourceRT extends PollingDataSource
Modifier and Type | Field and Description |
---|---|
static int |
DATA_RETRIEVAL_FAILURE_EVENT |
static int |
PARSE_EXCEPTION_EVENT |
private static int |
READ_LIMIT |
private HttpRetrieverDataSourceVO |
vo |
dataPoints, pointListChanged
addedChangedPoints, ATTR_DISCONNECTED_KEY, ATTR_UNRELIABLE_KEY, pointListChangeLock, removedPoints
Constructor and Description |
---|
HttpRetrieverDataSourceRT(HttpRetrieverDataSourceVO vo) |
Modifier and Type | Method and Description |
---|---|
protected void |
doPoll(long time) |
static java.lang.String |
getData(java.lang.String url,
int timeoutSeconds,
int retries) |
void |
removeDataPoint(DataPointRT dataPoint) |
void |
setPointValue(DataPointRT dataPoint,
PointValueTime valueTime,
SetPointSource source) |
beginPolling, joinTermination, scheduleTimeout, setPollingPeriod, terminate, updateChangedPoints
addDataPoint, forcePointRead, getExceptionMessage, getId, getName, getPersistentData, getSerialExceptionMessage, initialize, raiseEvent, relinquish, returnToNormal, setPersistentData
private static final int READ_LIMIT
public static final int DATA_RETRIEVAL_FAILURE_EVENT
public static final int PARSE_EXCEPTION_EVENT
private final HttpRetrieverDataSourceVO vo
public HttpRetrieverDataSourceRT(HttpRetrieverDataSourceVO vo)
public void removeDataPoint(DataPointRT dataPoint)
removeDataPoint
in class DataSourceRT
public void setPointValue(DataPointRT dataPoint, PointValueTime valueTime, SetPointSource source)
setPointValue
in class DataSourceRT
protected void doPoll(long time)
doPoll
in class PollingDataSource
public static java.lang.String getData(java.lang.String url, int timeoutSeconds, int retries) throws com.serotonin.web.i18n.LocalizableException
com.serotonin.web.i18n.LocalizableException