public class PeriodicFakeEventSource extends AbstractSource implements EventSource
name, NAME_ELEMENT, RETRIES_ELEMENT
Modifier | Constructor and Description |
---|---|
|
PeriodicFakeEventSource(org.w3c.dom.Element config) |
protected |
PeriodicFakeEventSource(edu.iris.Fissures.model.MicroSecondDate startTime,
edu.iris.Fissures.model.TimeInterval interval,
int numEvents) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription() |
edu.sc.seis.fissuresUtil.time.MicroSecondTimeRange |
getEventTimeRange() |
edu.iris.Fissures.model.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() |
edu.sc.seis.fissuresUtil.cache.CacheEvent[] |
next() |
appendToName, getFissuresNamingService, getName, getRetries, getRetryStrategy, setRetryStrategy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendToName, getName, getRetries
protected PeriodicFakeEventSource(edu.iris.Fissures.model.MicroSecondDate startTime, edu.iris.Fissures.model.TimeInterval interval, int numEvents)
public PeriodicFakeEventSource(org.w3c.dom.Element config) throws ConfigurationException
ConfigurationException
public java.lang.String getDescription()
getDescription
in interface EventSource
public edu.sc.seis.fissuresUtil.time.MicroSecondTimeRange getEventTimeRange()
getEventTimeRange
in interface EventSource
public edu.iris.Fissures.model.TimeInterval getWaitBeforeNext()
EventSource
getWaitBeforeNext
in interface EventSource
public boolean hasNext()
hasNext
in interface EventSource
public edu.sc.seis.fissuresUtil.cache.CacheEvent[] next()
next
in interface EventSource