org.apache.log4j.net
Class MulticastReceiver
java.lang.Object
org.apache.log4j.spi.ComponentBase
org.apache.log4j.plugins.PluginSkeleton
org.apache.log4j.plugins.Receiver
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
Fields inherited from class org.apache.log4j.plugins.PluginSkeleton |
active, name |
Fields inherited from class org.apache.log4j.spi.ComponentBase |
repository |
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 |
MulticastReceiver
public MulticastReceiver()
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
Copyright 2000-2003 Apache Software Foundation.