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(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(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, getReceiveCounter, getRemoteAddress, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, reconnect, setTransportListener, start, transportInterupted, transportResumed, updateURIs
public TransportLogger(Transport next, org.slf4j.Logger log, boolean startLogging, 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 Transport
request
in class TransportFilter
IOException
public Object request(Object command, int timeout) throws IOException
request
in interface Transport
request
in class TransportFilter
IOException
public FutureResponse asyncRequest(Object command, ResponseCallback responseCallback) throws IOException
asyncRequest
in interface Transport
asyncRequest
in class TransportFilter
IOException
public void oneway(Object command) throws IOException
oneway
in interface Transport
oneway
in class TransportFilter
IOException
public void onCommand(Object command)
onCommand
in interface TransportListener
onCommand
in class TransportFilter
public void onException(IOException error)
onException
in interface TransportListener
onException
in class TransportFilter
public TransportLoggerView getView()
public void setView(TransportLoggerView view)
view
- the associated MBean for this TransportLogger.public String toString()
toString
in class TransportFilter
Copyright © 2005–2019 FuseSource, Corp.. All rights reserved.