|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jgroups.ReceiverAdapter
org.nuiton.wikitty.JGroupsNotifierTransporter
public class JGroupsNotifierTransporter
JGroups notifier.
| Field Summary | |
|---|---|
protected org.jgroups.JChannel |
channel
JGroup channel. |
static java.lang.String |
WIKITTY_EVENT_JGROUPCHANNELNAME_OPTION
Utilisation du canal de communication basé sur jgroups avec comme identifiant d'application le nom de canal en option. |
protected WikittyServiceNotifier |
ws
Notifier service reference reference. |
| Constructor Summary | |
|---|---|
JGroupsNotifierTransporter(WikittyServiceNotifier ws,
java.util.Properties props)
|
|
| Method Summary | |
|---|---|
protected void |
initChannel(java.lang.String channelName)
Init jgroup channel. |
void |
receive(org.jgroups.Message msg)
|
void |
sendMessage(WikittyServiceEvent event)
Send a jgroup message to all other channel member. |
| Methods inherited from class org.jgroups.ReceiverAdapter |
|---|
block, getState, setState, suspect, viewAccepted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String WIKITTY_EVENT_JGROUPCHANNELNAME_OPTION
#WIKITTY_EVENT_PROPAGATE_OPTION est a true et que cette
options est vide, une exception est levée.
protected WikittyServiceNotifier ws
protected org.jgroups.JChannel channel
| Constructor Detail |
|---|
public JGroupsNotifierTransporter(WikittyServiceNotifier ws,
java.util.Properties props)
| Method Detail |
|---|
protected void initChannel(java.lang.String channelName)
channelName - channel name
public void sendMessage(WikittyServiceEvent event)
throws java.lang.Exception
sendMessage in interface WikittyServiceNotifier.RemoteNotifierTransporterevent - message to send
java.lang.Exceptionpublic void receive(org.jgroups.Message msg)
receive in interface org.jgroups.MessageListenerreceive in class org.jgroups.ReceiverAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||