org.apache.log4j.net
Class ZeroConfSocketHubAppender
java.lang.Object
org.apache.log4j.AppenderSkeleton
org.apache.log4j.net.SocketHubAppender
org.apache.log4j.net.ZeroConfSocketHubAppender
- All Implemented Interfaces:
- org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler
public class ZeroConfSocketHubAppender
- extends org.apache.log4j.net.SocketHubAppender
A sub-class of SocketHubAppender that broadcasts its configuration via Zeroconf.
This allows Zeroconf aware applications such as Chainsaw to be able to detect them, and automatically configure
themselves to be able to connect to them.
- Author:
- psmith
| Fields inherited from class org.apache.log4j.AppenderSkeleton |
closed, errorHandler, headFilter, layout, name, tailFilter, threshold |
|
Method Summary |
void |
activateOptions()
|
void |
close()
|
java.lang.String |
getZeroConfZone()
Returns the ZeroConf domain that will be used to register this 'device'. |
void |
setZeroConfZone(java.lang.String zeroConfZone)
Sets the ZeroConf zone to register this device under, BE CAREFUL with this value
as ZeroConf has some weird naming conventions, it should start with an "_" and end in a ".",
if you're not sure about this value might I suggest that you leave it at the default value
which is specified in DEFAULT_ZEROCONF_ZONE. |
| Methods inherited from class org.apache.log4j.net.SocketHubAppender |
append, cleanUp, getLocationInfo, getPort, requiresLayout, setLocationInfo, setPort |
| Methods inherited from class org.apache.log4j.AppenderSkeleton |
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_ZEROCONF_ZONE
public static final java.lang.String DEFAULT_ZEROCONF_ZONE
- See Also:
- Constant Field Values
ZeroConfSocketHubAppender
public ZeroConfSocketHubAppender()
activateOptions
public void activateOptions()
- Specified by:
activateOptions in interface org.apache.log4j.spi.OptionHandler- Overrides:
activateOptions in class org.apache.log4j.net.SocketHubAppender
getZeroConfZone
public java.lang.String getZeroConfZone()
- Returns the ZeroConf domain that will be used to register this 'device'.
- Returns:
- String ZeroConf zone
setZeroConfZone
public void setZeroConfZone(java.lang.String zeroConfZone)
- Sets the ZeroConf zone to register this device under, BE CAREFUL with this value
as ZeroConf has some weird naming conventions, it should start with an "_" and end in a ".",
if you're not sure about this value might I suggest that you leave it at the default value
which is specified in
DEFAULT_ZEROCONF_ZONE.
This method does NO(0, zero, pun not intended) checks on this value.
- Parameters:
zeroConfZone -
close
public void close()
- Specified by:
close in interface org.apache.log4j.Appender- Overrides:
close in class org.apache.log4j.net.SocketHubAppender
Copyright © 2007 Apache Software Foundation. All Rights Reserved.