org.mbari.siam.tests.linkBenchmark2.server
Class Benchmark2Impl

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.mbari.siam.tests.linkBenchmark2.server.Benchmark2Impl
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, Benchmark2

public class Benchmark2Impl
extends java.rmi.server.UnicastRemoteObject
implements Benchmark2

See Also:
Serialized Form

Field Summary
protected  DeviceLog _log
          DeviceLog that we're going to get data from
protected static org.apache.log4j.Logger _log4j
          Log4j logger
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface org.mbari.siam.tests.linkBenchmark2.interfaces.Benchmark2
RMI_SERVER_NAME, SOCKET_TCP_PORT
 
Constructor Summary
Benchmark2Impl()
           
 
Method Summary
protected  java.lang.String className()
           
 byte[] getCompressedPackets(long startKey, long endKey, int maxEntries)
          Gets compressed DevicePacketSets from DeviceLog named in setDeviceLog()
 DevicePacketSet getPackets(long startKey, long endKey, int maxEntries)
          Gets DevicePacketSets from DeviceLog named in setDeviceLog()
static void main(java.lang.String[] args)
           
 int setDeviceLog(long sensorId, java.lang.String directory)
          Sets DeviceLog for later getPackets(), returns total number of entries in DeviceLog
 int setFilteredDeviceLog(long sensorId, java.lang.String directory)
          Uses FilteredDeviceLog for later getPackets(), returns total number of entries in FilteredDeviceLog
protected static void setupRegistry()
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_log4j

protected static org.apache.log4j.Logger _log4j
Log4j logger


_log

protected DeviceLog _log
DeviceLog that we're going to get data from

Constructor Detail

Benchmark2Impl

public Benchmark2Impl()
               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

className

protected java.lang.String className()

setDeviceLog

public int setDeviceLog(long sensorId,
                        java.lang.String directory)
                 throws java.rmi.RemoteException,
                        java.io.IOException,
                        java.io.FileNotFoundException
Description copied from interface: Benchmark2
Sets DeviceLog for later getPackets(), returns total number of entries in DeviceLog

Specified by:
setDeviceLog in interface Benchmark2
Throws:
java.rmi.RemoteException
java.io.IOException
java.io.FileNotFoundException

setFilteredDeviceLog

public int setFilteredDeviceLog(long sensorId,
                                java.lang.String directory)
                         throws java.rmi.RemoteException,
                                java.io.IOException,
                                java.io.FileNotFoundException
Description copied from interface: Benchmark2
Uses FilteredDeviceLog for later getPackets(), returns total number of entries in FilteredDeviceLog

Specified by:
setFilteredDeviceLog in interface Benchmark2
Throws:
java.rmi.RemoteException
java.io.IOException
java.io.FileNotFoundException

getPackets

public DevicePacketSet getPackets(long startKey,
                                  long endKey,
                                  int maxEntries)
                           throws NoDataException,
                                  java.rmi.RemoteException
Description copied from interface: Benchmark2
Gets DevicePacketSets from DeviceLog named in setDeviceLog()

Specified by:
getPackets in interface Benchmark2
Throws:
NoDataException
java.rmi.RemoteException

getCompressedPackets

public byte[] getCompressedPackets(long startKey,
                                   long endKey,
                                   int maxEntries)
                            throws NoDataException,
                                   java.io.InvalidClassException,
                                   java.io.NotSerializableException,
                                   java.io.IOException,
                                   java.rmi.RemoteException
Description copied from interface: Benchmark2
Gets compressed DevicePacketSets from DeviceLog named in setDeviceLog()

Specified by:
getCompressedPackets in interface Benchmark2
Throws:
NoDataException
java.io.InvalidClassException
java.io.NotSerializableException
java.io.IOException
java.rmi.RemoteException

setupRegistry

protected static void setupRegistry()

main

public static void main(java.lang.String[] args)


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.