org.apache.accumulo.core.util
Class AsyncSocketAppender

java.lang.Object
  extended by org.apache.log4j.AppenderSkeleton
      extended by org.apache.log4j.AsyncAppender
          extended by org.apache.accumulo.core.util.AsyncSocketAppender
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.AppenderAttachable, org.apache.log4j.spi.OptionHandler

public class AsyncSocketAppender
extends org.apache.log4j.AsyncAppender

An asynchronous appender that maintains its own internal socket appender. Unlike AsyncAppender, this appender can be configured with a Log4J properties file, although in that case no additional appenders can be added.


Field Summary
 
Fields inherited from class org.apache.log4j.AsyncAppender
DEFAULT_BUFFER_SIZE
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
Constructor Summary
AsyncSocketAppender()
          Creates a new appender.
 
Method Summary
 void append(org.apache.log4j.spi.LoggingEvent event)
           
 String getApplication()
           
 int getPort()
           
 int getReconnectionDelay()
           
 String getRemoteHost()
           
 boolean isAdvertiseViaMulticastDNS()
           
 void setAdvertiseViaMulticastDNS(boolean advertiseViaMulticastDNS)
           
 void setApplication(String lapp)
           
 void setLocationInfo(boolean locationInfo)
           
 void setPort(int port)
           
 void setReconnectionDelay(int delay)
           
 void setRemoteHost(String host)
           
 
Methods inherited from class org.apache.log4j.AsyncAppender
addAppender, close, getAllAppenders, getAppender, getBlocking, getBufferSize, getLocationInfo, isAttached, removeAllAppenders, removeAppender, removeAppender, requiresLayout, setBlocking, setBufferSize
 
Methods inherited from class org.apache.log4j.AppenderSkeleton
activateOptions, 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
 

Constructor Detail

AsyncSocketAppender

public AsyncSocketAppender()
Creates a new appender.

Method Detail

append

public void append(org.apache.log4j.spi.LoggingEvent event)
Overrides:
append in class org.apache.log4j.AsyncAppender

getApplication

public String getApplication()

getPort

public int getPort()

getReconnectionDelay

public int getReconnectionDelay()

getRemoteHost

public String getRemoteHost()

isAdvertiseViaMulticastDNS

public boolean isAdvertiseViaMulticastDNS()

setAdvertiseViaMulticastDNS

public void setAdvertiseViaMulticastDNS(boolean advertiseViaMulticastDNS)

setApplication

public void setApplication(String lapp)

setLocationInfo

public void setLocationInfo(boolean locationInfo)
Overrides:
setLocationInfo in class org.apache.log4j.AsyncAppender

setPort

public void setPort(int port)

setReconnectionDelay

public void setReconnectionDelay(int delay)

setRemoteHost

public void setRemoteHost(String host)


Copyright © 2015 Apache Accumulo Project. All rights reserved.