Class TcpSession
java.lang.Object
org.apache.drill.exec.store.pcap.decoder.TcpSession
This class is the representation of a TCP session.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This function adds a packet to the TCP session.void
boolean
boolean
This function returns true if the TCP session has been established, false if not.org.joda.time.Period
byte[]
byte[]
int
int
getDstIP()
int
int
int
int
org.joda.time.Period
long
getSrcIP()
int
boolean
-
Constructor Details
-
TcpSession
public TcpSession(long sessionID)
-
-
Method Details
-
addPacket
This function adds a packet to the TCP session.- Parameters:
p
- The Packet to be added to the session
-
connectionEstablished
public boolean connectionEstablished()This function returns true if the TCP session has been established, false if not.- Returns:
- True if the session has been established, false if not.
-
connectionClosed
public boolean connectionClosed() -
closeSession
public void closeSession() -
getSessionStartTime
-
getSessionDuration
public org.joda.time.Period getSessionDuration() -
getConnectionTime
public org.joda.time.Period getConnectionTime() -
getSessionEndTime
-
getSrcMac
-
getDstMac
-
getSrcIP
-
getDstIP
-
getSrcPort
public int getSrcPort() -
getDstPort
public int getDstPort() -
getSessionID
public long getSessionID() -
getPacketCount
public int getPacketCount() -
getPacketCountFromOrigin
public int getPacketCountFromOrigin() -
getPacketCountFromRemote
public int getPacketCountFromRemote() -
hasCorruptedData
public boolean hasCorruptedData() -
getDataVolumeFromOrigin
public int getDataVolumeFromOrigin() -
getDataVolumeFromRemote
public int getDataVolumeFromRemote() -
getDataFromOriginator
public byte[] getDataFromOriginator() -
getDataFromOriginatorAsString
-
getDataFromRemote
public byte[] getDataFromRemote() -
getDataFromRemoteAsString
-