public class TCPNetSyslogConfig extends AbstractNetSyslogConfig implements TCPNetSyslogConfigIF
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.
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
delimiterSequence |
protected int |
freshConnectionInterval |
protected boolean |
keepAlive |
protected boolean |
persistentConnection |
protected boolean |
reuseAddress |
protected boolean |
setBufferSize |
protected boolean |
soLinger |
protected int |
soLingerSeconds |
static byte[] |
SYSTEM_DELIMITER_SEQUENCE |
cacheHostAddress, host, maxQueueSize, portbackLogHandlers, charSet, defaultBackLogHandlers, facility, ident, includeIdentInMessageModifier, localName, maxMessageLength, maxShutdownWait, messageModifiers, sendLocalName, sendLocalTimestamp, splitMessageBeginText, splitMessageEndText, threaded, threadLoopInterval, threadPriority, throwExceptionOnInitialize, throwExceptionOnWrite, truncateMessage, useDaemonThread, useStructuredData, writeRetriesAF_UNIX, CACHE_HOST_ADDRESS_DEFAULT, CHAR_SET_DEFAULT, CRLF, FACILITY_ALERT, FACILITY_AUDIT, FACILITY_AUTH, FACILITY_AUTHPRIV, FACILITY_CLOCK2, FACILITY_CRON, FACILITY_DAEMON, FACILITY_FTP, FACILITY_KERN, FACILITY_LOCAL0, FACILITY_LOCAL1, FACILITY_LOCAL2, FACILITY_LOCAL3, FACILITY_LOCAL4, FACILITY_LOCAL5, FACILITY_LOCAL6, FACILITY_LOCAL7, FACILITY_LPR, FACILITY_MAIL, FACILITY_NEWS, FACILITY_NTP, FACILITY_SYSLOG, FACILITY_USER, FACILITY_UUCP, IDENT_SUFFIX_DEFAULT, INCLUDE_IDENT_IN_MESSAGE_MODIFIER_DEFAULT, JNA_NATIVE_CLASS, LEVEL_ALERT, LEVEL_CRITICAL, LEVEL_DEBUG, LEVEL_EMERGENCY, LEVEL_ERROR, LEVEL_INFO, LEVEL_NOTICE, LEVEL_WARN, LF, MAX_MESSAGE_LENGTH_DEFAULT, MAX_MESSAGE_LENGTH_RFC5424, MAX_QUEUE_SIZE_DEFAULT, MAX_SHUTDOWN_WAIT_DEFAULT, OPTION_LOG_CONS, OPTION_LOG_NDELAY, OPTION_LOG_NOWAIT, OPTION_LOG_ODELAY, OPTION_LOG_PERROR, OPTION_LOG_PID, OPTION_NONE, SEND_LOCAL_NAME_DEFAULT, SEND_LOCAL_NAME_DEFAULT_VALUE, SEND_LOCAL_TIMESTAMP_DEFAULT, SERVER_SHUTDOWN_WAIT_DEFAULT, SERVER_SOCKET_BACKLOG_DEFAULT, SHUTDOWN_INTERVAL, SOCK_DGRAM, SOCK_STREAM, SPLIT_MESSAGE_BEGIN_TEXT_DEFAULT, SPLIT_MESSAGE_END_TEXT_DEFAULT, STRUCTURED_DATA_APP_NAME_DEFAULT_VALUE, STRUCTURED_DATA_EMPTY_VALUE, STRUCTURED_DATA_NILVALUE, STRUCTURED_DATA_PROCESS_ID_DEFAULT_VALUE, SYSLOG_BUFFER_SIZE, SYSLOG_DATEFORMAT, SYSLOG_DATEFORMAT_RFC5424, SYSLOG_FACILITY_DEFAULT, SYSLOG_HOST_DEFAULT, SYSLOG_LIBRARY_DEFAULT, SYSLOG_MESSAGE_MODIFIER_PREFIX_DEFAULT, SYSLOG_MESSAGE_MODIFIER_SUFFIX_DEFAULT, SYSLOG_PATH_DEFAULT, SYSLOG_POOL_CONFIG_MAX_ACTIVE_DEFAULT, SYSLOG_POOL_CONFIG_MAX_IDLE_DEFAULT, SYSLOG_POOL_CONFIG_MAX_WAIT_DEFAULT, SYSLOG_POOL_CONFIG_MIN_EVICTABLE_IDLE_TIME_MILLIS_DEFAULT, SYSLOG_POOL_CONFIG_MIN_IDLE_DEFAULT, SYSLOG_POOL_CONFIG_NUM_TESTS_PER_EVICTION_RUN_DEFAULT, SYSLOG_POOL_CONFIG_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS_DEFAULT, SYSLOG_POOL_CONFIG_TEST_ON_BORROW_DEFAULT, SYSLOG_POOL_CONFIG_TEST_ON_RETURN_DEFAULT, SYSLOG_POOL_CONFIG_TEST_WHILE_IDLE_DEFAULT, SYSLOG_POOL_CONFIG_TIME_BETWEEN_EVICTION_RUNS_MILLIS_DEFAULT, SYSLOG_PORT_DEFAULT, SYSLOG_SEQUENTIAL_MESSAGE_MODIFIER_FIRST_NUMBER_DEFAULT, SYSLOG_SEQUENTIAL_MESSAGE_MODIFIER_LAST_NUMBER_DEFAULT, SYSLOG_SEQUENTIAL_MESSAGE_MODIFIER_PAD_CHAR_DEFAULT, SYSLOG_SEQUENTIAL_MESSAGE_MODIFIER_PREFIX_DEFAULT, SYSLOG_SEQUENTIAL_MESSAGE_MODIFIER_SUFFIX_DEFAULT, SYSLOG_SEQUENTIAL_MESSAGE_MODIFIER_USE_PADDING_DEFAULT, SYSLOG_SOCKET_FAMILY_DEFAULT, SYSLOG_SOCKET_LIBRARY_DEFAULT, SYSLOG_SOCKET_PATH_DEFAULT, SYSLOG_SOCKET_PROTOCOL_DEFAULT, SYSLOG_SOCKET_TYPE_DEFAULT, TCP, TCP_DELIMITER_SEQUENCE_DEFAULT, TCP_FRESH_CONNECTION_INTERVAL_DEFAULT, TCP_KEEP_ALIVE_DEFAULT, TCP_MAX_ACTIVE_SOCKETS_BEHAVIOR_DEFAULT, TCP_MAX_ACTIVE_SOCKETS_DEFAULT, TCP_PERSISTENT_CONNECTION_DEFAULT, TCP_REUSE_ADDRESS_DEFAULT, TCP_SET_BUFFER_SIZE_DEFAULT, TCP_SO_LINGER_DEFAULT, TCP_SO_LINGER_SECONDS_DEFAULT, THREAD_LOOP_INTERVAL_DEFAULT, THREAD_PRIORITY_DEFAULT, THREADED_DEFAULT, THROW_EXCEPTION_ON_INITIALIZE_DEFAULT, THROW_EXCEPTION_ON_WRITE_DEFAULT, TRUNCATE_MESSAGE_DEFAULT, UDP, UNIX_SOCKET, UNIX_SYSLOG, USE_DAEMON_THREAD_DEFAULT, USE_STRUCTURED_DATA_DEFAULT, WRITE_RETRIES_DEFAULT| Constructor and Description |
|---|
TCPNetSyslogConfig() |
TCPNetSyslogConfig(int facility) |
TCPNetSyslogConfig(int facility,
String host) |
TCPNetSyslogConfig(int facility,
String host,
int port) |
TCPNetSyslogConfig(String host) |
TCPNetSyslogConfig(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getDelimiterSequence() |
int |
getFreshConnectionInterval() |
int |
getSoLingerSeconds() |
Class |
getSyslogClass() |
Class |
getSyslogWriterClass() |
protected void |
initialize() |
boolean |
isKeepAlive() |
boolean |
isPersistentConnection() |
boolean |
isReuseAddress() |
boolean |
isSetBufferSize() |
boolean |
isSoLinger() |
boolean |
isUseOctetCounting() |
void |
setDelimiterSequence(byte[] delimiterSequence) |
void |
setDelimiterSequence(String delimiterSequence) |
void |
setFreshConnectionInterval(int freshConnectionInterval) |
void |
setKeepAlive(boolean keepAlive) |
void |
setPersistentConnection(boolean persistentConnection) |
void |
setReuseAddress(boolean reuseAddress) |
void |
setSetBufferSize(boolean setBufferSize) |
void |
setSoLinger(boolean soLinger) |
void |
setSoLingerSeconds(int soLingerSeconds) |
void |
setUseOctetCounting(boolean useOctetCounting) |
getHost, getMaxQueueSize, getPort, isCacheHostAddress, setCacheHostAddress, setHost, setMaxQueueSize, setPort_getBackLogHandlers, _getMessageModifiers, addBackLogHandler, addMessageModifier, getBackLogHandlers, getCharSet, getFacility, getIdent, getLocalName, getMaxMessageLength, getMaxShutdownWait, getMessageModifiers, getSplitMessageBeginText, getSplitMessageEndText, getThreadLoopInterval, getThreadPriority, getWriteRetries, insertBackLogHandler, insertMessageModifier, isIncludeIdentInMessageModifier, isSendLocalName, isSendLocalTimestamp, isThreaded, isThrowExceptionOnInitialize, isThrowExceptionOnWrite, isTruncateMessage, isUseDaemonThread, isUseStructuredData, removeAllBackLogHandlers, removeAllMessageModifiers, removeBackLogHandler, removeMessageModifier, setBackLogHandlers, setCharSet, setFacility, setFacility, setIdent, setIncludeIdentInMessageModifier, setLocalName, setMaxMessageLength, setMaxShutdownWait, setMessageModifiers, setSendLocalName, setSendLocalTimestamp, setSplitMessageBeginText, setSplitMessageBeginText, setSplitMessageEndText, setSplitMessageEndText, setThreaded, setThreadLoopInterval, setThreadPriority, setThrowExceptionOnInitialize, setThrowExceptionOnWrite, setTruncateMessage, setUseDaemonThread, setUseStructuredData, setWriteRetriesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisCacheHostAddress, setCacheHostAddressgetBackLogHandlers, getMaxQueueSize, getMaxShutdownWait, getMessageModifiers, getSplitMessageBeginText, getSplitMessageEndText, getThreadLoopInterval, getThreadPriority, getWriteRetries, isThreaded, isUseDaemonThread, setMaxQueueSize, setMaxShutdownWait, setSplitMessageBeginText, setSplitMessageEndText, setThreaded, setThreadLoopInterval, setThreadPriority, setUseDaemonThread, setWriteRetriesaddBackLogHandler, addMessageModifier, getCharSet, getFacility, getHost, getIdent, getLocalName, getMaxMessageLength, getPort, insertBackLogHandler, insertMessageModifier, isIncludeIdentInMessageModifier, isSendLocalName, isSendLocalTimestamp, isThrowExceptionOnInitialize, isThrowExceptionOnWrite, isTruncateMessage, isUseStructuredData, removeAllBackLogHandlers, removeAllMessageModifiers, removeBackLogHandler, removeMessageModifier, setCharSet, setFacility, setFacility, setHost, setIdent, setIncludeIdentInMessageModifier, setLocalName, setMaxMessageLength, setPort, setSendLocalName, setSendLocalTimestamp, setThrowExceptionOnInitialize, setThrowExceptionOnWrite, setTruncateMessage, setUseStructuredDatapublic static byte[] SYSTEM_DELIMITER_SEQUENCE
protected byte[] delimiterSequence
protected boolean persistentConnection
protected boolean soLinger
protected int soLingerSeconds
protected boolean keepAlive
protected boolean reuseAddress
protected boolean setBufferSize
protected int freshConnectionInterval
public TCPNetSyslogConfig()
public TCPNetSyslogConfig(int facility,
String host,
int port)
public TCPNetSyslogConfig(int facility,
String host)
public TCPNetSyslogConfig(int facility)
public TCPNetSyslogConfig(String host, int port)
public TCPNetSyslogConfig(String host)
protected void initialize()
public Class getSyslogClass()
getSyslogClass in interface SyslogConfigIFgetSyslogClass in class AbstractSyslogConfigpublic byte[] getDelimiterSequence()
getDelimiterSequence in interface TCPNetSyslogConfigIFpublic void setDelimiterSequence(byte[] delimiterSequence)
setDelimiterSequence in interface TCPNetSyslogConfigIFpublic void setDelimiterSequence(String delimiterSequence)
public boolean isPersistentConnection()
isPersistentConnection in interface TCPNetSyslogConfigIFpublic void setPersistentConnection(boolean persistentConnection)
setPersistentConnection in interface TCPNetSyslogConfigIFpublic boolean isSoLinger()
isSoLinger in interface TCPNetSyslogConfigIFpublic void setSoLinger(boolean soLinger)
setSoLinger in interface TCPNetSyslogConfigIFpublic int getSoLingerSeconds()
getSoLingerSeconds in interface TCPNetSyslogConfigIFpublic void setSoLingerSeconds(int soLingerSeconds)
setSoLingerSeconds in interface TCPNetSyslogConfigIFpublic boolean isKeepAlive()
isKeepAlive in interface TCPNetSyslogConfigIFpublic void setKeepAlive(boolean keepAlive)
setKeepAlive in interface TCPNetSyslogConfigIFpublic boolean isReuseAddress()
isReuseAddress in interface TCPNetSyslogConfigIFpublic void setReuseAddress(boolean reuseAddress)
setReuseAddress in interface TCPNetSyslogConfigIFpublic boolean isSetBufferSize()
isSetBufferSize in interface TCPNetSyslogConfigIFpublic void setSetBufferSize(boolean setBufferSize)
setSetBufferSize in interface TCPNetSyslogConfigIFpublic int getFreshConnectionInterval()
getFreshConnectionInterval in interface TCPNetSyslogConfigIFpublic void setFreshConnectionInterval(int freshConnectionInterval)
setFreshConnectionInterval in interface TCPNetSyslogConfigIFpublic void setUseOctetCounting(boolean useOctetCounting)
setUseOctetCounting in interface TCPNetSyslogConfigIFpublic boolean isUseOctetCounting()
isUseOctetCounting in interface TCPNetSyslogConfigIFpublic Class getSyslogWriterClass()
getSyslogWriterClass in interface AbstractSyslogConfigIFgetSyslogWriterClass in class AbstractSyslogConfigCopyright © 2017. All rights reserved.