public class EventFinder extends AbstractSource implements EventSource
Modifier and Type | Field and Description |
---|---|
protected edu.iris.Fissures.model.TimeInterval |
increment |
protected edu.iris.Fissures.model.TimeInterval |
lag |
protected edu.iris.Fissures.model.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.
|
edu.sc.seis.fissuresUtil.time.MicroSecondTimeRange |
getEventTimeRange() |
protected edu.iris.Fissures.model.MicroSecondDate |
getQueryEdge() |
protected edu.iris.Fissures.model.MicroSecondDate |
getQueryStart() |
protected edu.sc.seis.fissuresUtil.time.MicroSecondTimeRange |
getQueryTime() |
edu.iris.Fissures.model.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() |
edu.sc.seis.fissuresUtil.cache.CacheEvent[] |
next() |
protected void |
processConfig(org.w3c.dom.Element config) |
protected void |
setQueryEdge(edu.iris.Fissures.model.MicroSecondDate edge)
sets the latest time queried
|
protected void |
updateQueryEdge(edu.sc.seis.fissuresUtil.time.MicroSecondTimeRange queryTime) |
appendToName, getFissuresNamingService, getName, getRetries, getRetryStrategy, setRetryStrategy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendToName, getName, getRetries
protected edu.iris.Fissures.model.TimeInterval increment
protected edu.iris.Fissures.model.TimeInterval lag
protected edu.iris.Fissures.model.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 edu.sc.seis.fissuresUtil.cache.CacheEvent[] next()
next
in interface EventSource
protected void updateQueryEdge(edu.sc.seis.fissuresUtil.time.MicroSecondTimeRange queryTime)
public edu.iris.Fissures.model.TimeInterval getWaitBeforeNext()
EventSource
getWaitBeforeNext
in interface EventSource
protected boolean caughtUpWithRealtime()
public edu.sc.seis.fissuresUtil.time.MicroSecondTimeRange getEventTimeRange()
getEventTimeRange
in interface EventSource
protected edu.iris.Fissures.model.MicroSecondDate getQueryStart()
protected edu.sc.seis.fissuresUtil.time.MicroSecondTimeRange getQueryTime()
protected edu.iris.Fissures.model.MicroSecondDate getQueryEdge() throws edu.sc.seis.fissuresUtil.database.NotFound
edu.sc.seis.fissuresUtil.database.NotFound
protected void setQueryEdge(edu.iris.Fissures.model.MicroSecondDate edge)
public java.lang.String getDNS()
String
value