edu.sc.seis.fissuresUtil.cache
Class CacheNetworkAccess
java.lang.Object
edu.sc.seis.fissuresUtil.cache.ProxyNetworkAccess
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
| 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 |
attr
protected NetworkAttrImpl attr
stations
protected Station[] stations
CacheNetworkAccess
public CacheNetworkAccess(NetworkAccess net)
CacheNetworkAccess
public CacheNetworkAccess(NetworkAccess net,
NetworkAttrImpl attr)
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