|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjgroup.relacs.gmi.protocols.BasicDispatcher
jgroup.relacs.gmi.protocols.Multicast
public class Multicast
Multicast represents a protocol that dispatch method invocations received through the local endpoint to all the other members of the group, including the local server. The result from all members is returned to the local endpoint whom first received the method invocation request, and one of them is selected and passed back to the client.
Constructor Summary | |
---|---|
Multicast(GroupInvocationDispatcher dispatcher,
MulticastService mcast,
MembershipService pgms)
|
Method Summary | |
---|---|
java.lang.Object |
deliverObject(java.lang.Object msg,
MemberId sender,
int seqNo)
Upcall that is invoked by Jgroup to deliver a message msg ,
corresponding to a single serialized object. |
java.lang.Object |
deliverStream(java.io.InputStream msg,
MemberId sender,
int seqNo)
Received a multicast message from a mediating endpoint for invocation dispatching at the local server. |
InvocationResult |
dispatch(java.io.InputStream in)
Handle inbound request to the local endpoint with multicast invocation semantics. |
java.lang.String |
getProtocolName()
Returns a string naming the protocol implemented by this multicast listener. |
Methods inherited from class jgroup.relacs.gmi.protocols.BasicDispatcher |
---|
getIdentifier, setServer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Multicast(GroupInvocationDispatcher dispatcher, MulticastService mcast, MembershipService pgms)
Method Detail |
---|
public InvocationResult dispatch(java.io.InputStream in) throws java.io.IOException
dispatch
in interface ProtocolDispatcher
dispatch
in class BasicDispatcher
in
- the method to invoke, encoded in the provided InputStream
.
java.io.IOException
- Raised if the method invocation read from the
InputStream
could not be executed for some reason.ProtocolDispatcher.dispatch(java.io.InputStream)
public java.lang.String getProtocolName()
MulticastListener
getProtocolName
in interface MulticastListener
public java.lang.Object deliverStream(java.io.InputStream msg, MemberId sender, int seqNo)
deliverStream
in interface MulticastListener
msg
- Multicast message receivedsender
- the sender of the multicast messageseqNo
- the sequence number of this multicast message
null
if the invocation failed.MulticastListener.deliverStream(java.io.InputStream, jgroup.core.MemberId, int)
public java.lang.Object deliverObject(java.lang.Object msg, MemberId sender, int seqNo)
MulticastListener
msg
,
corresponding to a single serialized object.
deliverObject
in interface MulticastListener
msg
- the object that was multicasted.sender
- the sender of the multicast messageseqNo
- the sequence number of this multicast message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |