org.objectweb.carol.irmi
Class ClientLogger

java.lang.Object
  extended byorg.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

Field Summary
 
Fields inherited from interface org.objectweb.carol.irmi.Constants
DGC_PING, METHOD_CALL, METHOD_ERROR, METHOD_RESULT, SYSTEM_ERROR
 
Constructor Summary
ClientLogger()
           
 
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
 

Constructor Detail

ClientLogger

public ClientLogger()
Method Detail

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 received
in - 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 sent
out - available for sending output to the receiving interceptor implementation
Throws:
IOException - when there is an underlyinc communication error with the ObjectOutput instance