|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.productivity.java.syslog4j.impl.AbstractSyslog org.productivity.java.syslog4j.impl.net.AbstractNetSyslog org.productivity.java.syslog4j.impl.net.udp.UDPNetSyslog
public class UDPNetSyslog
UDPNetSyslog is an extension of AbstractSyslog that provides support for UDP/IP-based syslog clients.
Syslog4j is licensed under the Lesser GNU Public License v2.1. A copy of the LGPL license is available in the META-INF folder in all distributions of Syslog4j and in the base directory of the "doc" ZIP.
Field Summary | |
---|---|
protected java.net.DatagramSocket |
socket
|
Fields inherited from class org.productivity.java.syslog4j.impl.net.AbstractNetSyslog |
---|
cachedHostAddress, cachedHostAddressSyncObject, netSyslogConfig |
Fields inherited from class org.productivity.java.syslog4j.impl.AbstractSyslog |
---|
backLogStatus, backLogStatusSyncObject, notifiedBackLogHandlers, structuredSyslogMessageProcessor, syslogConfig, syslogMessageProcessor, syslogProtocol |
Constructor Summary | |
---|---|
UDPNetSyslog()
|
Method Summary | |
---|---|
protected void |
createDatagramSocket(boolean initialize)
|
void |
flush()
|
AbstractSyslogWriter |
getWriter()
|
void |
initialize()
|
void |
returnWriter(AbstractSyslogWriter syslogWriter)
|
void |
shutdown()
|
protected void |
write(int level,
byte[] message)
|
Methods inherited from class org.productivity.java.syslog4j.impl.net.AbstractNetSyslog |
---|
getHostAddress |
Methods inherited from class org.productivity.java.syslog4j.impl.AbstractSyslog |
---|
alert, alert, backLog, backLog, createWriter, createWriterThread, critical, critical, debug, debug, emergency, emergency, error, error, getBackLogStatus, getConfig, getMessageProcessor, getProtocol, getStructuredMessageProcessor, info, info, initialize, log, log, log, modifyMessage, notice, notice, prefixMessage, setBackLogStatus, setMessageProcessor, setStructuredMessageProcessor, warn, warn, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.net.DatagramSocket socket
Constructor Detail |
---|
public UDPNetSyslog()
Method Detail |
---|
public void initialize() throws SyslogRuntimeException
initialize
in class AbstractNetSyslog
SyslogRuntimeException
protected void createDatagramSocket(boolean initialize)
protected void write(int level, byte[] message) throws SyslogRuntimeException
write
in class AbstractSyslog
SyslogRuntimeException
public void flush() throws SyslogRuntimeException
SyslogRuntimeException
public void shutdown() throws SyslogRuntimeException
SyslogRuntimeException
public AbstractSyslogWriter getWriter()
getWriter
in class AbstractSyslog
public void returnWriter(AbstractSyslogWriter syslogWriter)
returnWriter
in class AbstractSyslog
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |