Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.packetlogging
Class PacketLoggingConfigurationImpl

java.lang.Object
  extended by net.java.sip.communicator.service.packetlogging.PacketLoggingConfiguration
      extended by net.java.sip.communicator.impl.packetlogging.PacketLoggingConfigurationImpl

public class PacketLoggingConfigurationImpl
extends PacketLoggingConfiguration

Extends PacketLoggingConfiguration by storing and loading values from configuration service.

Author:
Damian Minkov

Field Summary
 
Fields inherited from class net.java.sip.communicator.service.packetlogging.PacketLoggingConfiguration
PACKET_LOGGING_ENABLED_PROPERTY_NAME, PACKET_LOGGING_FILE_COUNT_PROPERTY_NAME, PACKET_LOGGING_FILE_SIZE_PROPERTY_NAME, PACKET_LOGGING_ICE4J_ENABLED_PROPERTY_NAME, PACKET_LOGGING_JABBER_ENABLED_PROPERTY_NAME, PACKET_LOGGING_RTP_ENABLED_PROPERTY_NAME, PACKET_LOGGING_SIP_ENABLED_PROPERTY_NAME
 
Constructor Summary
PacketLoggingConfigurationImpl()
          Creates new PacketLoggingConfiguration and load values from configuration service and if missing uses already defined default values.
 
Method Summary
 void setGlobalLoggingEnabled(boolean enabled)
          Change whether packet logging is enabled and save it in configuration.
 void setIce4JLoggingEnabled(boolean enabled)
          Change whether packet logging for Ice4J is enabled and save it in configuration.
 void setJabberLoggingEnabled(boolean enabled)
          Change whether packet logging for jabber protocol is enabled and save it in configuration.
 void setLimit(long limit)
          Changes the file size limit.
 void setLogfileCount(int logfileCount)
          Changes file count.
 void setRTPLoggingEnabled(boolean enabled)
          Change whether packet logging for RTP is enabled and save it in configuration.
 void setSipLoggingEnabled(boolean enabled)
          Change whether packet logging for sip protocol is enabled and save it in configuration.
 
Methods inherited from class net.java.sip.communicator.service.packetlogging.PacketLoggingConfiguration
getLimit, getLogfileCount, isGlobalLoggingEnabled, isIce4JLoggingEnabled, isJabberLoggingEnabled, isRTPLoggingEnabled, isSipLoggingEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PacketLoggingConfigurationImpl

PacketLoggingConfigurationImpl()
Creates new PacketLoggingConfiguration and load values from configuration service and if missing uses already defined default values.

Method Detail

setGlobalLoggingEnabled

public void setGlobalLoggingEnabled(boolean enabled)
Change whether packet logging is enabled and save it in configuration.

Overrides:
setGlobalLoggingEnabled in class PacketLoggingConfiguration
Parameters:
enabled - true if we enable it.

setSipLoggingEnabled

public void setSipLoggingEnabled(boolean enabled)
Change whether packet logging for sip protocol is enabled and save it in configuration.

Overrides:
setSipLoggingEnabled in class PacketLoggingConfiguration
Parameters:
enabled - true if we enable it.

setJabberLoggingEnabled

public void setJabberLoggingEnabled(boolean enabled)
Change whether packet logging for jabber protocol is enabled and save it in configuration.

Overrides:
setJabberLoggingEnabled in class PacketLoggingConfiguration
Parameters:
enabled - true if we enable it.

setRTPLoggingEnabled

public void setRTPLoggingEnabled(boolean enabled)
Change whether packet logging for RTP is enabled and save it in configuration.

Overrides:
setRTPLoggingEnabled in class PacketLoggingConfiguration
Parameters:
enabled - true if we enable it.

setIce4JLoggingEnabled

public void setIce4JLoggingEnabled(boolean enabled)
Change whether packet logging for Ice4J is enabled and save it in configuration.

Overrides:
setIce4JLoggingEnabled in class PacketLoggingConfiguration
Parameters:
enabled - true if we enable it.

setLimit

public void setLimit(long limit)
Changes the file size limit.

Overrides:
setLimit in class PacketLoggingConfiguration
Parameters:
limit - the new limit size.

setLogfileCount

public void setLogfileCount(int logfileCount)
Changes file count.

Overrides:
setLogfileCount in class PacketLoggingConfiguration
Parameters:
logfileCount - the new file count.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.