|
|||||||||
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.tcp.TCPNetSyslog
public class TCPNetSyslog
TCPNetSyslog is an extension of AbstractSyslog that provides support for TCP/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 TCPNetSyslogConfigIF |
tcpNetSyslogConfig
|
protected TCPNetSyslogWriter |
writer
|
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 | |
---|---|
TCPNetSyslog()
|
Method Summary | |
---|---|
void |
flush()
|
AbstractSyslogWriter |
getWriter()
|
AbstractSyslogWriter |
getWriter(boolean create)
|
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 TCPNetSyslogWriter writer
protected TCPNetSyslogConfigIF tcpNetSyslogConfig
Constructor Detail |
---|
public TCPNetSyslog()
Method Detail |
---|
public void initialize() throws SyslogRuntimeException
initialize
in class AbstractNetSyslog
SyslogRuntimeException
public AbstractSyslogWriter getWriter()
getWriter
in class AbstractSyslog
public AbstractSyslogWriter getWriter(boolean create)
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 void returnWriter(AbstractSyslogWriter syslogWriter)
returnWriter
in class AbstractSyslog
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |