org.xwiki.observation.remote.internal.jgroups
Class JGroupsNetworkAdapter

java.lang.Object
  extended by org.xwiki.observation.remote.internal.jgroups.JGroupsNetworkAdapter
All Implemented Interfaces:
NetworkAdapter

@Component
@Named(value="jgroups")
@Singleton
public class JGroupsNetworkAdapter
extends java.lang.Object
implements NetworkAdapter

JGroups based implementation of NetworkAdapter.

Since:
2.0RC1
Version:
$Id$

Field Summary
static java.lang.String CONFIGURATION_PATH
          Relative path where to find jgroups channels configurations.
 
Constructor Summary
JGroupsNetworkAdapter()
           
 
Method Summary
 void send(RemoteEventData remoteEvent)
          Send serializable event to the network depending of the implementation.
 void startChannel(java.lang.String channelId)
          Start a channel.
 void stopAllChannels()
          Stop all running channels.
 void stopChannel(java.lang.String channelId)
          Stop a running channel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIGURATION_PATH

public static final java.lang.String CONFIGURATION_PATH
Relative path where to find jgroups channels configurations.

See Also:
Constant Field Values
Constructor Detail

JGroupsNetworkAdapter

public JGroupsNetworkAdapter()
Method Detail

send

public void send(RemoteEventData remoteEvent)
Send serializable event to the network depending of the implementation.

Specified by:
send in interface NetworkAdapter
Parameters:
remoteEvent - the serializable event to send
See Also:
NetworkAdapter.send(org.xwiki.observation.remote.RemoteEventData)

startChannel

public void startChannel(java.lang.String channelId)
                  throws RemoteEventException
Start a channel.

Specified by:
startChannel in interface NetworkAdapter
Parameters:
channelId - the identifier of the channel to start
Throws:
RemoteEventException - error when trying to start a channel
See Also:
NetworkAdapter.startChannel(java.lang.String)

stopChannel

public void stopChannel(java.lang.String channelId)
                 throws RemoteEventException
Stop a running channel.

Specified by:
stopChannel in interface NetworkAdapter
Parameters:
channelId - the identifier of the channel to stop
Throws:
RemoteEventException - error when trying to stop a running channel
See Also:
NetworkAdapter.stopChannel(java.lang.String)

stopAllChannels

public void stopAllChannels()
                     throws RemoteEventException
Stop all running channels.

Specified by:
stopAllChannels in interface NetworkAdapter
Throws:
RemoteEventException - error when trying to stop a running channel
See Also:
NetworkAdapter.stopAllChannels()


Copyright © 2004-2011 XWiki. All Rights Reserved.