edu.sc.seis.sod.source.network
Class NetworkFinder
java.lang.Object
edu.sc.seis.sod.source.AbstractSource
edu.sc.seis.sod.source.network.AbstractNetworkSource
edu.sc.seis.sod.source.network.NetworkFinder
- All Implemented Interfaces:
- NetworkSource, Source
- Direct Known Subclasses:
- FilterNetworkFinder
public class NetworkFinder
- extends AbstractNetworkSource
Constructor Summary |
NetworkFinder(org.w3c.dom.Element config)
|
NetworkFinder(java.lang.String dns,
java.lang.String name,
int retries)
|
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.Source |
getName |
dns
protected java.lang.String dns
recentNetworksCache
protected java.util.List<CacheNetworkAccess> recentNetworksCache
byNameCache
protected java.util.List<CacheNetworkAccess> byNameCache
netDC
protected VestingNetworkDC netDC
NetworkFinder
public NetworkFinder(java.lang.String dns,
java.lang.String name,
int retries)
NetworkFinder
public NetworkFinder(org.w3c.dom.Element config)
throws java.lang.Exception
- Throws:
java.lang.Exception
getNetworkDC
public ProxyNetworkDC getNetworkDC()
getNetwork
public CacheNetworkAccess getNetwork(NetworkAttrImpl attr)
getNetwork
public CacheNetworkAccess getNetwork(NetworkId netId)
getNetworkByName
public java.util.List<CacheNetworkAccess> getNetworkByName(java.lang.String name)
throws NetworkNotFound
- Throws:
NetworkNotFound
getNetworks
public java.util.List<? extends NetworkAttrImpl> getNetworks()
getNetworksInternal
public java.util.List<CacheNetworkAccess> getNetworksInternal()
getStations
public java.util.List<StationImpl> getStations(NetworkId netId)
getChannels
public java.util.List<ChannelImpl> getChannels(StationImpl station)
getInstrumentation
public Instrumentation getInstrumentation(ChannelId chanId)
throws ChannelNotFound,
InvalidResponse
- Throws:
ChannelNotFound
InvalidResponse
getSensitivity
public QuantityImpl getSensitivity(ChannelId chanId)
throws ChannelNotFound,
InvalidResponse
- Throws:
ChannelNotFound
InvalidResponse
getDNS
public java.lang.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
checkStationTimeOverlap
protected java.util.List<ChannelImpl> checkStationTimeOverlap(StationImpl station,
Channel[] inChannels)
checkCache
protected CacheNetworkAccess checkCache(NetworkId netId)
reset
public void reset()