org.mbari.siam.tests.linkBenchmark2.interfaces
Interface Benchmark2

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
Benchmark2Impl, SocketBenchmarkProxy

public interface Benchmark2
extends java.rmi.Remote


Field Summary
static java.lang.String RMI_SERVER_NAME
           
static int SOCKET_TCP_PORT
           
 
Method Summary
 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()
 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
 

Field Detail

RMI_SERVER_NAME

static final java.lang.String RMI_SERVER_NAME
See Also:
Constant Field Values

SOCKET_TCP_PORT

static final int SOCKET_TCP_PORT
See Also:
Constant Field Values
Method Detail

setDeviceLog

int setDeviceLog(long sensorId,
                 java.lang.String directory)
                 throws java.io.IOException,
                        java.io.FileNotFoundException
Sets DeviceLog for later getPackets(), returns total number of entries in DeviceLog

Throws:
java.io.IOException
java.io.FileNotFoundException

setFilteredDeviceLog

int setFilteredDeviceLog(long sensorId,
                         java.lang.String directory)
                         throws java.io.IOException,
                                java.io.FileNotFoundException
Uses FilteredDeviceLog for later getPackets(), returns total number of entries in FilteredDeviceLog

Throws:
java.io.IOException
java.io.FileNotFoundException

getPackets

DevicePacketSet getPackets(long startKey,
                           long endKey,
                           int maxEntries)
                           throws NoDataException,
                                  java.io.IOException
Gets DevicePacketSets from DeviceLog named in setDeviceLog()

Throws:
NoDataException
java.io.IOException

getCompressedPackets

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

Throws:
NoDataException
java.io.InvalidClassException
java.io.NotSerializableException
java.io.IOException
java.rmi.RemoteException


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.