edu.sc.seis.fissuresUtil.cache
Class CacheNetworkAccess

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.cache.ProxyNetworkAccess
      extended by edu.sc.seis.fissuresUtil.cache.CacheNetworkAccess
All Implemented Interfaces:
AuditSystemAccess, ConcreteNetworkAccessOperations, NetworkAccess, CorbaServerWrapper, java.io.Serializable, org.omg.CORBA.portable.IDLEntity
Direct Known Subclasses:
DBCacheNetworkAccess, FilterNetworkAccess, LazyNetworkAccess

public class CacheNetworkAccess
extends ProxyNetworkAccess

See Also:
Serialized Form

Field Summary
protected  NetworkAttrImpl attr
           
protected  Station[] stations
           
 
Fields inherited from interface edu.sc.seis.fissuresUtil.cache.CorbaServerWrapper
EVENTACCESS_TYPE, EVENTDC_TYPE, EVENTFINDER_TYPE, NETACCESS_TYPE, NETDC_TYPE, NETFINDER_TYPE, PLOTTABLEDC_TYPE, SEISDC_TYPE
 
Constructor Summary
CacheNetworkAccess(NetworkAccess net)
           
CacheNetworkAccess(NetworkAccess net, NetworkAttrImpl attr)
           
 
Method Summary
 NetworkAttrImpl get_attributes()
           
 void reset()
          Resetting a CacheNetworkAccess clears the cache and calls reset on the network access it's holding if it is also a ProxyNetworkAccess
 Channel retrieve_channel(ChannelId id)
           
 Unit retrieve_final_units(ChannelId id, Time the_time)
           
 Channel[] retrieve_for_station(StationId id)
          retreives the channels for the stations, but uses the cached copy if it has been previously retrieved.
 Unit retrieve_initial_units(ChannelId id, Time the_time)
           
 Instrumentation retrieve_instrumentation(ChannelId id, Time the_time)
           
 Sensitivity retrieve_sensitivity(ChannelId id, Time the_time)
           
 Station[] retrieve_stations()
          retreives the stations for the network, but uses the cached copy if it has been previously retrieved.
 
Methods inherited from class edu.sc.seis.fissuresUtil.cache.ProxyNetworkAccess
a_writeable, get_audit_trail_for_channel, get_audit_trail_for_site, get_audit_trail_for_station, get_audit_trail, getCorbaObject, getFullName, getNetworkAccess, getServerDNS, getServerName, getServerType, locate_channels, retrieve_all_channels, retrieve_calibrations, retrieve_channels_by_code, retrieve_grouping, retrieve_groupings, retrieve_time_corrections, setNetworkAccess, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

attr

protected NetworkAttrImpl attr

stations

protected Station[] stations
Constructor Detail

CacheNetworkAccess

public CacheNetworkAccess(NetworkAccess net)

CacheNetworkAccess

public CacheNetworkAccess(NetworkAccess net,
                          NetworkAttrImpl attr)
Method Detail

reset

public void reset()
Resetting a CacheNetworkAccess clears the cache and calls reset on the network access it's holding if it is also a ProxyNetworkAccess

Specified by:
reset in interface CorbaServerWrapper
Overrides:
reset in class ProxyNetworkAccess

get_attributes

public NetworkAttrImpl get_attributes()
Specified by:
get_attributes in interface NetworkAccess
Overrides:
get_attributes in class ProxyNetworkAccess

retrieve_stations

public Station[] retrieve_stations()
retreives the stations for the network, but uses the cached copy if it has been previously retrieved. The stations are also cleaned of duplicate networkAttr objects to free memory.

Specified by:
retrieve_stations in interface NetworkAccess
Overrides:
retrieve_stations in class ProxyNetworkAccess

retrieve_for_station

public Channel[] retrieve_for_station(StationId id)
retreives the channels for the stations, but uses the cached copy if it has been previously retrieved. The channels are also cleaned of duplicate site objects to free memory.

Specified by:
retrieve_for_station in interface NetworkAccess
Overrides:
retrieve_for_station in class ProxyNetworkAccess

retrieve_channel

public Channel retrieve_channel(ChannelId id)
                         throws ChannelNotFound
Specified by:
retrieve_channel in interface NetworkAccess
Overrides:
retrieve_channel in class ProxyNetworkAccess
Throws:
ChannelNotFound

retrieve_instrumentation

public Instrumentation retrieve_instrumentation(ChannelId id,
                                                Time the_time)
                                         throws ChannelNotFound
Specified by:
retrieve_instrumentation in interface NetworkAccess
Overrides:
retrieve_instrumentation in class ProxyNetworkAccess
Throws:
ChannelNotFound

retrieve_sensitivity

public Sensitivity retrieve_sensitivity(ChannelId id,
                                        Time the_time)
                                 throws ChannelNotFound
Overrides:
retrieve_sensitivity in class ProxyNetworkAccess
Throws:
ChannelNotFound

retrieve_initial_units

public Unit retrieve_initial_units(ChannelId id,
                                   Time the_time)
                            throws ChannelNotFound
Overrides:
retrieve_initial_units in class ProxyNetworkAccess
Throws:
ChannelNotFound

retrieve_final_units

public Unit retrieve_final_units(ChannelId id,
                                 Time the_time)
                          throws ChannelNotFound
Overrides:
retrieve_final_units in class ProxyNetworkAccess
Throws:
ChannelNotFound