|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.backend.impl.jgroups.MasterNodeSelector
public class MasterNodeSelector
This NodeSelectorStrategy is a static configuration for the local
node to always process index operations locally, and accept index operations
from remote nodes configured as slaves.
JGroups does not provide a persistent queue, if that level of reliability is needed, use the JMS backend.
This implementation matches the jgroupsMaster configuration property.
| Constructor Summary | |
|---|---|
MasterNodeSelector()
|
|
| Method Summary | |
|---|---|
org.jgroups.Message |
createMessage(byte[] data)
Different message options can be applied using different constructors, hence we delegate Message construction to the strategy. |
boolean |
isIndexOwnerLocal()
Specifies if the current (local) node should apply changes to the index. |
void |
setLocalAddress(org.jgroups.Address address)
The implementation might need to know it's own address, so this is provided at channel initial connection. |
void |
viewAccepted(org.jgroups.View view)
Invoked by JGroups on view change. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MasterNodeSelector()
| Method Detail |
|---|
public boolean isIndexOwnerLocal()
NodeSelectorStrategy
isIndexOwnerLocal in interface NodeSelectorStrategypublic void setLocalAddress(org.jgroups.Address address)
NodeSelectorStrategy
setLocalAddress in interface NodeSelectorStrategyaddress - the local addresspublic void viewAccepted(org.jgroups.View view)
NodeSelectorStrategyMembershipListener.viewAccepted(View)
viewAccepted in interface NodeSelectorStrategyview - contains information on the current members of the cluster grouppublic org.jgroups.Message createMessage(byte[] data)
NodeSelectorStrategy
createMessage in interface NodeSelectorStrategydata - the information to be sent to the master.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||