public class TransportLogger extends TransportFilter
next, transportListener| Constructor and Description |
|---|
TransportLogger(Transport next,
org.slf4j.Logger log,
boolean startLogging,
LogWriter logWriter) |
| Modifier and Type | Method and Description |
|---|---|
FutureResponse |
asyncRequest(java.lang.Object command,
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(java.lang.Object command) |
void |
oneway(java.lang.Object command) |
void |
onException(java.io.IOException error) |
java.lang.Object |
request(java.lang.Object command) |
java.lang.Object |
request(java.lang.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() |
java.lang.String |
toString() |
getNext, getReceiveCounter, getRemoteAddress, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, reconnect, setTransportListener, start, transportInterupted, transportResumed, updateURIspublic boolean isLogging()
public void setLogging(boolean logging)
logging - true to activate logging, false to deactivate.public java.lang.Object request(java.lang.Object command)
throws java.io.IOException
request in interface Transportrequest in class TransportFilterjava.io.IOExceptionpublic java.lang.Object request(java.lang.Object command,
int timeout)
throws java.io.IOException
request in interface Transportrequest in class TransportFilterjava.io.IOExceptionpublic FutureResponse asyncRequest(java.lang.Object command, ResponseCallback responseCallback) throws java.io.IOException
asyncRequest in interface TransportasyncRequest in class TransportFilterjava.io.IOExceptionpublic void oneway(java.lang.Object command)
throws java.io.IOException
oneway in interface Transportoneway in class TransportFilterjava.io.IOExceptionpublic void onCommand(java.lang.Object command)
onCommand in interface TransportListeneronCommand in class TransportFilterpublic void onException(java.io.IOException error)
onException in interface TransportListeneronException in class TransportFilterpublic TransportLoggerView getView()
public void setView(TransportLoggerView view)
view - the associated MBean for this TransportLogger.public java.lang.String toString()
toString in class TransportFilterpublic void stop()
throws java.lang.Exception
stop in interface Servicestop in class TransportFilterjava.lang.ExceptionCopyright © 2005-2016 Red Hat, Inc.. All Rights Reserved.