|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.slytechs.jnetstream.file.PacketCounterModel
public final class PacketCounterModel
Enum structure which defines statistical model for packet counter. Since packet counting, especially in a large pcap file can be very expensive and time consuming, if the user does not require an accurate count, he can use one of the available statistical models to estimate packet count using the FilePacketCounter.getCountEsimte() method.
| Field Summary | |
|---|---|
static PacketCounterModel |
full
This model counts every packet in the capture file. |
static PacketCounterModel |
iostream
Using samples from within the file, jump around and gather statistics to use to more accurately estimate the actual packet count in the file. |
static PacketCounterModel |
max
This model simply divides the file size by packet snaplen, which is the maximum size any packet can be in the file and thus come up with minimum number of packets that can exist in this file. |
static PacketCounterModel |
statistical
Using samples from within the file, jump around and gather statistics to use to more accurately estimate the actual packet count in the file. |
static PacketCounterModel[] |
values
Array of contants for this enum |
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object arg0)
|
java.lang.String |
getPath()
A path component that can be used in filenames to incorporate suite information. |
int |
ordinal()
Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero). |
java.lang.String |
toString()
Returns the name of this enum constant, as contained in the declaration. |
static PacketCounterModel |
valueOf(java.lang.String name)
Retruns the enum constant with the specified name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final PacketCounterModel full
public static final PacketCounterModel max
public static final PacketCounterModel statistical
public static final PacketCounterModel iostream
public static final PacketCounterModel[] values
| Method Detail |
|---|
public java.lang.String getPath()
public int ordinal()
public static PacketCounterModel valueOf(java.lang.String name)
name - the name of the constant to return
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object arg0)
compareTo in interface java.lang.Comparable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||