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) |
getFissuresNamingService, getName, getRetries, getRetryStrategy, setRetryStrategy, shouldRetryWithSleep
protected TimeInterval increment
protected TimeInterval lag
protected TimeInterval refreshInterval
public EventFinder(org.w3c.dom.Element config) throws java.lang.Exception
java.lang.Exception
protected void processConfig(org.w3c.dom.Element config) throws ConfigurationException
ConfigurationException
public java.lang.String getDescription()
getDescription
in interface EventSource
public boolean hasNext()
hasNext
in interface EventSource
public CacheEvent[] next()
next
in interface EventSource
protected void updateQueryEdge(MicroSecondTimeRange queryTime)
public TimeInterval getWaitBeforeNext()
EventSource
getWaitBeforeNext
in interface EventSource
protected boolean caughtUpWithRealtime()
public MicroSecondTimeRange getEventTimeRange()
getEventTimeRange
in interface EventSource
protected MicroSecondDate getQueryStart()
protected MicroSecondTimeRange getQueryTime()
protected MicroSecondDate getQueryEdge() throws NotFound
NotFound
protected void setQueryEdge(MicroSecondDate edge)
public java.lang.String getDNS()
String
value