mChaRM.mChaRMCollection
Class verboseSenderStub

java.lang.Object
  |
  +--uka.karmi.rmi.server.RemoteObject
        |
        +--uka.karmi.rmi.server.UnicastRemoteObject
              |
              +--mChaRM.multichannel.stub
                    |
                    +--mChaRM.multichannel.senderStub
                          |
                          +--mChaRM.mChaRMCollection.verboseSenderStub
All Implemented Interfaces:
java.lang.Cloneable, uka.karmi.rmi.Remote, senderStubInterface, stubInterface

public class verboseSenderStub
extends senderStub

realizes the sender stubs of a multi-channel of kind verbose. Its meta-behavior consists in tracing the trapped calls printing the information related them, at the moment they are trapped on the sender side.

Since:
Version 1.0
Version:
1.1
Author:
Walter Cazzola (cazzola@disi.unige.it)

Fields inherited from class uka.karmi.rmi.server.RemoteObject
serverRef
 
Constructor Summary
verboseSenderStub(java.lang.Object myReferent, java.lang.String myKind, java.lang.String myReferentName)
          constructor for the stubs.
 
Method Summary
 void afterSenderSideMetaBehavior(mChaRMMethodCall msg)
          This method performs the sender side meta-behavior for a multi-channel of kind verbose.
 void beforeSenderSideMetaBehavior(mChaRMMethodCall msg)
          This method performs the sender side meta-behavior for a multi-channel of kind verbose.
 
Methods inherited from class mChaRM.multichannel.senderStub
stubBehavior
 
Methods inherited from class mChaRM.multichannel.stub
referent, retrieveField, setReferent, setWhoIsMyCore, WhoIsMyCore
 
Methods inherited from class uka.karmi.rmi.server.UnicastRemoteObject
buildStub, clone, exportObject, exportObject, unexportObject
 
Methods inherited from class uka.karmi.rmi.server.RemoteObject
equals, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface mChaRM.multichannel.stubInterface
retrieveField
 

Constructor Detail

verboseSenderStub

public verboseSenderStub(java.lang.Object myReferent,
                         java.lang.String myKind,
                         java.lang.String myReferentName)
                  throws uka.karmi.rmi.RemoteException,
                         SenderStubCannotBeRegisteredAsAServerException,
                         SenderStubNotFoundException,
                         CoreNotFoundException
constructor for the stubs. Its ancestor constructor is entrusted of all the work.
Parameters:
myReferent - a representant of the stub referent.
myKind - the multi-channel's name.
myReferentName - the referent's name.
Throws:
SenderStubCannotBeRegisteredAsAServerException - thrown when the stub cannot be registered as a server.
SenderStubNotFoundException - thrown when the core can't link to the this sender stub.
CoreNotFoundException - thrown when the core of the multi-channel, which the stub is part of, doesn't exist or isn't correctly registered as a server.
Method Detail

beforeSenderSideMetaBehavior

public void beforeSenderSideMetaBehavior(mChaRMMethodCall msg)
This method performs the sender side meta-behavior for a multi-channel of kind verbose.
It is called before passing all the staff to the core and it permits to perform meta-computations on sender side. It prints a message related the trapped call.
Overrides:
beforeSenderSideMetaBehavior in class senderStub
Parameters:
msg - a reification of the trapped message.

afterSenderSideMetaBehavior

public void afterSenderSideMetaBehavior(mChaRMMethodCall msg)
This method performs the sender side meta-behavior for a multi-channel of kind verbose.
It is called after that the computation passed through the abstract locus. It prints a message related to the returned message.
Overrides:
afterSenderSideMetaBehavior in class senderStub
Parameters:
msg - a reification of the trapped message.