Class TcpSession
java.lang.Object
org.apache.drill.exec.store.pcap.decoder.TcpSession
This class is the representation of a TCP session.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidThis function adds a packet to the TCP session.voidbooleanbooleanThis function returns true if the TCP session has been established, false if not.org.joda.time.Periodbyte[]byte[]intintgetDstIP()intintintintorg.joda.time.PeriodlonggetSrcIP()intboolean
- 
Constructor Details- 
TcpSessionpublic TcpSession(long sessionID) 
 
- 
- 
Method Details- 
addPacketThis function adds a packet to the TCP session.- Parameters:
- p- The Packet to be added to the session
 
- 
connectionEstablishedpublic 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.
 
- 
connectionClosedpublic boolean connectionClosed()
- 
closeSessionpublic void closeSession()
- 
getSessionStartTime
- 
getSessionDurationpublic org.joda.time.Period getSessionDuration()
- 
getConnectionTimepublic org.joda.time.Period getConnectionTime()
- 
getSessionEndTime
- 
getSrcMac
- 
getDstMac
- 
getSrcIP
- 
getDstIP
- 
getSrcPortpublic int getSrcPort()
- 
getDstPortpublic int getDstPort()
- 
getSessionIDpublic long getSessionID()
- 
getPacketCountpublic int getPacketCount()
- 
getPacketCountFromOriginpublic int getPacketCountFromOrigin()
- 
getPacketCountFromRemotepublic int getPacketCountFromRemote()
- 
hasCorruptedDatapublic boolean hasCorruptedData()
- 
getDataVolumeFromOriginpublic int getDataVolumeFromOrigin()
- 
getDataVolumeFromRemotepublic int getDataVolumeFromRemote()
- 
getDataFromOriginatorpublic byte[] getDataFromOriginator()
- 
getDataFromOriginatorAsString
- 
getDataFromRemotepublic byte[] getDataFromRemote()
- 
getDataFromRemoteAsString
 
-