|
|||||||||||
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.JGroupsReliableChannel
This class defines a JGroupsReliableChannel which is a ReliableGroupChannel wrapper on top of a JGroups JChannel.
Field Summary |
Fields inherited from class org.objectweb.tribe.channel.ReliableGroupChannel |
channelPool, currentGroup, incomingBuffer, me |
Constructor Summary | |
JGroupsReliableChannel(java.net.URL jgroupsConfigFile)
Creates a new JGroupsReliableChannel object |
Method Summary | |
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 without closing the channel. |
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.ReliableGroupChannel |
close, getCurrentGroup, getLocalMembership, send, send, setMembership |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JGroupsReliableChannel(java.net.URL jgroupsConfigFile) throws ChannelException
JGroupsReliableChannel
object
Method 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
ReliableGroupChannel
quit
in class ReliableGroupChannel
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
ReliableGroupChannel
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 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()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |