Class FdsnEvent

java.lang.Object
All Implemented Interfaces:
EventSource, Source

public class FdsnEvent
extends AbstractEventSource
implements EventSource
  • Field Details

  • Constructor Details

  • Method Details

    • 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 edu.sc.seis.sod.model.event.CacheEvent[] next()
      Specified by:
      next in interface EventSource
      Returns:
      - the next set of events. Events can be returned from this method multiple times
    • internalNext

      public java.util.List<edu.sc.seis.sod.model.event.CacheEvent> internalNext​(edu.sc.seis.sod.model.common.TimeRange queryTime) throws edu.sc.seis.seisFile.SeisFileException, javax.xml.stream.XMLStreamException
      Throws:
      edu.sc.seis.seisFile.SeisFileException
      javax.xml.stream.XMLStreamException
    • getEventTimeRange

      public edu.sc.seis.sod.model.common.TimeRange 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.
    • resetQueryTimeForLag

      protected java.time.Instant resetQueryTimeForLag()
      Description copied from class: AbstractEventSource
      Scoots the query time back by the event lag amount from the run properties to the query start time at the earliest
      Overrides:
      resetQueryTimeForLag in class AbstractEventSource
    • getUserAgent

      public java.lang.String getUserAgent()
    • setUserAgent

      public void setUserAgent​(java.lang.String userAgent)