|
|||||||||||
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
org.objectweb.tribe.channel.JGroupsReliableChannelWithGms
This class defines a JGroupsReliableChannelWithGms which is a ReliableGroupChannelWithGms wrapper on top of a JGroups JChannel that uses the GMS service provided by JGroups.
Field Summary |
Fields inherited from class org.objectweb.tribe.channel.ReliableGroupChannelWithGms |
gms |
Fields inherited from class org.objectweb.tribe.channel.ReliableGroupChannel |
channelPool, currentGroup, incomingBuffer, me |
Constructor Summary | |
JGroupsReliableChannelWithGms(JGroupsMembershipService gms)
Creates a new JGroupsReliableChannel object |
Method Summary | |
Group |
getCurrentGroup()
Returns the current group we are connected to or null if we are not connected to any group. |
Member |
getLocalMembership()
Returns the local membership value (Member object representing this channel in the group). |
java.lang.String |
getProperties()
Return the JGroups channel properties |
void |
join(Group g)
Join the group that has the given group identifier. |
void |
quit()
Quit the current group. |
java.io.Serializable |
receive()
Receives a new message from the channel. |
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. |
java.lang.String |
toString()
|
Methods inherited from class org.objectweb.tribe.channel.ReliableGroupChannelWithGms |
getGroup, join |
Methods inherited from class org.objectweb.tribe.channel.ReliableGroupChannel |
close, send, send, setMembership |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JGroupsReliableChannelWithGms(JGroupsMembershipService gms)
JGroupsReliableChannel
object
gms
- the GMS service to useMethod Detail |
public void join(Group g) throws AlreadyMemberException, ChannelException, NotConnectedException
ReliableGroupChannel
join
in class ReliableGroupChannel
AlreadyMemberException
- if we are already member of the group
NotConnectedException
- if the channel is not connected
ChannelException
- if an error is reported by the channelReliableGroupChannel.join(org.objectweb.tribe.common.Group)
public void quit() throws ChannelException, NotConnectedException
ReliableGroupChannelWithGms
quit
in class ReliableGroupChannelWithGms
ChannelException
- if a communication error occurs
NotConnectedException
- if the channel is not connected to any groupReliableGroupChannel.quit()
public java.io.Serializable receive() throws ChannelException, NotConnectedException
ReliableGroupChannel
receive
in class ReliableGroupChannel
ChannelException
- if an error occurs
NotConnectedException
- if the channel is not connected to any groupReliableGroupChannel.receive()
public java.util.ArrayList send(java.io.Serializable msg, GroupIdentifier gid, java.util.ArrayList members) throws ChannelException, NotConnectedException
ReliableGroupChannelWithGms
send
in class ReliableGroupChannelWithGms
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 groupReliableGroupChannel.send(java.io.Serializable,
org.objectweb.tribe.common.GroupIdentifier, java.util.ArrayList)
public java.lang.String toString()
Object.toString()
public java.lang.String getProperties()
public Member getLocalMembership()
ReliableGroupChannel
getLocalMembership
in class ReliableGroupChannel
ReliableGroupChannel.getLocalMembership()
public Group getCurrentGroup()
ReliableGroupChannel
getCurrentGroup
in class ReliableGroupChannel
ReliableGroupChannel.getCurrentGroup()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |