Logo Search packages:      
Sourcecode: libjgroups-java version File versions

abstract void org::jgroups::Channel::connect ( String  cluster_name  )  throws ChannelException [pure virtual]

Connects the channel to a group. The client is now able to receive group messages, views and block events (depending on the options set) and to send messages to (all or single) group members. This is a null operation if already connected.

All channels with the same name form a group, that means all messages sent to the group will be received by all channels connected to the same channel name.

Parameters:
cluster_name The name of the chanel to connect to.
Exceptions:
ChannelException The protocol stack cannot be started
ChannelClosedException The channel is closed and therefore cannot be used any longer. A new channel has to be created first.
See also:
Channel::disconnect

Implemented in org::jgroups::JChannel, and org::jgroups::mux::MuxChannel.

Referenced by org::jgroups::blocks::DistributedHashtable::DistributedHashtable(), org::jgroups::blocks::DistributedQueue::DistributedQueue(), org::jgroups::blocks::ReplicatedHashtable::ReplicatedHashtable(), org::jgroups::tests::ConnectTest::testDisconnectConnectSendTwo(), org::jgroups::tests::ConnectTest::testDisconnectConnectTwo(), org::jgroups::tests::Deadlock2Test::testOneChannel(), org::jgroups::tests::Deadlock2Test::testTwoChannels(), org::jgroups::tests::MultiplexerConcurrentTest::testTwoMessagesFromDifferentSendersToDifferentServices(), org::jgroups::tests::MultiplexerConcurrentTest::testTwoMessagesFromDifferentSendersToSameService(), org::jgroups::tests::MultiplexerConcurrentTest::testTwoMessagesFromSameSenderToDifferentServices(), and org::jgroups::tests::MultiplexerConcurrentTest::testTwoMessagesFromSameSenderToSameService().


Generated by  Doxygen 1.6.0   Back to index