|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jgroups.ReceiverAdapter
org.nuiton.wikitty.JGroupsNotifier
public class JGroupsNotifier
JGroups notifier.
| Field Summary | |
|---|---|
protected org.jgroups.JChannel |
channel
JGroup channel. |
protected boolean |
propagateCache
Indique si les objects sont propages (true) vers les autres caches ou simplement supprimes des autres caches (false). |
protected WikittyServiceNotifier |
ws
Notifier service reference reference. |
| Constructor Summary | |
|---|---|
JGroupsNotifier(WikittyServiceNotifier ws,
String channelName,
boolean propagateCache)
|
|
| Method Summary | |
|---|---|
void |
clearExtension(WikittyServiceEvent event)
|
void |
clearWikitty(WikittyServiceEvent event)
|
protected void |
initChannel(String channelName)
Init jgroup channel. |
void |
putExtension(WikittyServiceEvent event)
toto[1.0] |
void |
putWikitty(WikittyServiceEvent event)
|
void |
receive(org.jgroups.Message msg)
|
void |
removeExtension(WikittyServiceEvent event)
|
void |
removeWikitty(WikittyServiceEvent event)
|
protected void |
sendJGroupMessage(org.nuiton.wikitty.JGroupsNotifier.WikittyJGroupMessage wikittyMessage)
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 |
|---|
protected WikittyServiceNotifier ws
protected boolean propagateCache
WikittyServiceCached#WIKITTY_PROPAGATE_CACHE_OPTIONprotected org.jgroups.JChannel channel
| Constructor Detail |
|---|
public JGroupsNotifier(WikittyServiceNotifier ws,
String channelName,
boolean propagateCache)
| Method Detail |
|---|
protected void initChannel(String channelName)
channelName - channel nameprotected void sendJGroupMessage(org.nuiton.wikitty.JGroupsNotifier.WikittyJGroupMessage wikittyMessage)
wikittyMessage - message to sendpublic void receive(org.jgroups.Message msg)
receive in interface org.jgroups.MessageListenerreceive in class org.jgroups.ReceiverAdapterpublic void putWikitty(WikittyServiceEvent event)
putWikitty in interface WikittyServiceListenerpublic void removeWikitty(WikittyServiceEvent event)
removeWikitty in interface WikittyServiceListenerpublic void clearWikitty(WikittyServiceEvent event)
clearWikitty in interface WikittyServiceListenerpublic void putExtension(WikittyServiceEvent event)
WikittyServiceListener
putExtension in interface WikittyServiceListenerpublic void removeExtension(WikittyServiceEvent event)
removeExtension in interface WikittyServiceListenerpublic void clearExtension(WikittyServiceEvent event)
clearExtension in interface WikittyServiceListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||