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

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

public abstract class AbstractNetworkSource
extends AbstractSource
implements NetworkSource


Field Summary
static java.lang.String REFRESH_ELEMENT
           
protected  TimeInterval refreshInterval
           
 
Constructor Summary
AbstractNetworkSource(AbstractNetworkSource wrapped)
           
AbstractNetworkSource(org.w3c.dom.Element config)
           
AbstractNetworkSource(java.lang.String dns, java.lang.String name, int retries)
           
 
Method Summary
abstract  java.util.List<? extends ChannelImpl> getChannels(StationImpl station)
           
abstract  Instrumentation getInstrumentation(ChannelId chanId)
           
abstract  CacheNetworkAccess getNetwork(NetworkAttrImpl attr)
           
abstract  java.util.List<? extends CacheNetworkAccess> getNetworkByName(java.lang.String name)
           
abstract  java.util.List<? extends NetworkAttrImpl> getNetworks()
           
 TimeInterval getRefreshInterval()
           
abstract  QuantityImpl getSensitivity(ChannelId chanId)
           
abstract  java.util.List<? extends StationImpl> getStations(NetworkId net)
           
 
Methods inherited from class edu.sc.seis.sod.source.AbstractSource
getDNS, 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
getDNS, getName
 

Field Detail

refreshInterval

protected TimeInterval refreshInterval

REFRESH_ELEMENT

public static final java.lang.String REFRESH_ELEMENT
See Also:
Constant Field Values
Constructor Detail

AbstractNetworkSource

public AbstractNetworkSource(java.lang.String dns,
                             java.lang.String name,
                             int retries)

AbstractNetworkSource

public AbstractNetworkSource(AbstractNetworkSource wrapped)

AbstractNetworkSource

public AbstractNetworkSource(org.w3c.dom.Element config)
                      throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getRefreshInterval

public TimeInterval getRefreshInterval()
Specified by:
getRefreshInterval in interface NetworkSource

getNetwork

public abstract CacheNetworkAccess getNetwork(NetworkAttrImpl attr)
Specified by:
getNetwork in interface NetworkSource

getNetworkByName

public abstract java.util.List<? extends CacheNetworkAccess> getNetworkByName(java.lang.String name)
                                                                       throws NetworkNotFound
Specified by:
getNetworkByName in interface NetworkSource
Throws:
NetworkNotFound

getNetworks

public abstract java.util.List<? extends NetworkAttrImpl> getNetworks()
Specified by:
getNetworks in interface NetworkSource

getStations

public abstract java.util.List<? extends StationImpl> getStations(NetworkId net)
Specified by:
getStations in interface NetworkSource

getChannels

public abstract java.util.List<? extends ChannelImpl> getChannels(StationImpl station)
Specified by:
getChannels in interface NetworkSource

getSensitivity

public abstract QuantityImpl getSensitivity(ChannelId chanId)
                                     throws ChannelNotFound,
                                            InvalidResponse
Specified by:
getSensitivity in interface NetworkSource
Throws:
ChannelNotFound
InvalidResponse

getInstrumentation

public abstract Instrumentation getInstrumentation(ChannelId chanId)
                                            throws ChannelNotFound,
                                                   InvalidResponse
Specified by:
getInstrumentation in interface NetworkSource
Throws:
ChannelNotFound
InvalidResponse