org.jnetstream.capture.file.snoop
Interface SnoopPacketRecord

All Superinterfaces:
DataRecord, Record, SnoopRecord, com.slytechs.utils.collection.Validatable

public interface SnoopPacketRecord
extends DataRecord, SnoopRecord

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
static class SnoopPacketRecord.SnoopPacketHeader
           
 
Nested classes/interfaces inherited from interface org.jnetstream.capture.file.Record
Record.RecordHeaderField
 
Nested classes/interfaces inherited from interface org.jnetstream.capture.file.Record
Record.RecordHeaderField
 
Field Summary
static int FIELD_MAX_DROPS
           
static int FIELD_MAX_INCLUDED
           
static int FIELD_MAX_MICROS
           
static int FIELD_MAX_ORIGINAL
           
static int FIELD_MAX_RECORD
           
static Filter<RecordFilterTarget> FILTER
          Predefined filter that accepts only Packet record types.
static int HEADER_LENGTH
           
static SeekPattern pattern
          Defines a search pattern for SNOOP packet record header.
 
Method Summary
 int getDrops()
           
 long getIncludedLength()
           
 long getMicroseconds()
           
 long getOriginalLength()
           
 long getSeconds()
           
 void setDrops(int drops)
           
 void setIncludedLength(int length)
           
 void setMicroseconds(long micros)
           
 void setOriginalLength(int length)
           
 void setRecordLength(int length)
           
 void setSeconds(long seconds)
           
 
Methods inherited from interface org.jnetstream.capture.file.DataRecord
asType, getBlockRecord, getRecordDataBuffer, getRecordDataLength
 
Methods inherited from interface org.jnetstream.capture.file.Record
asType, edit, getFileCapture, getPositionGlobal, getRecordBuffer, getRecordHeaderBuffer, getRecordHeaderLength, getRecordLength, getRecordType
 
Methods inherited from interface com.slytechs.utils.collection.Validatable
isValid
 
Methods inherited from interface org.jnetstream.capture.file.snoop.SnoopRecord
getSnoopRecordType
 
Methods inherited from interface org.jnetstream.capture.file.Record
asType, edit, getFileCapture, getPositionGlobal, getRecordBuffer, getRecordHeaderBuffer, getRecordHeaderLength, getRecordLength, getRecordType
 
Methods inherited from interface com.slytechs.utils.collection.Validatable
isValid
 

Field Detail

FIELD_MAX_DROPS

static final int FIELD_MAX_DROPS
See Also:
Constant Field Values

FIELD_MAX_INCLUDED

static final int FIELD_MAX_INCLUDED
See Also:
Constant Field Values

FIELD_MAX_MICROS

static final int FIELD_MAX_MICROS
See Also:
Constant Field Values

FIELD_MAX_ORIGINAL

static final int FIELD_MAX_ORIGINAL
See Also:
Constant Field Values

FIELD_MAX_RECORD

static final int FIELD_MAX_RECORD
See Also:
Constant Field Values

FILTER

static final Filter<RecordFilterTarget> FILTER
Predefined filter that accepts only Packet record types. All other types of records are filtered out.


HEADER_LENGTH

static final int HEADER_LENGTH
See Also:
Constant Field Values

pattern

static final SeekPattern pattern
Defines a search pattern for SNOOP packet record header. The buffer is at current ByteBuffer.position() is checked against valid values for all fields until all header fields pass their acceptable values.

Method Detail

getDrops

int getDrops()
             throws java.io.IOException
Throws:
java.io.IOException

getIncludedLength

long getIncludedLength()
                       throws java.io.IOException
Throws:
java.io.IOException

getMicroseconds

long getMicroseconds()
                     throws java.io.IOException
Throws:
java.io.IOException

getOriginalLength

long getOriginalLength()
                       throws java.io.IOException
Throws:
java.io.IOException

getSeconds

long getSeconds()
                throws java.io.IOException
Throws:
java.io.IOException

setDrops

void setDrops(int drops)
              throws java.io.IOException
Throws:
java.io.IOException

setIncludedLength

void setIncludedLength(int length)
                       throws java.io.IOException
Throws:
java.io.IOException

setMicroseconds

void setMicroseconds(long micros)
                     throws java.io.IOException
Throws:
java.io.IOException

setOriginalLength

void setOriginalLength(int length)
                       throws java.io.IOException
Throws:
java.io.IOException

setRecordLength

void setRecordLength(int length)
                     throws java.io.IOException
Throws:
java.io.IOException

setSeconds

void setSeconds(long seconds)
                throws java.io.IOException
Throws:
java.io.IOException