|
Log4j 1.3alpha-5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log4j.spi.ComponentBase | +--org.apache.log4j.plugins.PluginSkeleton | +--org.apache.log4j.plugins.Receiver | +--org.apache.log4j.net.MulticastReceiver
Multicast-based receiver. Accepts LoggingEvents encoded using MulticastAppender and XMLLayout. The the XML data is converted back to a LoggingEvent and is posted.
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()
Activate the options that were previously set with calls to option setters. |
java.lang.String |
getAddress()
Returns a String representation of the Address this instance encompasses |
java.lang.String |
getDecoder()
|
java.lang.String |
getEncoding()
Returns value of the Encoding option. |
int |
getPort()
Returns the Port # that this net based thing is using |
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()
Call when the plugin should be stopped. |
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 |
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 |
Constructor Detail |
public MulticastReceiver()
Method Detail |
public java.lang.String getDecoder()
public void setDecoder(java.lang.String decoder)
public int getPort()
PortBased
getPort
in interface PortBased
public void setPort(int port)
public java.lang.String getAddress()
AddressBased
getAddress
in interface AddressBased
public void setEncoding(java.lang.String encoding)
public java.lang.String getEncoding()
public void shutdown()
Plugin
shutdown
in interface Plugin
public void setAddress(java.lang.String address)
public boolean isPaused()
isPaused
in interface Pauseable
public void setPaused(boolean b)
setPaused
in interface Pauseable
public boolean isActive()
isActive
in interface NetworkBased
isActive
in class PluginSkeleton
public void activateOptions()
OptionHandler
This allows to defer activiation of the options until all options have been set. This is required for components which have related options that remain ambigous until all are set.
For example, the FileAppender has the File
and Append
options both of
which are ambigous until the other is also set.
activateOptions
in interface OptionHandler
|
Log4j 1.3alpha-5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |