Log4j 2.0alpha-1

org.apache.log4j.net
Class MulticastReceiver

java.lang.Object
  extended by org.apache.log4j.spi.ComponentBase
      extended by org.apache.log4j.plugins.PluginSkeleton
          extended by org.apache.log4j.plugins.Receiver
              extended by org.apache.log4j.net.MulticastReceiver
All Implemented Interfaces:
org.apache.log4j.net.AddressBased, org.apache.log4j.net.NetworkBased, org.apache.log4j.net.PortBased, org.apache.log4j.plugins.Pauseable, org.apache.log4j.plugins.Plugin, org.apache.log4j.spi.Component, org.apache.log4j.spi.OptionHandler, org.apache.log4j.spi.Thresholdable

public class MulticastReceiver
extends Receiver
implements org.apache.log4j.net.PortBased, org.apache.log4j.net.AddressBased, org.apache.log4j.plugins.Pauseable

Multicast-based receiver. Accepts LoggingEvents encoded using MulticastAppender and XMLLayout. The the XML data is converted back to a LoggingEvent and is posted.

Author:
Scott Deboy

Field Summary
 
Fields inherited from class org.apache.log4j.plugins.Receiver
thresholdLevel
 
Fields inherited from class org.apache.log4j.plugins.PluginSkeleton
active, name
 
Fields inherited from class org.apache.log4j.spi.ComponentBase
repository
 
Constructor Summary
MulticastReceiver()
           
 
Method Summary
 void activateOptions()
           
 java.lang.String getAddress()
           
 java.lang.String getDecoder()
           
 java.lang.String getEncoding()
          Returns value of the Encoding option.
 int getPort()
           
 boolean isActive()
          Returns true if this receiver is active.
 boolean isPaused()
           
 void setAddress(java.lang.String address)
           
 void setDecoder(java.lang.String decoder)
           
 void setEncoding(java.lang.String encoding)
          The Encoding option specifies how the bytes are encoded.
 void setPaused(boolean b)
           
 void setPort(int port)
           
 void shutdown()
           
 
Methods inherited from class org.apache.log4j.plugins.Receiver
doPost, getThreshold, isAsSevereAsThreshold, setThreshold
 
Methods inherited from class org.apache.log4j.plugins.PluginSkeleton
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getLoggerRepository, getName, isEquivalent, removePropertyChangeListener, removePropertyChangeListener, setLoggerRepository, setName
 
Methods inherited from class org.apache.log4j.spi.ComponentBase
getLogger, getNonFloodingLogger, resetErrorCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.log4j.net.NetworkBased
getName
 
Methods inherited from interface org.apache.log4j.net.NetworkBased
getName
 

Constructor Detail

MulticastReceiver

public MulticastReceiver()
Method Detail

getDecoder

public java.lang.String getDecoder()

setDecoder

public void setDecoder(java.lang.String decoder)

getPort

public int getPort()
Specified by:
getPort in interface org.apache.log4j.net.PortBased

setPort

public void setPort(int port)

getAddress

public java.lang.String getAddress()
Specified by:
getAddress in interface org.apache.log4j.net.AddressBased

setEncoding

public void setEncoding(java.lang.String encoding)
The Encoding option specifies how the bytes are encoded. If this option is not specified, the system encoding will be used.


getEncoding

public java.lang.String getEncoding()
Returns value of the Encoding option.


shutdown

public void shutdown()
Specified by:
shutdown in interface org.apache.log4j.plugins.Plugin

setAddress

public void setAddress(java.lang.String address)

isPaused

public boolean isPaused()
Specified by:
isPaused in interface org.apache.log4j.plugins.Pauseable

setPaused

public void setPaused(boolean b)
Specified by:
setPaused in interface org.apache.log4j.plugins.Pauseable

isActive

public boolean isActive()
Returns true if this receiver is active.

Specified by:
isActive in interface org.apache.log4j.net.NetworkBased
Specified by:
isActive in interface org.apache.log4j.plugins.Plugin
Overrides:
isActive in class org.apache.log4j.plugins.PluginSkeleton

activateOptions

public void activateOptions()
Specified by:
activateOptions in interface org.apache.log4j.spi.OptionHandler

Log4j 2.0alpha-1

Copyright 2000-2003 Apache Software Foundation.