Class EventFinder

java.lang.Object
edu.sc.seis.sod.source.AbstractSource
edu.sc.seis.sod.source.event.EventFinder
All Implemented Interfaces:
EventSource, Source
Direct Known Subclasses:
BackwardsEventFinder

public class EventFinder extends AbstractSource implements EventSource
  • Field Details

    • increment

      protected edu.iris.Fissures.model.TimeInterval increment
    • lag

      protected edu.iris.Fissures.model.TimeInterval lag
    • refreshInterval

      protected edu.iris.Fissures.model.TimeInterval refreshInterval
  • Constructor Details

  • Method Details

    • processConfig

      protected void processConfig(Element config) throws ConfigurationException
      Throws:
      ConfigurationException
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface EventSource
    • 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.fissuresUtil.cache.CacheEvent[] next()
      Specified by:
      next in interface EventSource
      Returns:
      - the next set of events. Events can be returned from this method multiple times
    • updateQueryEdge

      protected void updateQueryEdge(edu.sc.seis.fissuresUtil.time.MicroSecondTimeRange queryTime)
    • getWaitBeforeNext

      public edu.iris.Fissures.model.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()
    • getEventTimeRange

      public edu.sc.seis.fissuresUtil.time.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.
    • getQueryStart

      protected edu.iris.Fissures.model.MicroSecondDate getQueryStart()
      Returns:
      - the next time to start asking for events
    • getQueryTime

      protected edu.sc.seis.fissuresUtil.time.MicroSecondTimeRange getQueryTime()
      Returns:
      - the next time range to be queried for events
    • getQueryEdge

      protected edu.iris.Fissures.model.MicroSecondDate getQueryEdge() throws edu.sc.seis.fissuresUtil.database.NotFound
      Returns:
      - latest time queried
      Throws:
      edu.sc.seis.fissuresUtil.database.NotFound
    • setQueryEdge

      protected void setQueryEdge(edu.iris.Fissures.model.MicroSecondDate edge)
      sets the latest time queried
    • getDNS

      public String getDNS()
      returns the DNSName of the server. The context under which the objectName is registered in the CORBA naming service.
      Returns:
      a String value