|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.tribe.channel.ReliableGroupChannel
org.objectweb.tribe.channel.ReliableGroupChannelWithGms
This class defines a ReliableGroupChannel relying on a Group Membership Service (GMS).
Field Summary | |
protected GroupMembershipService |
gms
|
Fields inherited from class org.objectweb.tribe.channel.ReliableGroupChannel |
channelPool, currentGroup, incomingBuffer, me |
Constructor Summary | |
ReliableGroupChannelWithGms(GroupMembershipService gms)
Creates a new ReliableGroupChannelWithGms using the provided
group membership service. |
Method Summary | |
Group |
getGroup(GroupIdentifier gid)
Get the group (including its members) corresponding to the given gid. |
void |
join(GroupIdentifier gid)
Join the group that has the given group identifier. |
void |
quit()
Quit the current group. |
java.util.ArrayList |
send(java.io.Serializable msg,
GroupIdentifier gid,
java.util.ArrayList members)
Sends a message to members of group gid without being necessary member of the group. |
Methods inherited from class org.objectweb.tribe.channel.ReliableGroupChannel |
close, getCurrentGroup, getLocalMembership, join, receive, send, send, setMembership |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected GroupMembershipService gms
Constructor Detail |
public ReliableGroupChannelWithGms(GroupMembershipService gms)
ReliableGroupChannelWithGms
using the provided
group membership service.
gms
- the GMS service to useMethod Detail |
public void join(GroupIdentifier gid) throws AlreadyMemberException, ChannelException, NotConnectedException
gid
- the identifier of the group to join
AlreadyMemberException
- if we are already member of the group
NotConnectedException
- if the channel is not connected
ChannelException
- if an error is reported by the channelpublic void quit() throws ChannelException, NotConnectedException
quit
in class ReliableGroupChannel
ChannelException
- if a communication error occurs
NotConnectedException
- if the channel is not connected to any grouppublic Group getGroup(GroupIdentifier gid)
gid
- the group identifier
Group
corresponding to this gid.public java.util.ArrayList send(java.io.Serializable msg, GroupIdentifier gid, java.util.ArrayList members) throws ChannelException, NotConnectedException
send
in class ReliableGroupChannel
msg
- message to sendmembers
- ArrayList
of Member
that are
all part of the group
ArrayList
of Members who failed, or null if all
members received successfully the message.
ChannelException
- if an error occurs
NotConnectedException
- if the channel is not connected to any group
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |