edu.sc.seis.fissuresUtil.cache
Class NSPlottableDC

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.cache.NSPlottableDC
All Implemented Interfaces:
edu.iris.Fissures.IfPlottable.PlottableDCOperations, CorbaServerWrapper, ProxyPlottableDC, ServerNameDNS

public class NSPlottableDC
extends java.lang.Object
implements ServerNameDNS, ProxyPlottableDC


Field Summary
protected  FissuresNamingService namingService
           
protected  java.lang.ThreadLocal<edu.iris.Fissures.IfPlottable.PlottableDC> plottableDC
           
protected  java.lang.String serverDNS
           
protected  java.lang.String serverName
           
 
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
NSPlottableDC(java.lang.String serverDNS, java.lang.String serverName, FissuresNamingService fissuresNamingService)
           
 
Method Summary
 boolean custom_sizes()
           
 edu.iris.Fissures.Dimension[] get_event_sizes()
           
 edu.iris.Fissures.Plottable[] get_for_day(edu.iris.Fissures.IfNetwork.ChannelId chan, int year, int jday, edu.iris.Fissures.Dimension dim)
           
 edu.iris.Fissures.Plottable[] get_for_event(edu.iris.Fissures.IfEvent.EventAccess event, edu.iris.Fissures.IfNetwork.ChannelId chan, edu.iris.Fissures.Dimension dim)
           
 edu.iris.Fissures.Plottable[] get_plottable(edu.iris.Fissures.IfSeismogramDC.RequestFilter rf, edu.iris.Fissures.Dimension dim)
           
 edu.iris.Fissures.Dimension[] get_whole_day_sizes()
           
 edu.iris.Fissures.IfPlottable.PlottableDC getCorbaObject()
          Gets the real corba DataCenter object for which this is a proxy.
 java.lang.String getFullName()
           
 edu.iris.Fissures.IfPlottable.PlottableDC getPlottableDC()
           
 org.omg.CORBA.Object getRealCorbaObject()
           
 java.lang.String getServerDNS()
           
 java.lang.String getServerName()
           
 java.lang.String getServerType()
           
 edu.iris.Fissures.IfPlottable.PlottableDCOperations getWrappedDC()
          Returns the DataCenterOperations directly inside of this one
 edu.iris.Fissures.IfPlottable.PlottableDCOperations getWrappedDC(java.lang.Class wrappedClass)
          Traverses through all of the ProxySeismogramDCs contained by this one, or the one it contains and if it finds one of the passed in class, returns it.
 void reset()
          Resets the proxy, potentially removing any cached data and reresolving the corba reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

plottableDC

protected java.lang.ThreadLocal<edu.iris.Fissures.IfPlottable.PlottableDC> plottableDC

serverDNS

protected java.lang.String serverDNS

serverName

protected java.lang.String serverName

namingService

protected FissuresNamingService namingService
Constructor Detail

NSPlottableDC

public NSPlottableDC(java.lang.String serverDNS,
                     java.lang.String serverName,
                     FissuresNamingService fissuresNamingService)
Method Detail

getServerDNS

public java.lang.String getServerDNS()
Specified by:
getServerDNS in interface CorbaServerWrapper

getServerName

public java.lang.String getServerName()
Specified by:
getServerName in interface CorbaServerWrapper

getFullName

public java.lang.String getFullName()
Specified by:
getFullName in interface CorbaServerWrapper

getServerType

public java.lang.String getServerType()
Specified by:
getServerType in interface CorbaServerWrapper

reset

public void reset()
Description copied from interface: ProxyPlottableDC
Resets the proxy, potentially removing any cached data and reresolving the corba reference.

Specified by:
reset in interface CorbaServerWrapper
Specified by:
reset in interface ProxyPlottableDC

getRealCorbaObject

public org.omg.CORBA.Object getRealCorbaObject()

getCorbaObject

public edu.iris.Fissures.IfPlottable.PlottableDC getCorbaObject()
Description copied from interface: ProxyPlottableDC
Gets the real corba DataCenter object for which this is a proxy.

Specified by:
getCorbaObject in interface ProxyPlottableDC
Specified by:
getCorbaObject in interface ServerNameDNS

getPlottableDC

public edu.iris.Fissures.IfPlottable.PlottableDC getPlottableDC()

get_whole_day_sizes

public edu.iris.Fissures.Dimension[] get_whole_day_sizes()
Specified by:
get_whole_day_sizes in interface edu.iris.Fissures.IfPlottable.PlottableDCOperations

get_event_sizes

public edu.iris.Fissures.Dimension[] get_event_sizes()
Specified by:
get_event_sizes in interface edu.iris.Fissures.IfPlottable.PlottableDCOperations

get_for_day

public edu.iris.Fissures.Plottable[] get_for_day(edu.iris.Fissures.IfNetwork.ChannelId chan,
                                                 int year,
                                                 int jday,
                                                 edu.iris.Fissures.Dimension dim)
                                          throws edu.iris.Fissures.IfPlottable.PlottableNotAvailable,
                                                 edu.iris.Fissures.IfPlottable.UnsupportedDimension
Specified by:
get_for_day in interface edu.iris.Fissures.IfPlottable.PlottableDCOperations
Throws:
edu.iris.Fissures.IfPlottable.PlottableNotAvailable
edu.iris.Fissures.IfPlottable.UnsupportedDimension

custom_sizes

public boolean custom_sizes()
Specified by:
custom_sizes in interface edu.iris.Fissures.IfPlottable.PlottableDCOperations

get_for_event

public edu.iris.Fissures.Plottable[] get_for_event(edu.iris.Fissures.IfEvent.EventAccess event,
                                                   edu.iris.Fissures.IfNetwork.ChannelId chan,
                                                   edu.iris.Fissures.Dimension dim)
                                            throws edu.iris.Fissures.IfPlottable.PlottableNotAvailable,
                                                   edu.iris.Fissures.IfPlottable.UnsupportedDimension
Specified by:
get_for_event in interface edu.iris.Fissures.IfPlottable.PlottableDCOperations
Throws:
edu.iris.Fissures.IfPlottable.PlottableNotAvailable
edu.iris.Fissures.IfPlottable.UnsupportedDimension

get_plottable

public edu.iris.Fissures.Plottable[] get_plottable(edu.iris.Fissures.IfSeismogramDC.RequestFilter rf,
                                                   edu.iris.Fissures.Dimension dim)
                                            throws edu.iris.Fissures.IfPlottable.PlottableNotAvailable,
                                                   edu.iris.Fissures.IfPlottable.UnsupportedDimension,
                                                   edu.iris.Fissures.NotImplemented
Specified by:
get_plottable in interface edu.iris.Fissures.IfPlottable.PlottableDCOperations
Throws:
edu.iris.Fissures.IfPlottable.PlottableNotAvailable
edu.iris.Fissures.IfPlottable.UnsupportedDimension
edu.iris.Fissures.NotImplemented

getWrappedDC

public edu.iris.Fissures.IfPlottable.PlottableDCOperations getWrappedDC()
Description copied from interface: ProxyPlottableDC
Returns the DataCenterOperations directly inside of this one

Specified by:
getWrappedDC in interface ProxyPlottableDC

getWrappedDC

public edu.iris.Fissures.IfPlottable.PlottableDCOperations getWrappedDC(java.lang.Class wrappedClass)
Description copied from interface: ProxyPlottableDC
Traverses through all of the ProxySeismogramDCs contained by this one, or the one it contains and if it finds one of the passed in class, returns it. If there isn't one, it throws IllegalArgumentException

Specified by:
getWrappedDC in interface ProxyPlottableDC