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 Object
implements NetworkAdapter

JGroups based implementation of NetworkAdapter.

Since:
2.0RC1

Field Summary
static 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(String channelId)
          Start a channel.
 void stopAllChannels()
          Stop all running channels.
 void stopChannel(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 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)
Description copied from interface: NetworkAdapter
Send serializable event to the network depending of the implementation.

Specified by:
send in interface NetworkAdapter
Parameters:
remoteEvent - the serializable event to send

startChannel

public void startChannel(String channelId)
                  throws RemoteEventException
Description copied from interface: NetworkAdapter
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

stopChannel

public void stopChannel(String channelId)
                 throws RemoteEventException
Description copied from interface: NetworkAdapter
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

stopAllChannels

public void stopAllChannels()
                     throws RemoteEventException
Description copied from interface: NetworkAdapter
Stop all running channels.

Specified by:
stopAllChannels in interface NetworkAdapter
Throws:
RemoteEventException - error when trying to stop a running channel