public class PacketLoggingServiceImpl
extends java.lang.Object
implements org.jitsi.service.packetlogging.PacketLoggingService
Constructor and Description |
---|
PacketLoggingServiceImpl() |
Modifier and Type | Method and Description |
---|---|
org.jitsi.service.packetlogging.PacketLoggingConfiguration |
getConfiguration()
Returns the current Packet Logging Configuration.
|
boolean |
isLoggingEnabled()
Checks is logging globally enabled for the service.
|
boolean |
isLoggingEnabled(org.jitsi.service.packetlogging.PacketLoggingService.ProtocolName protocol)
Checks is logging globally enabled for and is it currently available for
the given service.
|
void |
logPacket(org.jitsi.service.packetlogging.PacketLoggingService.ProtocolName protocol,
byte[] sourceAddress,
int sourcePort,
byte[] destinationAddress,
int destinationPort,
org.jitsi.service.packetlogging.PacketLoggingService.TransportName transport,
boolean sender,
byte[] packetContent)
Log a packet with all the required information.
|
void |
logPacket(org.jitsi.service.packetlogging.PacketLoggingService.ProtocolName protocol,
byte[] sourceAddress,
int sourcePort,
byte[] destinationAddress,
int destinationPort,
org.jitsi.service.packetlogging.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.
|
public void start()
public void stop()
public boolean isLoggingEnabled()
isLoggingEnabled
in interface org.jitsi.service.packetlogging.PacketLoggingService
public boolean isLoggingEnabled(org.jitsi.service.packetlogging.PacketLoggingService.ProtocolName protocol)
isLoggingEnabled
in interface org.jitsi.service.packetlogging.PacketLoggingService
protocol
- that is checked.public void logPacket(org.jitsi.service.packetlogging.PacketLoggingService.ProtocolName protocol, byte[] sourceAddress, int sourcePort, byte[] destinationAddress, int destinationPort, org.jitsi.service.packetlogging.PacketLoggingService.TransportName transport, boolean sender, byte[] packetContent)
logPacket
in interface org.jitsi.service.packetlogging.PacketLoggingService
protocol
- 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(org.jitsi.service.packetlogging.PacketLoggingService.ProtocolName protocol, byte[] sourceAddress, int sourcePort, byte[] destinationAddress, int destinationPort, org.jitsi.service.packetlogging.PacketLoggingService.TransportName transport, boolean sender, byte[] packetContent, int packetOffset, int packetLength)
logPacket
in interface org.jitsi.service.packetlogging.PacketLoggingService
protocol
- 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 org.jitsi.service.packetlogging.PacketLoggingConfiguration getConfiguration()
getConfiguration
in interface org.jitsi.service.packetlogging.PacketLoggingService
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.