ibspan.log4jade.client
Class ACLAppender
java.lang.Object
org.apache.log4j.spi.ComponentBase
org.apache.log4j.AppenderSkeleton
ibspan.log4jade.client.ACLAppender
- All Implemented Interfaces:
- Serializable, Appender, Component, OptionHandler
public class ACLAppender
- extends AppenderSkeleton
- implements Serializable
ACLAppender is responsible for
- Author:
- Maciej Gawinecki
Contributors:
- Ruth Zamorano
- Rafael Luque
- Jaran Nilsen
- Caire Giovanni
- See Also:
- Serialized Form
Methods inherited from class org.apache.log4j.AppenderSkeleton |
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isActive, isAsSevereAsThreshold, isAsSevereAsThreshold, isClosed, setErrorHandler, setLayout, setName, setThreshold |
owner
protected Agent owner
buffer
protected AgentEventsBuffer buffer
evaluator
protected TriggeringEventEvaluator evaluator
ACLAppender
public ACLAppender(Agent a,
AgentContext context,
int bufferSize)
- Parameters:
a
-
ACLAppender
public ACLAppender(Agent a,
TriggeringEventEvaluator evaluator,
AgentContext context,
int bufferSize)
- Parameters:
a
- evaluator
- diagnosticContext
-
setLocationInfo
public void setLocationInfo(boolean locationInfo)
- The LocationInfo option takes a boolean value. If true, the
information sent to the remote host will include location information. By
default no location information is sent to the server.
getLocationInfo
public boolean getLocationInfo()
- Returns value of the LocationInfo option.
getContext
public AgentContext getContext()
setContext
public void setContext(AgentContext context)
getBufferSize
public int getBufferSize()
- Returns:
setBufferSize
public void setBufferSize(int bufferSize)
- Parameters:
bufferSize
-
setEvaluatorClass
public void setEvaluatorClass(String value)
- The EvaluatorClass option takes a string value representing the
name of the class implementing the
TriggeringEventEvaluator
interface. A corresponding object will be instantiated and assigned as
the triggering event evaluator for the SMTPAppender.
getEvaluatorClass
public String getEvaluatorClass()
- Returns:
append
protected void append(LoggingEvent event)
- Specified by:
append
in class AppenderSkeleton
sendBuffer
protected void sendBuffer()
- Sends buffer with logging events to Logging Service agents.
Messages contains logging events and diagnostic context of the owner
agent.
requiresLayout
public boolean requiresLayout()
- Specified by:
requiresLayout
in interface Appender
- Specified by:
requiresLayout
in class AppenderSkeleton
close
public void close()
- Close this appender.
If events buffer is not empty, then it is send before closing.
- Specified by:
close
in interface Appender
- Specified by:
close
in class AppenderSkeleton
subscribe
protected void subscribe()
- Subscribe for logging service.
Updates list of Logging Service agents (receivers of logging events).
getBuffer
public AgentEventsBuffer getBuffer()
forceSending
public void forceSending()