org.objectweb.carol.irmi
Class ClientLogger
java.lang.Object
org.objectweb.carol.irmi.ClientLogger
- All Implemented Interfaces:
- ClientInterceptor, Constants, Interceptor, Serializable
- public class ClientLogger
- extends Object
- implements ClientInterceptor
ClientLogger
- Author:
- Rafael H. Schloming <rhs@mit.edu>
- See Also:
- Serialized Form
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientLogger
public ClientLogger()
receive
public void receive(byte code,
ObjectInput in)
throws IOException,
ClassNotFoundException
- Description copied from interface:
Interceptor
- This method is invoked when a message is received from the
server or client during a remote call. The type of message is
indicated by the code parameter. Legal values may be found in
the
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.
- Specified by:
receive
in interface Interceptor
- Parameters:
code
- indicates the type of message being receivedin
- available for reading interceptor specific protocol
data
- Throws:
ClassNotFoundException
- when there is an error
deserializing objects from the ObjectInput
instances
IOException
- when there is an underlying communication
error with the ObjectInput
instance
send
public void send(byte code,
ObjectOutput out)
throws IOException
- Description copied from interface:
Interceptor
- This method is invoked when a message is sent to the server or
client during a remote call. The type of message is indicated
by the code parameter. Legal values may be found in the
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.
- Specified by:
send
in interface Interceptor
- Parameters:
code
- indicates the type of message being sentout
- available for sending output to the receiving
interceptor implementation
- Throws:
IOException
- when there is an underlyinc communication
error with the ObjectOutput
instance