public abstract class MultiplexSocketAppenderBase<E>
extends ch.qos.logback.core.UnsynchronizedAppenderBase<E>
| Constructor and Description |
|---|
MultiplexSocketAppenderBase() |
MultiplexSocketAppenderBase(WriteByteStrategy writeByteStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRemoteHost(java.lang.String remoteHost) |
protected void |
append(E e) |
protected abstract void |
applicationIdentifierChanged() |
protected java.lang.String |
getApplicationIdentifier() |
int |
getPort() |
protected java.lang.String |
getUUID() |
boolean |
isDebug() |
protected abstract void |
preProcess(E e) |
void |
setApplicationIdentifier(java.lang.String applicationIdentifier) |
void |
setCreatingUUID(boolean creatingUUID) |
void |
setDebug(boolean debug) |
protected void |
setEncoder(de.huxhorn.sulky.codec.Encoder<E> encoder) |
void |
setPort(int port) |
void |
setReconnectionDelay(long reconnectionDelay) |
void |
setRemoteHosts(java.lang.String remoteHosts)
Sets the remote host list by splitting the string remoteHosts.
|
void |
setRemoteHostsList(java.util.List<java.lang.String> remoteHostsList)
Sets the list of remote hosts.
|
void |
start()
Start this appender.
|
void |
stop()
Stop this appender.
|
protected abstract void |
uuidChanged() |
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toStringaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic MultiplexSocketAppenderBase()
public MultiplexSocketAppenderBase(WriteByteStrategy writeByteStrategy)
public void setCreatingUUID(boolean creatingUUID)
protected java.lang.String getUUID()
protected abstract void uuidChanged()
public boolean isDebug()
public void setDebug(boolean debug)
protected java.lang.String getApplicationIdentifier()
public void setApplicationIdentifier(java.lang.String applicationIdentifier)
protected abstract void applicationIdentifierChanged()
public void setReconnectionDelay(long reconnectionDelay)
public int getPort()
public void setPort(int port)
public void setRemoteHosts(java.lang.String remoteHosts)
remoteHosts - comma-separated list of hosts.public void setRemoteHostsList(java.util.List<java.lang.String> remoteHostsList)
remoteHostsList - the list of remote hosts.public void addRemoteHost(java.lang.String remoteHost)
public void start()
start in interface ch.qos.logback.core.spi.LifeCyclestart in class ch.qos.logback.core.UnsynchronizedAppenderBase<E>public void stop()
cleanUp()
method.stop in interface ch.qos.logback.core.spi.LifeCyclestop in class ch.qos.logback.core.UnsynchronizedAppenderBase<E>protected void append(E e)
append in class ch.qos.logback.core.UnsynchronizedAppenderBase<E>protected abstract void preProcess(E e)
protected void setEncoder(de.huxhorn.sulky.codec.Encoder<E> encoder)