|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.packetlogging.PacketLoggingServiceImpl
public class PacketLoggingServiceImpl
Packet Logging Service implementation dumping logs in pcap(tcpdump/wireshark) format file.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface net.java.sip.communicator.service.packetlogging.PacketLoggingService |
|---|
PacketLoggingService.ProtocolName, PacketLoggingService.TransportName |
| Constructor Summary | |
|---|---|
PacketLoggingServiceImpl()
|
|
| Method Summary | |
|---|---|
PacketLoggingConfiguration |
getConfiguration()
Returns the current Packet Logging Configuration. |
boolean |
isLoggingEnabled()
Checks is logging globally enabled for the service. |
boolean |
isLoggingEnabled(PacketLoggingService.ProtocolName protocol)
Checks is logging globally enabled for and is it currently available fo the given service. |
void |
logPacket(PacketLoggingService.ProtocolName protocol,
byte[] sourceAddress,
int sourcePort,
byte[] destinationAddress,
int destinationPort,
PacketLoggingService.TransportName transport,
boolean sender,
byte[] packetContent)
Log a packet with all the required information. |
void |
logPacket(PacketLoggingService.ProtocolName protocol,
byte[] sourceAddress,
int sourcePort,
byte[] destinationAddress,
int destinationPort,
PacketLoggingService.TransportName transport,
boolean sender,
byte[] packetContent,
int packetOffset,
int packetLength)
Log a packet with all the required information. |
void |
start()
Starting the packet logger. |
void |
stop()
Stops the packet logging. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PacketLoggingServiceImpl()
| Method Detail |
|---|
public void start()
public void stop()
public boolean isLoggingEnabled()
isLoggingEnabled in interface PacketLoggingServicepublic boolean isLoggingEnabled(PacketLoggingService.ProtocolName protocol)
isLoggingEnabled in interface PacketLoggingServiceprotocol - that is checked.
public void logPacket(PacketLoggingService.ProtocolName protocol,
byte[] sourceAddress,
int sourcePort,
byte[] destinationAddress,
int destinationPort,
PacketLoggingService.TransportName transport,
boolean sender,
byte[] packetContent)
logPacket in interface PacketLoggingServiceprotocol - the source protocol that logs this packet.sourceAddress - the source address of the packet.sourcePort - the source port of the packet.destinationAddress - the destination address.destinationPort - the destination port.transport - the transport this packet uses.sender - are we the sender of the packet or not.packetContent - the packet content.
public void logPacket(PacketLoggingService.ProtocolName protocol,
byte[] sourceAddress,
int sourcePort,
byte[] destinationAddress,
int destinationPort,
PacketLoggingService.TransportName transport,
boolean sender,
byte[] packetContent,
int packetOffset,
int packetLength)
logPacket in interface PacketLoggingServiceprotocol - the source protocol that logs this packet.sourceAddress - the source address of the packet.sourcePort - the source port of the packet.destinationAddress - the destination address.destinationPort - the destination port.transport - the transport this packet uses.sender - are we the sender of the packet or not.packetContent - the packet content.packetOffset - the packet content offset.packetLength - the packet content length.public PacketLoggingConfiguration getConfiguration()
getConfiguration in interface PacketLoggingService
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||