Package edu.sc.seis.sod.source.event
Class FdsnEvent
java.lang.Object
edu.sc.seis.sod.source.AbstractSource
edu.sc.seis.sod.source.event.AbstractEventSource
edu.sc.seis.sod.source.event.FdsnEvent
- All Implemented Interfaces:
EventSource
,Source
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from class edu.sc.seis.sod.source.event.AbstractEventSource
caughtUpToRealtime, EVENT_LAG, EVENT_QUERY_INCREMENT, EVENT_REFRESH_INTERVAL, everCaughtUpToRealtime, increment, lag, lastQueryTime, MIN_INCREMENT, nearRealTimeInterval, NO_DNS, refreshInterval, sleepUntilTime
Fields inherited from class edu.sc.seis.sod.source.AbstractSource
name, NAME_ELEMENT, RETRIES_ELEMENT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionedu.sc.seis.fissuresUtil.time.MicroSecondTimeRange
boolean
hasNext()
List<edu.sc.seis.fissuresUtil.cache.CacheEvent>
internalNext
(edu.sc.seis.fissuresUtil.time.MicroSecondTimeRange queryTime) edu.sc.seis.fissuresUtil.cache.CacheEvent[]
next()
protected edu.iris.Fissures.model.MicroSecondDate
Scoots the query time back by the event lag amount from the run properties to the query start time at the earliestvoid
setUserAgent
(String userAgent) Methods inherited from class edu.sc.seis.sod.source.event.AbstractEventSource
caughtUpWithRealtime, decreaseQueryTimeWidth, getIncrement, getLag, getQueryEdge, getQueryStart, getQueryTime, getRefreshInterval, getSleepUntilTime, getWaitBeforeNext, increaseQueryTimeWidth, isEverCaughtUpToRealtime, setIncrement, setLag, setQueryEdge, updateQueryEdge
Methods inherited from class edu.sc.seis.sod.source.AbstractSource
appendToName, getFissuresNamingService, getName, getRetries, getRetryStrategy, setRetryStrategy
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.sc.seis.sod.source.event.EventSource
getWaitBeforeNext
Methods inherited from interface edu.sc.seis.sod.source.Source
appendToName, getName, getRetries
-
Field Details
-
URL_ELEMENT
- See Also:
-
HOST_ELEMENT
- See Also:
-
PORT_ELEMENT
- See Also:
-
BAD_PARAM_MESSAGE
- See Also:
-
-
Constructor Details
-
FdsnEvent
public FdsnEvent(edu.sc.seis.seisFile.fdsnws.FDSNEventQueryParams queryParams) -
FdsnEvent
- Throws:
ConfigurationException
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceEventSource
- 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 interfaceEventSource
- Returns:
- - the next set of events. Events can be returned from this method multiple times
-
internalNext
public List<edu.sc.seis.fissuresUtil.cache.CacheEvent> internalNext(edu.sc.seis.fissuresUtil.time.MicroSecondTimeRange queryTime) throws edu.sc.seis.seisFile.SeisFileException, XMLStreamException - Throws:
edu.sc.seis.seisFile.SeisFileException
XMLStreamException
-
getEventTimeRange
public edu.sc.seis.fissuresUtil.time.MicroSecondTimeRange getEventTimeRange()- Specified by:
getEventTimeRange
in interfaceEventSource
- 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
- Specified by:
getDescription
in interfaceEventSource
-
resetQueryTimeForLag
protected edu.iris.Fissures.model.MicroSecondDate 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 classAbstractEventSource
-
getUserAgent
-
setUserAgent
-