public abstract class JmsLogAppenderSupport extends AppenderSkeleton
| Modifier and Type | Field and Description |
|---|---|
static int |
JMS_PUBLISH_ERROR_CODE |
closed, errorHandler, headFilter, layout, name, tailFilter, threshold| Constructor and Description |
|---|
JmsLogAppenderSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateOptions() |
protected void |
append(LoggingEvent event) |
void |
close() |
protected abstract Connection |
createConnection() |
protected Message |
createMessage(LoggingEvent event) |
protected MessageProducer |
createProducer() |
protected Session |
createSession() |
Connection |
getConnection() |
protected Destination |
getDestination(LoggingEvent event) |
MessageProducer |
getProducer() |
Session |
getSession() |
boolean |
requiresLayout() |
void |
setConnection(Connection connection) |
void |
setProducer(MessageProducer producer) |
void |
setSession(Session session) |
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThresholdpublic static final int JMS_PUBLISH_ERROR_CODE
public JmsLogAppenderSupport()
public Connection getConnection() throws JMSException, NamingException
JMSExceptionNamingExceptionpublic void setConnection(Connection connection)
public Session getSession() throws JMSException, NamingException
JMSExceptionNamingExceptionpublic void setSession(Session session)
public MessageProducer getProducer() throws JMSException, NamingException
JMSExceptionNamingExceptionpublic void setProducer(MessageProducer producer)
public void close()
public boolean requiresLayout()
public void activateOptions()
activateOptions in interface OptionHandleractivateOptions in class AppenderSkeletonprotected abstract Connection createConnection() throws JMSException, NamingException
JMSExceptionNamingExceptionprotected Session createSession() throws JMSException, NamingException
JMSExceptionNamingExceptionprotected MessageProducer createProducer() throws JMSException, NamingException
JMSExceptionNamingExceptionprotected void append(LoggingEvent event)
append in class AppenderSkeletonprotected Message createMessage(LoggingEvent event) throws JMSException, NamingException
JMSExceptionNamingExceptionprotected Destination getDestination(LoggingEvent event) throws JMSException, NamingException
JMSExceptionNamingExceptionCopyright © 2005–2015 FuseSource, Corp.. All rights reserved.