public class ClientLogger extends Object implements ClientInterceptor
DGC_PING, METHOD_CALL, METHOD_ERROR, METHOD_RESULT, SYSTEM_ERROR
Constructor and Description |
---|
ClientLogger() |
Modifier and Type | Method and Description |
---|---|
void |
receive(byte code,
ObjectInput in)
This method is invoked when a message is received from the
server or client during a remote call.
|
void |
send(byte code,
ObjectOutput out)
This method is invoked when a message is sent to the server or
client during a remote call.
|
public void receive(byte code, ObjectInput in) throws IOException, ClassNotFoundException
Interceptor
Constants
interface. An ObjectInput instance is
provided for reading additional information included by a
corresponding Interceptor.send(byte, ObjectOutput)
implementation on the sending end of the message.receive
in interface Interceptor
code
- indicates the type of message being receivedin
- available for reading interceptor specific protocol
dataIOException
- when there is an underlying communication
error with the ObjectInput
instanceClassNotFoundException
- when there is an error
deserializing objects from the ObjectInput
instancespublic void send(byte code, ObjectOutput out) throws IOException
Interceptor
Constants
interface. An ObjectOutput
instance is
provided for sending additional information to the Interceptor.receive(byte, ObjectInput)
implementation on the
receiving end of the message.send
in interface Interceptor
code
- indicates the type of message being sentout
- available for sending output to the receiving
interceptor implementationIOException
- when there is an underlyinc communication
error with the ObjectOutput
instance