edu.sc.seis.sod.source.network
Class NetworkFinder

java.lang.Object
  extended by edu.sc.seis.sod.source.AbstractSource
      extended by edu.sc.seis.sod.source.network.AbstractNetworkSource
          extended by edu.sc.seis.sod.source.network.NetworkFinder
All Implemented Interfaces:
NetworkSource, Source
Direct Known Subclasses:
FilterNetworkFinder

public class NetworkFinder
extends AbstractNetworkSource


Field Summary
protected  java.util.List<CacheNetworkAccess> byNameCache
           
protected  java.lang.String dns
           
protected  VestingNetworkDC netDC
           
protected  java.util.List<CacheNetworkAccess> recentNetworksCache
           
 
Fields inherited from class edu.sc.seis.sod.source.network.AbstractNetworkSource
constraints, REFRESH_ELEMENT, refreshInterval
 
Constructor Summary
NetworkFinder(org.w3c.dom.Element config)
           
NetworkFinder(java.lang.String dns, java.lang.String name, int retries)
           
 
Method Summary
protected  CacheNetworkAccess checkCache(NetworkId netId)
           
protected  java.util.List<ChannelImpl> checkStationTimeOverlap(StationImpl station, Channel[] inChannels)
           
 java.util.List<ChannelImpl> getChannels(StationImpl station)
           
 java.lang.String getDNS()
          returns the DNSName of the server.
 Instrumentation getInstrumentation(ChannelId chanId)
           
 CacheNetworkAccess getNetwork(NetworkAttrImpl attr)
           
 CacheNetworkAccess getNetwork(NetworkId netId)
           
 java.util.List<CacheNetworkAccess> getNetworkByName(java.lang.String name)
           
 ProxyNetworkDC getNetworkDC()
           
 java.util.List<? extends NetworkAttrImpl> getNetworks()
           
 java.util.List<CacheNetworkAccess> getNetworksInternal()
           
 QuantityImpl getSensitivity(ChannelId chanId)
           
 java.util.List<StationImpl> getStations(NetworkId netId)
           
 void reset()
           
 
Methods inherited from class edu.sc.seis.sod.source.network.AbstractNetworkSource
getRefreshInterval, setConstrains
 
Methods inherited from class edu.sc.seis.sod.source.AbstractSource
getFissuresNamingService, getName, getRetries
 
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
 

Field Detail

dns

protected java.lang.String dns

recentNetworksCache

protected java.util.List<CacheNetworkAccess> recentNetworksCache

byNameCache

protected java.util.List<CacheNetworkAccess> byNameCache

netDC

protected VestingNetworkDC netDC
Constructor Detail

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
Method Detail

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()