edu.sc.seis.fissuresUtil.cache
Class NSPlottableDC

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

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


Field Summary
protected  FissuresNamingService namingService
           
protected  java.lang.ThreadLocal<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()
           
 Dimension[] get_event_sizes()
           
 Plottable[] get_for_day(ChannelId chan, int year, int jday, Dimension dim)
           
 Plottable[] get_for_event(EventAccess event, ChannelId chan, Dimension dim)
           
 Plottable[] get_plottable(RequestFilter rf, Dimension dim)
           
 Dimension[] get_whole_day_sizes()
           
 PlottableDC getCorbaObject()
          Gets the real corba DataCenter object for which this is a proxy.
 java.lang.String getFullName()
           
 PlottableDC getPlottableDC()
           
 org.omg.CORBA.Object getRealCorbaObject()
           
 java.lang.String getServerDNS()
           
 java.lang.String getServerName()
           
 java.lang.String getServerType()
           
 PlottableDCOperations getWrappedDC()
          Returns the DataCenterOperations directly inside of this one
 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<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 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 PlottableDC getPlottableDC()

get_whole_day_sizes

public Dimension[] get_whole_day_sizes()
Specified by:
get_whole_day_sizes in interface PlottableDCOperations

get_event_sizes

public Dimension[] get_event_sizes()
Specified by:
get_event_sizes in interface PlottableDCOperations

get_for_day

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

custom_sizes

public boolean custom_sizes()
Specified by:
custom_sizes in interface PlottableDCOperations

get_for_event

public Plottable[] get_for_event(EventAccess event,
                                 ChannelId chan,
                                 Dimension dim)
                          throws PlottableNotAvailable,
                                 UnsupportedDimension
Specified by:
get_for_event in interface PlottableDCOperations
Throws:
PlottableNotAvailable
UnsupportedDimension

get_plottable

public Plottable[] get_plottable(RequestFilter rf,
                                 Dimension dim)
                          throws PlottableNotAvailable,
                                 UnsupportedDimension,
                                 NotImplemented
Specified by:
get_plottable in interface PlottableDCOperations
Throws:
PlottableNotAvailable
UnsupportedDimension
NotImplemented

getWrappedDC

public PlottableDCOperations getWrappedDC()
Description copied from interface: ProxyPlottableDC
Returns the DataCenterOperations directly inside of this one

Specified by:
getWrappedDC in interface ProxyPlottableDC

getWrappedDC

public 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