public class EventFinder extends AbstractSource implements EventSource
| Modifier and Type | Field and Description |
|---|---|
protected TimeInterval |
increment |
protected TimeInterval |
lag |
protected TimeInterval |
refreshInterval |
name, NAME_ELEMENT, RETRIES_ELEMENT| Constructor and Description |
|---|
EventFinder(org.w3c.dom.Element config) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
caughtUpWithRealtime() |
java.lang.String |
getDescription() |
java.lang.String |
getDNS()
returns the DNSName of the server.
|
MicroSecondTimeRange |
getEventTimeRange() |
protected MicroSecondDate |
getQueryEdge() |
protected MicroSecondDate |
getQueryStart() |
protected MicroSecondTimeRange |
getQueryTime() |
TimeInterval |
getWaitBeforeNext()
If the source needs to wait for more events to arrive, it should return
the amount of time it wants to wait with this method.
|
boolean |
hasNext() |
CacheEvent[] |
next() |
protected void |
processConfig(org.w3c.dom.Element config) |
protected void |
setQueryEdge(MicroSecondDate edge)
sets the latest time queried
|
protected void |
updateQueryEdge(MicroSecondTimeRange queryTime) |
appendToName, getFissuresNamingService, getName, getRetries, getRetryStrategy, setRetryStrategyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendToName, getName, getRetriesprotected TimeInterval increment
protected TimeInterval lag
protected TimeInterval refreshInterval
public EventFinder(org.w3c.dom.Element config)
throws java.lang.Exception
java.lang.Exceptionprotected void processConfig(org.w3c.dom.Element config)
throws ConfigurationException
ConfigurationExceptionpublic java.lang.String getDescription()
getDescription in interface EventSourcepublic boolean hasNext()
hasNext in interface EventSourcepublic CacheEvent[] next()
next in interface EventSourceprotected void updateQueryEdge(MicroSecondTimeRange queryTime)
public TimeInterval getWaitBeforeNext()
EventSourcegetWaitBeforeNext in interface EventSourceprotected boolean caughtUpWithRealtime()
public MicroSecondTimeRange getEventTimeRange()
getEventTimeRange in interface EventSourceprotected MicroSecondDate getQueryStart()
protected MicroSecondTimeRange getQueryTime()
protected MicroSecondDate getQueryEdge() throws NotFound
NotFoundprotected void setQueryEdge(MicroSecondDate edge)
public java.lang.String getDNS()
String value