Package edu.sc.seis.sod.source.network
Class WrappingNetworkSource
java.lang.Object
edu.sc.seis.sod.source.AbstractSource
edu.sc.seis.sod.source.network.AbstractNetworkSource
edu.sc.seis.sod.source.network.WrappingNetworkSource
- All Implemented Interfaces:
NetworkSource
,Source
- Direct Known Subclasses:
InstrumentationFromDB
,LoadedNetworkSource
,RetryNetworkSource
public abstract class WrappingNetworkSource extends AbstractNetworkSource implements NetworkSource
-
Field Summary
Fields inherited from class edu.sc.seis.sod.source.network.AbstractNetworkSource
constraints, REFRESH_ELEMENT, refreshInterval
Fields inherited from class edu.sc.seis.sod.source.AbstractSource
name, NAME_ELEMENT, RETRIES_ELEMENT
-
Constructor Summary
Constructors Constructor Description WrappingNetworkSource(NetworkSource wrapped)
-
Method Summary
Modifier and Type Method Description java.util.List<? extends edu.sc.seis.seisFile.fdsnws.stationxml.Channel>
getChannels(edu.sc.seis.seisFile.fdsnws.stationxml.Station station)
java.lang.String
getName()
returns the name of the server.java.util.List<? extends edu.sc.seis.seisFile.fdsnws.stationxml.Network>
getNetworks()
java.time.Duration
getRefreshInterval()
edu.sc.seis.seisFile.fdsnws.stationxml.Response
getResponse(edu.sc.seis.seisFile.fdsnws.stationxml.Channel chanId)
java.util.List<? extends edu.sc.seis.seisFile.fdsnws.stationxml.Station>
getStations(edu.sc.seis.seisFile.fdsnws.stationxml.Network net)
NetworkSource
getWrapped()
void
setConstraints(NetworkQueryConstraints constraints)
Methods inherited from class edu.sc.seis.sod.source.AbstractSource
appendToName, 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
getRetries, getRetryStrategy
-
Constructor Details
-
Method Details
-
getWrapped
-
getChannels
public java.util.List<? extends edu.sc.seis.seisFile.fdsnws.stationxml.Channel> getChannels(edu.sc.seis.seisFile.fdsnws.stationxml.Station station) throws SodSourceException- Specified by:
getChannels
in interfaceNetworkSource
- Throws:
SodSourceException
-
getNetworks
public java.util.List<? extends edu.sc.seis.seisFile.fdsnws.stationxml.Network> getNetworks() throws SodSourceException- Specified by:
getNetworks
in interfaceNetworkSource
- Throws:
SodSourceException
-
getStations
public java.util.List<? extends edu.sc.seis.seisFile.fdsnws.stationxml.Station> getStations(edu.sc.seis.seisFile.fdsnws.stationxml.Network net) throws SodSourceException- Specified by:
getStations
in interfaceNetworkSource
- Throws:
SodSourceException
-
getResponse
public edu.sc.seis.seisFile.fdsnws.stationxml.Response getResponse(edu.sc.seis.seisFile.fdsnws.stationxml.Channel chanId) throws ChannelNotFound, edu.sc.seis.seisFile.fdsnws.stationxml.InvalidResponse, SodSourceException- Specified by:
getResponse
in interfaceNetworkSource
- Throws:
ChannelNotFound
edu.sc.seis.seisFile.fdsnws.stationxml.InvalidResponse
SodSourceException
-
getRefreshInterval
public java.time.Duration getRefreshInterval()- Specified by:
getRefreshInterval
in interfaceNetworkSource
- Overrides:
getRefreshInterval
in classAbstractNetworkSource
-
getName
public java.lang.String getName()Description copied from interface:Source
returns the name of the server. The name to which the server's servant instance is bound in the CORBA naming service. For non-corba servers, this string can be anything that seems reasonable and is relatively unique- Specified by:
getName
in interfaceSource
- Overrides:
getName
in classAbstractSource
- Returns:
- a
String
value
-
setConstraints
- Specified by:
setConstraints
in interfaceNetworkSource
- Overrides:
setConstraints
in classAbstractNetworkSource
-