|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.tribe.gms.GroupMembershipService
org.objectweb.tribe.gms.JGroupsMembershipService
This class defines a JGroupsMembershipService
Field Summary |
Fields inherited from class org.objectweb.tribe.gms.GroupMembershipService |
GMS_KEY, groupMemberships, listeners, logger |
Constructor Summary | |
JGroupsMembershipService(java.net.URL jgroupsConfigFile)
Creates a new JGroupsMembershipService object |
Method Summary | |
void |
block()
|
org.jgroups.JChannel |
getJGroupsChannel()
Gets underlying JGroups channel. |
Member |
join(ReliableGroupChannelWithGms channel,
GroupIdentifier gid)
Joins the group that has the given group identifier. |
static Member |
memberFromJGroupsAddress(org.jgroups.stack.IpAddress jgroupsAddress)
Returns a tribe Member object from a JGroups address (supposed to be an IpAddress). |
void |
quit(ReliableGroupChannelWithGms channel,
GroupIdentifier gid)
Leaves the group that has the given group identifier. |
void |
suspect(org.jgroups.Address suspectedMbr)
|
void |
viewAccepted(org.jgroups.View newView)
|
Methods inherited from class org.objectweb.tribe.gms.GroupMembershipService |
discoveryRequest, failedMember, getGroup, getLogger, getReceiveBuffer, groupComposition, joinMember, quitMember, registerGroupMembershipListener, stop, unregisterGroupMembershipListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JGroupsMembershipService(java.net.URL jgroupsConfigFile) throws ChannelException
JGroupsMembershipService
object
jgroupsConfigFile
- JGroups configuration fileMethod Detail |
public org.jgroups.JChannel getJGroupsChannel()
public Member join(ReliableGroupChannelWithGms channel, GroupIdentifier gid) throws AlreadyMemberException, NotConnectedException, ChannelException
GroupMembershipService
join
in class GroupMembershipService
channel
- client channel to join the groupgid
- the identifier of the group to join
ChannelException
- if an error is reported by the channel
NotConnectedException
- if the channel is not connected
AlreadyMemberException
- if we are already member of the groupGroupMembershipService.join(org.objectweb.tribe.channel.ReliableGroupChannelWithGms,
org.objectweb.tribe.common.GroupIdentifier)
public void quit(ReliableGroupChannelWithGms channel, GroupIdentifier gid) throws ChannelException, NotConnectedException
GroupMembershipService
quit
in class GroupMembershipService
channel
- client channel to leave the groupgid
- the identifier of the group to quit
ChannelException
- if an error occurs
NotConnectedException
- if m does not belong to this groupGroupMembershipService.quit(org.objectweb.tribe.channel.ReliableGroupChannelWithGms,
org.objectweb.tribe.common.GroupIdentifier)
public static Member memberFromJGroupsAddress(org.jgroups.stack.IpAddress jgroupsAddress)
jgroupsAddress
- the JGroups address
public void viewAccepted(org.jgroups.View newView)
viewAccepted
in interface org.jgroups.MembershipListener
MembershipListener.viewAccepted(org.jgroups.View)
public void suspect(org.jgroups.Address suspectedMbr)
suspect
in interface org.jgroups.MembershipListener
MembershipListener.suspect(org.jgroups.Address)
public void block()
block
in interface org.jgroups.MembershipListener
MembershipListener.block()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |