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(Transport next)
Creates a TransportLogger object, that will be inserted in the Transport Stack.
|
TransportLogger |
createTransportLogger(Transport next,
int id,
org.slf4j.Logger log,
String logWriterName,
boolean dynamicManagement,
boolean startLogging,
int jmxport)
Creates a TransportLogger object, that will be inserted in the Transport Stack.
|
TransportLogger |
createTransportLogger(Transport next,
org.slf4j.Logger log)
Creates a TransportLogger object, that will be inserted in the Transport Stack.
|
TransportLogger |
createTransportLogger(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(Transport next) throws IOException
next
- The next Transport layer in the Transport stack.IOException
public TransportLogger createTransportLogger(Transport next, org.slf4j.Logger log) throws IOException
next
- The next Transport layer in the Transport stack.log
- The log4j log that will be used by the TransportLogger.IOException
public TransportLogger createTransportLogger(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.IOException
public TransportLogger createTransportLogger(Transport next, int id, org.slf4j.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.IOException
Copyright © 2005–2014. All rights reserved.