org.jnetstream.capture
Interface DeserializedPacket

All Superinterfaces:
CapturePacket, java.lang.Iterable<Header>, Packet

public interface DeserializedPacket
extends CapturePacket

A packet that was sent accross a stream. It was serialized and deserialized and sent using standard java.io Input and Output stream mechanism. The SerialPacket interface adds methods which provide more information about the transit across the stream process. Main methods of interest at the getSerializedTimestamp() and getDeserializedTimestamp() which allow one to calculate the transit time of the packet accross the stream. Care must be taken and the clocks of both sender receiver must by synchronized or accounted for. The exact sychronization mechanism is beyond the scope of this API.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jnetstream.packet.Packet
Packet.Property
 
Method Summary
 java.sql.Timestamp getDeserializedTimestamp()
           
 java.sql.Timestamp getSerializedTimestamp()
           
 void setDeserializedTimestamp(java.sql.Timestamp timestamp)
          Sets the time of exactly when the packet was deserialized from a stream.
 void setSerializedTimestamp(java.sql.Timestamp timestamp)
          Sets the timestamp of exactly when the packet was serialized.
 
Methods inherited from interface org.jnetstream.capture.CapturePacket
getCaptureDevice, getIncludedLength, getOriginalLength
 
Methods inherited from interface org.jnetstream.packet.Packet
format, getAllHeaders, getBuffer, getData, getHeader, getHeader, getHeaderCount, getProperty, getTimestampNanos, getTimestampSeconds, hasCompleteHeader, hasCompleteHeader, hasHeader, hasHeader, isTruncated, iterator
 

Method Detail

getDeserializedTimestamp

java.sql.Timestamp getDeserializedTimestamp()
Returns:

getSerializedTimestamp

java.sql.Timestamp getSerializedTimestamp()
Returns:

setDeserializedTimestamp

void setDeserializedTimestamp(java.sql.Timestamp timestamp)
Sets the time of exactly when the packet was deserialized from a stream.

Parameters:
timestamp -

setSerializedTimestamp

void setSerializedTimestamp(java.sql.Timestamp timestamp)
Sets the timestamp of exactly when the packet was serialized.

Parameters:
timestamp -