Package edu.sc.seis.sod.source.network
Class AbstractNetworkSource
java.lang.Object
edu.sc.seis.sod.source.AbstractSource
edu.sc.seis.sod.source.network.AbstractNetworkSource
- All Implemented Interfaces:
NetworkSource
,Source
- Direct Known Subclasses:
CombineNetworkSource
,FdsnStation
,MockNetworkSource
,WrappingNetworkSource
public abstract class AbstractNetworkSource extends AbstractSource implements NetworkSource
-
Field Summary
Fields Modifier and Type Field Description protected NetworkQueryConstraints
constraints
static java.lang.String
REFRESH_ELEMENT
protected java.time.Duration
refreshInterval
Fields inherited from class edu.sc.seis.sod.source.AbstractSource
name, NAME_ELEMENT, RETRIES_ELEMENT
-
Constructor Summary
Constructors Constructor Description AbstractNetworkSource(NetworkSource wrapped)
AbstractNetworkSource(java.lang.String name, int retries)
AbstractNetworkSource(org.w3c.dom.Element config)
-
Method Summary
Modifier and Type Method Description java.time.Duration
getRefreshInterval()
void
setConstraints(NetworkQueryConstraints constraints)
Methods inherited from class edu.sc.seis.sod.source.AbstractSource
appendToName, 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.network.NetworkSource
getChannels, getNetworks, getResponse, getRetries, getRetryStrategy, getStations
-
Field Details
-
constraints
-
refreshInterval
protected java.time.Duration refreshInterval -
REFRESH_ELEMENT
public static final java.lang.String REFRESH_ELEMENT- See Also:
- Constant Field Values
-
-
Constructor Details
-
AbstractNetworkSource
public AbstractNetworkSource(java.lang.String name, int retries) -
AbstractNetworkSource
-
AbstractNetworkSource
- Throws:
ConfigurationException
-
-
Method Details
-
getRefreshInterval
public java.time.Duration getRefreshInterval()- Specified by:
getRefreshInterval
in interfaceNetworkSource
-
setConstraints
- Specified by:
setConstraints
in interfaceNetworkSource
-