public class TransportLogger extends org.apache.activemq.transport.TransportFilter
| Constructor and Description |
|---|
TransportLogger(org.apache.activemq.transport.Transport next,
Logger log,
boolean startLogging,
org.apache.activemq.transport.LogWriter logWriter) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.activemq.transport.FutureResponse |
asyncRequest(Object command,
org.apache.activemq.transport.ResponseCallback responseCallback) |
TransportLoggerView |
getView()
Gets the associated MBean for this TransportLogger.
|
boolean |
isLogging()
Returns true if logging is activated for this TransportLogger, false otherwise.
|
void |
onCommand(Object command) |
void |
oneway(Object command) |
void |
onException(IOException error) |
Object |
request(Object command) |
Object |
request(Object command,
int timeout) |
void |
setLogging(boolean logging)
Sets if logging should be activated for this TransportLogger.
|
void |
setView(TransportLoggerView view)
Sets the associated MBean for this TransportLogger.
|
void |
stop() |
String |
toString() |
getNext, getPeerCertificates, getReceiveCounter, getRemoteAddress, getTransportListener, getWireFormat, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, reconnect, setPeerCertificates, setTransportListener, start, transportInterupted, transportResumed, updateURIspublic TransportLogger(org.apache.activemq.transport.Transport next, Logger log, boolean startLogging, org.apache.activemq.transport.LogWriter logWriter)
public boolean isLogging()
public void setLogging(boolean logging)
logging - true to activate logging, false to deactivate.public Object request(Object command) throws IOException
request in interface org.apache.activemq.transport.Transportrequest in class org.apache.activemq.transport.TransportFilterIOExceptionpublic Object request(Object command, int timeout) throws IOException
request in interface org.apache.activemq.transport.Transportrequest in class org.apache.activemq.transport.TransportFilterIOExceptionpublic org.apache.activemq.transport.FutureResponse asyncRequest(Object command, org.apache.activemq.transport.ResponseCallback responseCallback) throws IOException
asyncRequest in interface org.apache.activemq.transport.TransportasyncRequest in class org.apache.activemq.transport.TransportFilterIOExceptionpublic void oneway(Object command) throws IOException
oneway in interface org.apache.activemq.transport.Transportoneway in class org.apache.activemq.transport.TransportFilterIOExceptionpublic void onCommand(Object command)
onCommand in interface org.apache.activemq.transport.TransportListeneronCommand in class org.apache.activemq.transport.TransportFilterpublic void onException(IOException error)
onException in interface org.apache.activemq.transport.TransportListeneronException in class org.apache.activemq.transport.TransportFilterpublic TransportLoggerView getView()
public void setView(TransportLoggerView view)
view - the associated MBean for this TransportLogger.public String toString()
toString in class org.apache.activemq.transport.TransportFilterCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.