public class TransportLoggerFactory extends Object
TransportLoggerControlMBean| Modifier and Type | Field and Description |
|---|---|
static String |
defaultLogWriterName
LogWriter that will be used if none is specified.
|
| Modifier and Type | Method and Description |
|---|---|
TransportLogger |
createTransportLogger(org.apache.activemq.transport.Transport next)
Creates a TransportLogger object, that will be inserted in the Transport Stack.
|
TransportLogger |
createTransportLogger(org.apache.activemq.transport.Transport next,
int id,
Logger log,
String logWriterName,
boolean dynamicManagement,
boolean startLogging,
int jmxport)
Creates a TransportLogger object, that will be inserted in the Transport Stack.
|
TransportLogger |
createTransportLogger(org.apache.activemq.transport.Transport next,
Logger log)
Creates a TransportLogger object, that will be inserted in the Transport Stack.
|
TransportLogger |
createTransportLogger(org.apache.activemq.transport.Transport next,
String logWriterName,
boolean useJmx,
boolean startLogging,
int jmxport)
Creates a TransportLogger object, that will be inserted in the Transport Stack.
|
static TransportLoggerFactory |
getInstance()
Returns a TransportLoggerFactory object which can be used to create TransportLogger objects.
|
void |
stop() |
public static String defaultLogWriterName
public static TransportLoggerFactory getInstance()
public void stop()
public TransportLogger createTransportLogger(org.apache.activemq.transport.Transport next) throws IOException
next - The next Transport layer in the Transport stack.IOExceptionpublic TransportLogger createTransportLogger(org.apache.activemq.transport.Transport next, Logger log) throws IOException
next - The next Transport layer in the Transport stack.log - The log4j log that will be used by the TransportLogger.IOExceptionpublic TransportLogger createTransportLogger(org.apache.activemq.transport.Transport next, String logWriterName, boolean useJmx, boolean startLogging, int jmxport) throws IOException
next - The next Transport layer in the Transport stack.startLogging - Specifies if this TransportLogger should be initially active or not.logWriterName - The name or the LogWriter to be used. Different log writers can output
logs with a different format.IOExceptionpublic TransportLogger createTransportLogger(org.apache.activemq.transport.Transport next, int id, Logger log, String logWriterName, boolean dynamicManagement, boolean startLogging, int jmxport) throws IOException
next - The next Transport layer in the Transport stack.id - The id of the transport logger.log - The log4j log that will be used by the TransportLogger.logWriterName - The name or the LogWriter to be used. Different log writers can outputdynamicManagement - Specifies if JMX will be used to switch on/off the TransportLogger to be created.startLogging - Specifies if this TransportLogger should be initially active or not. Only has a meaning if
dynamicManagement = true.jmxport - the port to be used by the JMX server. It should only be different from 1099 (broker's default JMX port)
when it's a client that is using Transport Logging. In a broker, if the port is different from 1099, 2 JMX servers will
be created, both identical, with all the MBeans.IOExceptionCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.