mChaRM.mChaRMCollection
Class verboseReceiverStub
java.lang.Object
|
+--uka.karmi.rmi.server.RemoteObject
|
+--uka.karmi.rmi.server.UnicastRemoteObject
|
+--mChaRM.multichannel.stub
|
+--mChaRM.multichannel.receiverStub
|
+--mChaRM.mChaRMCollection.verboseReceiverStub
- All Implemented Interfaces:
- java.lang.Cloneable, receiverStubInterface, uka.karmi.rmi.Remote, stubInterface
- public class verboseReceiverStub
- extends receiverStub
realizes the receiver stubs of a multi-channel of kind verbose.
Its meta-behavior consists in tracing the trapped calls printing the information related them, when they arrive on the receiver 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 |
verboseReceiverStub(java.lang.Object myReferent,
java.lang.String myKind,
java.lang.String myReferentName)
constructor for the stubs. |
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 |
verboseReceiverStub
public verboseReceiverStub(java.lang.Object myReferent,
java.lang.String myKind,
java.lang.String myReferentName)
throws uka.karmi.rmi.RemoteException,
ReceiverStubCannotBeRegisteredAsAServerException,
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:
ReceiverStubCannotBeRegisteredAsAServerException
- thrown when the stub cannot be registered as a server.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.
beforeReceiverSideMetaBehavior
public void beforeReceiverSideMetaBehavior(mChaRMMethodCall msg)
- it is called before the true invocation of the trapped method and permits to prints a message regarding the trapped message.
- Overrides:
beforeReceiverSideMetaBehavior
in class receiverStub
- Parameters:
msg
- the trapped message.
afterReceiverSideMetaBehavior
public void afterReceiverSideMetaBehavior(mChaRMMethodCall msg)
- it is called after the true invocation of the trapped method and prints a message regarding the return value.
- Overrides:
afterReceiverSideMetaBehavior
in class receiverStub
- Parameters:
msg
- the trapped message.