org.mbari.siam.operations.portal
Class PacketStats

java.lang.Object
  extended by org.mbari.siam.operations.portal.PacketStats

public class PacketStats
extends java.lang.Object

Describe Device packet retrieval statistics.


Field Summary
 long _latestPacketTime
           
protected static org.apache.log4j.Logger _log4j
          Log4j logger
 
Constructor Summary
PacketStats(DevicePacket packet)
           
PacketStats(DevicePacket packet, boolean includeHeader)
           
PacketStats(long latestPacketTime)
           
PacketStats(java.lang.String record)
           
PacketStats(java.lang.String record, java.lang.String delimiter)
           
 
Method Summary
 byte[] getBuffer()
           
 long getDataSize()
           
 long getDataSize(DevicePacket packet)
           
 java.lang.String getDateString()
           
 long getExportSize()
           
 long getExportSize(DevicePacket packet)
           
 int getHeaderSize()
           
 long getLoggedSize()
           
 long getLoggedSize(DevicePacket packet)
           
 long getMetadataRef()
           
 long getPacketSize()
           
 long getParentID()
           
 long getRecordType()
           
 long getSequenceNo()
           
 long getSourceID()
           
 java.lang.String getStatsHeader()
           
 long getSystemTime()
           
 void includeHeader(boolean include)
           
 boolean isValid()
           
static void main(java.lang.String[] args)
           
 void parse(DevicePacket packet)
           
 boolean parse(java.lang.String record)
           
 void setDelimiter(java.lang.String s)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_log4j

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


_latestPacketTime

public long _latestPacketTime
Constructor Detail

PacketStats

public PacketStats(long latestPacketTime)

PacketStats

public PacketStats(DevicePacket packet,
                   boolean includeHeader)

PacketStats

public PacketStats(DevicePacket packet)

PacketStats

public PacketStats(java.lang.String record)

PacketStats

public PacketStats(java.lang.String record,
                   java.lang.String delimiter)
Method Detail

setDelimiter

public void setDelimiter(java.lang.String s)

includeHeader

public void includeHeader(boolean include)

getStatsHeader

public java.lang.String getStatsHeader()

parse

public boolean parse(java.lang.String record)

isValid

public boolean isValid()

parse

public void parse(DevicePacket packet)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getSystemTime

public long getSystemTime()

getDateString

public java.lang.String getDateString()

getSourceID

public long getSourceID()

getParentID

public long getParentID()

getRecordType

public long getRecordType()

getSequenceNo

public long getSequenceNo()

getMetadataRef

public long getMetadataRef()

getDataSize

public long getDataSize()

getHeaderSize

public int getHeaderSize()

getExportSize

public long getExportSize()

getLoggedSize

public long getLoggedSize()

getPacketSize

public long getPacketSize()

getExportSize

public long getExportSize(DevicePacket packet)

getLoggedSize

public long getLoggedSize(DevicePacket packet)

getBuffer

public byte[] getBuffer()

getDataSize

public long getDataSize(DevicePacket packet)

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.