|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibis.gmi.Forwarder
The Forwarder
class serves as a base class for user-defined
forwarders.
A forwarder is to be defined for the ForwardReply
reply scheme.
When this reply scheme is used, all replies of a group method invocation
are passed to this forwarder object, through calls to a "forward" method.
This class is not abstract, because the user-defined forwarder does not have
to supply all "forward" methods (for all different result types). Therefore,
default ones are supplied that just throw an exception.
Field Summary |
Constructor Summary | |
Forwarder()
|
Method Summary | |
void |
forward(int rank,
int size)
Invoked when a "void" result is received. |
void |
forward(int rank,
int size,
boolean result)
Invoked when a boolean result is received. |
void |
forward(int rank,
int size,
byte result)
Invoked when a byte result is received. |
void |
forward(int rank,
int size,
char result)
Invoked when a char result is received. |
void |
forward(int rank,
int size,
double result)
Invoked when a double result is received. |
void |
forward(int rank,
int size,
java.lang.Exception result)
Invoked when the group method invoked caused an exception. |
void |
forward(int rank,
int size,
float result)
Invoked when a float result is received. |
void |
forward(int rank,
int size,
int result)
Invoked when a int result is received. |
void |
forward(int rank,
int size,
long result)
Invoked when a long result is received. |
void |
forward(int rank,
int size,
java.lang.Object result)
Invoked when an Object result is received. |
void |
forward(int rank,
int size,
short result)
Invoked when a short result is received. |
void |
startReceiving(GroupStub stb,
int nr,
int tckt)
Initiate receiving and forwarding a reply for a group method invoked by the GroupStub "stub". |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Forwarder()
Method Detail |
public void forward(int rank, int size)
rank
- the rank number of the group member from which this reply
was receivedsize
- the total number of replies to be expectedpublic void forward(int rank, int size, boolean result)
rank
- the rank number of the group member from which this reply
was receivedsize
- the total number of replies to be expectedresult
- the replied valuepublic void forward(int rank, int size, byte result)
rank
- the rank number of the group member from which this reply
was receivedsize
- the total number of replies to be expectedresult
- the replied valuepublic void forward(int rank, int size, char result)
rank
- the rank number of the group member from which this reply
was receivedsize
- the total number of replies to be expectedresult
- the replied valuepublic void forward(int rank, int size, short result)
rank
- the rank number of the group member from which this reply
was receivedsize
- the total number of replies to be expectedresult
- the replied valuepublic void forward(int rank, int size, int result)
rank
- the rank number of the group member from which this reply
was receivedsize
- the total number of replies to be expectedresult
- the replied valuepublic void forward(int rank, int size, long result)
rank
- the rank number of the group member from which this reply
was receivedsize
- the total number of replies to be expectedresult
- the replied valuepublic void forward(int rank, int size, float result)
rank
- the rank number of the group member from which this reply
was receivedsize
- the total number of replies to be expectedresult
- the replied valuepublic void forward(int rank, int size, double result)
rank
- the rank number of the group member from which this reply
was receivedsize
- the total number of replies to be expectedresult
- the replied valuepublic void forward(int rank, int size, java.lang.Object result)
rank
- the rank number of the group member from which this reply
was receivedsize
- the total number of replies to be expectedresult
- the replied valuepublic void forward(int rank, int size, java.lang.Exception result)
rank
- the rank number of the group member from which this reply
was receivedsize
- the total number of replies to be expectedresult
- the exceptionpublic void startReceiving(GroupStub stb, int nr, int tckt)
GroupStub
"stub". This is done by placing this forwarder
on the reply stack of the stub, so that a reply handler can invoke the
forwarder, once it receives a reply.
stb
- the stub expecting a replynr
- the total number of replies to be expectedtckt
- the ticket number for the stub's reply stack
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |