public class TransportLogger extends TransportFilter
next, transportListener| Constructor and Description |
|---|
TransportLogger(Transport next,
Logger log,
boolean startLogging,
LogWriter logWriter) |
| Modifier and Type | Method and Description |
|---|---|
FutureResponse |
asyncRequest(Object command,
ResponseCallback responseCallback)
An asynchronous request response where the Receipt will be returned in
the future.
|
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)
called to process a command
|
void |
oneway(Object command)
A one way asynchronous send
|
void |
onException(IOException error)
An unrecoverable exception has occured on the transport
|
Object |
request(Object command)
A synchronous request response
|
Object |
request(Object command,
int timeout)
A synchronous request response
|
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, updateURIspublic TransportLogger(Transport next, 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
Transportrequest in interface Transportrequest in class TransportFilterIOExceptionpublic Object request(Object command, int timeout) throws IOException
Transportrequest in interface Transportrequest in class TransportFilterIOExceptionpublic FutureResponse asyncRequest(Object command, ResponseCallback responseCallback) throws IOException
TransportasyncRequest in interface TransportasyncRequest in class TransportFilterresponseCallback - TODOIOExceptionpublic void oneway(Object command) throws IOException
Transportoneway in interface Transportoneway in class TransportFilterIOExceptionpublic void onCommand(Object command)
TransportListeneronCommand in interface TransportListeneronCommand in class TransportFilterpublic void onException(IOException error)
TransportListeneronException in interface TransportListeneronException in class TransportFilterpublic TransportLoggerView getView()
public void setView(TransportLoggerView view)
view - the associated MBean for this TransportLogger.public String toString()
toString in class TransportFilterpublic void stop() throws Exception
stop in interface Servicestop in class TransportFilterExceptionService.stop()Copyright © 2005–2015 FuseSource, Corp.. All rights reserved.