public class Pop3DataSourceRT extends PollingDataSource
Modifier and Type | Field and Description |
---|---|
static int |
INBOX_EXCEPTION_EVENT |
static int |
MESSAGE_READ_EXCEPTION_EVENT |
static int |
PARSE_EXCEPTION_EVENT |
private Pop3DataSourceVO |
vo |
dataPoints, pointListChanged
addedChangedPoints, ATTR_DISCONNECTED_KEY, ATTR_UNRELIABLE_KEY, pointListChangeLock, removedPoints
Constructor and Description |
---|
Pop3DataSourceRT(Pop3DataSourceVO vo) |
Modifier and Type | Method and Description |
---|---|
protected void |
doPoll(long time) |
private void |
processMessage(Pop3Email pop3Email,
long time) |
private Pop3Email |
readMessage(javax.mail.Message message) |
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
public static final int INBOX_EXCEPTION_EVENT
public static final int MESSAGE_READ_EXCEPTION_EVENT
public static final int PARSE_EXCEPTION_EVENT
private final Pop3DataSourceVO vo
public Pop3DataSourceRT(Pop3DataSourceVO 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
private Pop3Email readMessage(javax.mail.Message message) throws javax.mail.MessagingException, java.io.IOException
javax.mail.MessagingException
java.io.IOException
private void processMessage(Pop3Email pop3Email, long time) throws com.serotonin.web.i18n.LocalizableException
com.serotonin.web.i18n.LocalizableException