edu.sc.seis.cormorant.plottable
Class PlottableImpl

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by edu.iris.Fissures.IfPlottable.PlottableDCPOA
          extended by edu.sc.seis.cormorant.plottable.PlottableImpl
All Implemented Interfaces:
PlottableDCOperations, org.omg.CORBA.portable.InvokeHandler

public class PlottableImpl
extends PlottableDCPOA


Constructor Summary
PlottableImpl(boolean cacheOnly, java.lang.String dcDNS, java.lang.String dcName, int dcTries, edu.sc.seis.fissuresUtil.database.ConnectionCreator connCreator)
           
PlottableImpl(edu.sc.seis.fissuresUtil.database.ConnectionCreator connCreator, java.lang.String dcDNS, java.lang.String dcName, int dcTries)
           
PlottableImpl(DataCenterOperations dc, edu.sc.seis.fissuresUtil.database.ConnectionCreator connCreator)
           
 
Method Summary
static RequestFilter[] breakUpFilters(RequestFilter[] filters, TimeInterval maxRequestLength)
           
protected static Plottable[] commitPlotsToDBAndFilterForWidth(edu.sc.seis.fissuresUtil.database.plottable.PlottableChunk[][] chunks, int pixelsPerDay, edu.sc.seis.fissuresUtil.database.plottable.JDBCPlottable db)
           
 boolean custom_sizes()
           
 Dimension[] get_event_sizes()
           
 Plottable[] get_for_day(ChannelId channel_id, int year, int jday, Dimension pixel_size)
           
 Plottable[] get_for_event(EventAccess event, ChannelId channel_id, Dimension pixel_size)
           
 Plottable[] get_plottable(RequestFilter request, Dimension pixel_size)
           
 Dimension[] get_whole_day_sizes()
           
 ChannelId getBestChannelIdFromDb(ChannelId chanId)
          look for better chanId than the one in the request (IE we don't care about the start dates).
 ChannelId getBestChannelIdFromDb(RequestFilter request)
           
protected static edu.sc.seis.fissuresUtil.database.plottable.PlottableChunk[] makePlottables(LocalSeismogram[] seis, int pixelsPerDay, edu.sc.seis.fissuresUtil.display.MicroSecondTimeRange time)
           
 void shutdownDB()
           
 
Methods inherited from class edu.iris.Fissures.IfPlottable.PlottableDCPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlottableImpl

public PlottableImpl(edu.sc.seis.fissuresUtil.database.ConnectionCreator connCreator,
                     java.lang.String dcDNS,
                     java.lang.String dcName,
                     int dcTries)
              throws java.sql.SQLException
Throws:
java.sql.SQLException

PlottableImpl

public PlottableImpl(boolean cacheOnly,
                     java.lang.String dcDNS,
                     java.lang.String dcName,
                     int dcTries,
                     edu.sc.seis.fissuresUtil.database.ConnectionCreator connCreator)
              throws java.sql.SQLException
Throws:
java.sql.SQLException

PlottableImpl

public PlottableImpl(DataCenterOperations dc,
                     edu.sc.seis.fissuresUtil.database.ConnectionCreator connCreator)
              throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

custom_sizes

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

get_plottable

public Plottable[] get_plottable(RequestFilter request,
                                 Dimension pixel_size)
                          throws UnsupportedDimension
Specified by:
get_plottable in interface PlottableDCOperations
Specified by:
get_plottable in class PlottableDCPOA
Throws:
UnsupportedDimension

getBestChannelIdFromDb

public ChannelId getBestChannelIdFromDb(ChannelId chanId)
                                 throws edu.sc.seis.fissuresUtil.database.NotFound,
                                        java.sql.SQLException
look for better chanId than the one in the request (IE we don't care about the start dates). this may break if we hook this up to a seismogram server that actually cares about dates.

Throws:
edu.sc.seis.fissuresUtil.database.NotFound
java.sql.SQLException

getBestChannelIdFromDb

public ChannelId getBestChannelIdFromDb(RequestFilter request)
                                 throws edu.sc.seis.fissuresUtil.database.NotFound,
                                        java.sql.SQLException
Throws:
edu.sc.seis.fissuresUtil.database.NotFound
java.sql.SQLException

makePlottables

protected static edu.sc.seis.fissuresUtil.database.plottable.PlottableChunk[] makePlottables(LocalSeismogram[] seis,
                                                                                             int pixelsPerDay,
                                                                                             edu.sc.seis.fissuresUtil.display.MicroSecondTimeRange time)
                                                                                      throws CodecException,
                                                                                             java.sql.SQLException,
                                                                                             java.io.IOException
Throws:
CodecException
java.sql.SQLException
java.io.IOException

commitPlotsToDBAndFilterForWidth

protected static Plottable[] commitPlotsToDBAndFilterForWidth(edu.sc.seis.fissuresUtil.database.plottable.PlottableChunk[][] chunks,
                                                              int pixelsPerDay,
                                                              edu.sc.seis.fissuresUtil.database.plottable.JDBCPlottable db)
                                                       throws java.sql.SQLException,
                                                              java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

get_for_day

public Plottable[] get_for_day(ChannelId channel_id,
                               int year,
                               int jday,
                               Dimension pixel_size)
                        throws UnsupportedDimension
Specified by:
get_for_day in interface PlottableDCOperations
Specified by:
get_for_day in class PlottableDCPOA
Throws:
UnsupportedDimension

get_whole_day_sizes

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

shutdownDB

public void shutdownDB()
                throws java.sql.SQLException
Throws:
java.sql.SQLException

get_event_sizes

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

get_for_event

public Plottable[] get_for_event(EventAccess event,
                                 ChannelId channel_id,
                                 Dimension pixel_size)
Specified by:
get_for_event in interface PlottableDCOperations
Specified by:
get_for_event in class PlottableDCPOA

breakUpFilters

public static RequestFilter[] breakUpFilters(RequestFilter[] filters,
                                             TimeInterval maxRequestLength)


Copyright © 2004-2007 Seismology at the University of South Carolina. All Rights Reserved.