|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xwiki.observation.remote.internal.jgroups.JGroupsNetworkAdapter
@Component @Named(value="jgroups") @Singleton public class JGroupsNetworkAdapter
JGroups based implementation of NetworkAdapter
.
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 |
---|
public static final String CONFIGURATION_PATH
Constructor Detail |
---|
public JGroupsNetworkAdapter()
Method Detail |
---|
public void send(RemoteEventData remoteEvent)
NetworkAdapter
send
in interface NetworkAdapter
remoteEvent
- the serializable event to sendpublic void startChannel(String channelId) throws RemoteEventException
NetworkAdapter
startChannel
in interface NetworkAdapter
channelId
- the identifier of the channel to start
RemoteEventException
- error when trying to start a channelpublic void stopChannel(String channelId) throws RemoteEventException
NetworkAdapter
stopChannel
in interface NetworkAdapter
channelId
- the identifier of the channel to stop
RemoteEventException
- error when trying to stop a running channelpublic void stopAllChannels() throws RemoteEventException
NetworkAdapter
stopAllChannels
in interface NetworkAdapter
RemoteEventException
- error when trying to stop a running channel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |