edu.sc.seis.sod.source.event
Class FdsnEvent

java.lang.Object
  extended by edu.sc.seis.sod.source.AbstractSource
      extended by edu.sc.seis.sod.source.event.AbstractEventSource
          extended by edu.sc.seis.sod.source.event.FdsnEvent
All Implemented Interfaces:
SodElement, EventSource, Source

public class FdsnEvent
extends AbstractEventSource
implements EventSource


Field Summary
static java.lang.String URL_ELEMENT
           
 
Fields inherited from class edu.sc.seis.sod.source.event.AbstractEventSource
increment, lag, NO_DNS, refreshInterval, sleepUntilTime
 
Constructor Summary
FdsnEvent(org.w3c.dom.Element config)
           
 
Method Summary
 java.lang.String getDescription()
           
 MicroSecondTimeRange getEventTimeRange()
           
 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()
           
 
Methods inherited from class edu.sc.seis.sod.source.event.AbstractEventSource
caughtUpWithRealtime, getQueryEdge, getQueryStart, getQueryTime, resetQueryTimeForLag, setQueryEdge, updateQueryEdge
 
Methods inherited from class edu.sc.seis.sod.source.AbstractSource
getFissuresNamingService, getName, getRetries
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URL_ELEMENT

public static final java.lang.String URL_ELEMENT
See Also:
Constant Field Values
Constructor Detail

FdsnEvent

public FdsnEvent(org.w3c.dom.Element config)
          throws ConfigurationException
Throws:
ConfigurationException
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface EventSource
Returns:
- false when this event source will return no new events from calls to next

next

public CacheEvent[] next()
Specified by:
next in interface EventSource
Returns:
- the next set of events. Events can be returned from this method multiple times

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
Overrides:
getWaitBeforeNext in class AbstractEventSource

getEventTimeRange

public MicroSecondTimeRange getEventTimeRange()
Specified by:
getEventTimeRange in interface EventSource
Returns:
- a MicroSecondTimeRange starting at least as early as the earliest event and ending at least as late as the latest event. No event should be returned by this source with an origin before the begin time or after the end time of this range.

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface EventSource