edu.sc.seis.fissuresUtil.cache
Class RetryNetworkAccess

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.cache.ProxyNetworkAccess
      extended by edu.sc.seis.fissuresUtil.cache.RetryNetworkAccess
All Implemented Interfaces:
AuditSystemAccess, ConcreteNetworkAccessOperations, NetworkAccess, CorbaServerWrapper, java.io.Serializable, org.omg.CORBA.portable.IDLEntity

public class RetryNetworkAccess
extends ProxyNetworkAccess

Just a pass thru class for the remote networkAccess, but this will retry if there are errors, up to the specified number. This can help in the case of temporary network/server errors, but may simply waste time in the case of bigger errors.

See Also:
Serialized Form

Field Summary
 
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
RetryNetworkAccess(NetworkAccess net, int retry)
           
RetryNetworkAccess(NetworkAccess net, RetryStrategy handler)
           
 
Method Summary
 NetworkAttr get_attributes()
           
 AuditElement[] get_audit_trail_for_channel(ChannelId id)
           
 AuditElement[] get_audit_trail()
           
 Channel[] locate_channels(Area the_area, SamplingRange sampling, OrientationRange orientation)
           
 ChannelId[] retrieve_all_channels(int seq_max, ChannelIdIterHolder iter)
           
 Calibration[] retrieve_calibrations(ChannelId id, TimeRange the_time)
           
 Channel retrieve_channel(ChannelId id)
           
 Channel[] retrieve_channels_by_code(java.lang.String station_code, java.lang.String site_code, java.lang.String channel_code)
           
 Channel[] retrieve_for_station(StationId p1)
           
 ChannelId[] retrieve_grouping(ChannelId id)
           
 ChannelId[][] retrieve_groupings()
           
 Instrumentation retrieve_instrumentation(ChannelId id, Time the_time)
           
 Station[] retrieve_stations()
           
 TimeCorrection[] retrieve_time_corrections(ChannelId id, TimeRange time_range)
           
 
Methods inherited from class edu.sc.seis.fissuresUtil.cache.ProxyNetworkAccess
a_writeable, get_audit_trail_for_site, get_audit_trail_for_station, getCorbaObject, getFullName, getNetworkAccess, getServerDNS, getServerName, getServerType, reset, retrieve_final_units, retrieve_initial_units, retrieve_sensitivity, setNetworkAccess, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RetryNetworkAccess

public RetryNetworkAccess(NetworkAccess net,
                          int retry)

RetryNetworkAccess

public RetryNetworkAccess(NetworkAccess net,
                          RetryStrategy handler)
Method Detail

get_attributes

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

get_audit_trail_for_channel

public AuditElement[] get_audit_trail_for_channel(ChannelId id)
                                           throws ChannelNotFound,
                                                  NotImplemented
Specified by:
get_audit_trail_for_channel in interface NetworkAccess
Overrides:
get_audit_trail_for_channel in class ProxyNetworkAccess
Throws:
ChannelNotFound
NotImplemented

get_audit_trail

public AuditElement[] get_audit_trail()
                               throws NotImplemented
Specified by:
get_audit_trail in interface AuditSystemAccess
Overrides:
get_audit_trail in class ProxyNetworkAccess
Throws:
NotImplemented

locate_channels

public Channel[] locate_channels(Area the_area,
                                 SamplingRange sampling,
                                 OrientationRange orientation)
Specified by:
locate_channels in interface NetworkAccess
Overrides:
locate_channels in class ProxyNetworkAccess

retrieve_all_channels

public ChannelId[] retrieve_all_channels(int seq_max,
                                         ChannelIdIterHolder iter)
Specified by:
retrieve_all_channels in interface NetworkAccess
Overrides:
retrieve_all_channels in class ProxyNetworkAccess

retrieve_calibrations

public Calibration[] retrieve_calibrations(ChannelId id,
                                           TimeRange the_time)
                                    throws ChannelNotFound,
                                           NotImplemented
Specified by:
retrieve_calibrations in interface NetworkAccess
Overrides:
retrieve_calibrations in class ProxyNetworkAccess
Throws:
ChannelNotFound
NotImplemented

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_channels_by_code

public Channel[] retrieve_channels_by_code(java.lang.String station_code,
                                           java.lang.String site_code,
                                           java.lang.String channel_code)
                                    throws ChannelNotFound
Specified by:
retrieve_channels_by_code in interface NetworkAccess
Overrides:
retrieve_channels_by_code in class ProxyNetworkAccess
Throws:
ChannelNotFound

retrieve_for_station

public Channel[] retrieve_for_station(StationId p1)
Specified by:
retrieve_for_station in interface NetworkAccess
Overrides:
retrieve_for_station in class ProxyNetworkAccess

retrieve_grouping

public ChannelId[] retrieve_grouping(ChannelId id)
                              throws ChannelNotFound
Specified by:
retrieve_grouping in interface NetworkAccess
Overrides:
retrieve_grouping in class ProxyNetworkAccess
Throws:
ChannelNotFound

retrieve_groupings

public ChannelId[][] retrieve_groupings()
Specified by:
retrieve_groupings in interface NetworkAccess
Overrides:
retrieve_groupings in class ProxyNetworkAccess

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_stations

public Station[] retrieve_stations()
Specified by:
retrieve_stations in interface NetworkAccess
Overrides:
retrieve_stations in class ProxyNetworkAccess

retrieve_time_corrections

public TimeCorrection[] retrieve_time_corrections(ChannelId id,
                                                  TimeRange time_range)
                                           throws ChannelNotFound,
                                                  NotImplemented
Specified by:
retrieve_time_corrections in interface NetworkAccess
Overrides:
retrieve_time_corrections in class ProxyNetworkAccess
Throws:
ChannelNotFound
NotImplemented