edu.sc.seis.sod.source.event
Class AbstractEventSource
java.lang.Object
edu.sc.seis.sod.source.AbstractSource
edu.sc.seis.sod.source.event.AbstractEventSource
- All Implemented Interfaces:
- SodElement, EventSource, Source
- Direct Known Subclasses:
- FdsnEvent
public abstract class AbstractEventSource
- extends AbstractSource
- implements EventSource
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_DNS
public static final java.lang.String NO_DNS
- See Also:
- Constant Field Values
sleepUntilTime
protected MicroSecondDate sleepUntilTime
increment
protected TimeInterval increment
lag
protected TimeInterval lag
refreshInterval
protected TimeInterval refreshInterval
AbstractEventSource
public AbstractEventSource(java.lang.String name,
int retries)
AbstractEventSource
public AbstractEventSource(org.w3c.dom.Element config,
java.lang.String defaultName)
getWaitBeforeNext
public TimeInterval getWaitBeforeNext()
- Description copied from interface:
EventSource
- 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.
- Specified by:
getWaitBeforeNext
in interface EventSource
caughtUpWithRealtime
protected boolean caughtUpWithRealtime()
getQueryStart
protected MicroSecondDate getQueryStart()
- Returns:
- - the next time to start asking for events
getQueryTime
protected MicroSecondTimeRange getQueryTime()
- Returns:
- - the next time range to be queried for events
resetQueryTimeForLag
protected void resetQueryTimeForLag()
- Scoots the query time back by the event lag amount from the run
properties to the query start time at the earliest
getQueryEdge
protected MicroSecondDate getQueryEdge()
throws NotFound
- Returns:
- - latest time queried
- Throws:
NotFound
setQueryEdge
protected void setQueryEdge(MicroSecondDate edge)
- sets the latest time queried
updateQueryEdge
protected void updateQueryEdge(MicroSecondTimeRange queryTime)