edu.sc.seis.fissuresUtil.cache
Class NSNetworkAccess
java.lang.Object
edu.sc.seis.fissuresUtil.cache.ProxyNetworkAccess
edu.sc.seis.fissuresUtil.cache.NSNetworkAccess
- All Implemented Interfaces:
- edu.iris.Fissures.AuditSystemAccess, edu.iris.Fissures.IfNetwork.ConcreteNetworkAccessOperations, edu.iris.Fissures.IfNetwork.NetworkAccess, CorbaServerWrapper, java.io.Serializable, org.omg.CORBA.portable.IDLEntity
public class NSNetworkAccess
- extends ProxyNetworkAccess
A NSNetworkAccess allows for the NetworkAccess reference inside of it to go
stale by resetting the NetworkAccess to a fresh value from the netDC passed
in in its constructor. A NSNetworkDC is probably a good choice for the type
of netDC to pass in since it will also allow the NetworkDC itself to go stale
and be refreshed from the naming service.
- See Also:
- Serialized Form
Method Summary |
edu.iris.Fissures.IfNetwork.NetworkAttr |
get_attributes()
|
java.lang.String |
getServerDNS()
|
java.lang.String |
getServerName()
|
edu.iris.Fissures.IfNetwork.Channel[] |
locate_channels(edu.iris.Fissures.Area the_area,
edu.iris.Fissures.IfNetwork.SamplingRange sampling,
edu.iris.Fissures.IfNetwork.OrientationRange orientation)
|
void |
reset()
Refreshes the network from the network dc |
edu.iris.Fissures.IfNetwork.Channel |
retrieve_channel(edu.iris.Fissures.IfNetwork.ChannelId id)
|
edu.iris.Fissures.IfNetwork.Channel[] |
retrieve_channels_by_code(java.lang.String station_code,
java.lang.String site_code,
java.lang.String channel_code)
|
edu.iris.Fissures.IfNetwork.Channel[] |
retrieve_for_station(edu.iris.Fissures.IfNetwork.StationId p1)
|
edu.iris.Fissures.IfNetwork.Station[] |
retrieve_stations()
|
protected edu.iris.Fissures.network.NetworkAttrImpl |
setSource(edu.iris.Fissures.IfNetwork.NetworkAttr attr)
|
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, getServerType, retrieve_all_channels, retrieve_calibrations, retrieve_final_units, retrieve_grouping, retrieve_groupings, retrieve_initial_units, retrieve_instrumentation, retrieve_sensitivity, retrieve_time_corrections, setNetworkAccess, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NSNetworkAccess
public NSNetworkAccess(edu.iris.Fissures.IfNetwork.NetworkId id,
VestingNetworkFinder vnf)
throws edu.iris.Fissures.IfNetwork.NetworkNotFound
- A ProxyNetworkAccess is not allowed as the NetworkAccess for this network
access since calling reset on this will reset the network access from the
netDC and the behaviour will change back to whatever is provided by the
NetworkAccess returned by the netDC.
- Throws:
edu.iris.Fissures.IfNetwork.NetworkNotFound
NSNetworkAccess
public NSNetworkAccess(SynchronizedNetworkAccess na,
edu.iris.Fissures.IfNetwork.NetworkId id,
VestingNetworkFinder vnf)
reset
public void reset()
- Refreshes the network from the network dc
- Specified by:
reset
in interface CorbaServerWrapper
- Overrides:
reset
in class ProxyNetworkAccess
setSource
protected edu.iris.Fissures.network.NetworkAttrImpl setSource(edu.iris.Fissures.IfNetwork.NetworkAttr attr)
get_attributes
public edu.iris.Fissures.IfNetwork.NetworkAttr get_attributes()
- Specified by:
get_attributes
in interface edu.iris.Fissures.IfNetwork.NetworkAccess
- Overrides:
get_attributes
in class ProxyNetworkAccess
locate_channels
public edu.iris.Fissures.IfNetwork.Channel[] locate_channels(edu.iris.Fissures.Area the_area,
edu.iris.Fissures.IfNetwork.SamplingRange sampling,
edu.iris.Fissures.IfNetwork.OrientationRange orientation)
- Specified by:
locate_channels
in interface edu.iris.Fissures.IfNetwork.NetworkAccess
- Overrides:
locate_channels
in class ProxyNetworkAccess
retrieve_channel
public edu.iris.Fissures.IfNetwork.Channel retrieve_channel(edu.iris.Fissures.IfNetwork.ChannelId id)
throws edu.iris.Fissures.IfNetwork.ChannelNotFound
- Specified by:
retrieve_channel
in interface edu.iris.Fissures.IfNetwork.NetworkAccess
- Overrides:
retrieve_channel
in class ProxyNetworkAccess
- Throws:
edu.iris.Fissures.IfNetwork.ChannelNotFound
retrieve_channels_by_code
public edu.iris.Fissures.IfNetwork.Channel[] retrieve_channels_by_code(java.lang.String station_code,
java.lang.String site_code,
java.lang.String channel_code)
throws edu.iris.Fissures.IfNetwork.ChannelNotFound
- Specified by:
retrieve_channels_by_code
in interface edu.iris.Fissures.IfNetwork.NetworkAccess
- Overrides:
retrieve_channels_by_code
in class ProxyNetworkAccess
- Throws:
edu.iris.Fissures.IfNetwork.ChannelNotFound
retrieve_for_station
public edu.iris.Fissures.IfNetwork.Channel[] retrieve_for_station(edu.iris.Fissures.IfNetwork.StationId p1)
- Specified by:
retrieve_for_station
in interface edu.iris.Fissures.IfNetwork.NetworkAccess
- Overrides:
retrieve_for_station
in class ProxyNetworkAccess
retrieve_stations
public edu.iris.Fissures.IfNetwork.Station[] retrieve_stations()
- Specified by:
retrieve_stations
in interface edu.iris.Fissures.IfNetwork.NetworkAccess
- Overrides:
retrieve_stations
in class ProxyNetworkAccess
getServerDNS
public java.lang.String getServerDNS()
- Specified by:
getServerDNS
in interface CorbaServerWrapper
- Overrides:
getServerDNS
in class ProxyNetworkAccess
getServerName
public java.lang.String getServerName()
- Specified by:
getServerName
in interface CorbaServerWrapper
- Overrides:
getServerName
in class ProxyNetworkAccess