|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.backend.impl.jgroups.JGroupsBackendQueueProcessorFactory
org.hibernate.search.backend.impl.jgroups.MasterJGroupsBackendQueueProcessorFactory
public class MasterJGroupsBackendQueueProcessorFactory
Backend factory used in JGroups clustering mode in master node.
Wraps LuceneBackendQueueProcessorFactory with providing extra
functionality to receive Lucene works from slave nodes.
LuceneBackendQueueProcessorFactory,
SlaveJGroupsBackendQueueProcessorFactory| Field Summary |
|---|
| Fields inherited from class org.hibernate.search.backend.impl.jgroups.JGroupsBackendQueueProcessorFactory |
|---|
address, channel, clusterName, CONFIGURATION_FILE, CONFIGURATION_STRING, CONFIGURATION_XML, JG_CLUSTER_NAME, JGROUPS_PREFIX, log, searchFactory |
| Constructor Summary | |
|---|---|
MasterJGroupsBackendQueueProcessorFactory()
|
|
| Method Summary | |
|---|---|
void |
close()
Used to shutdown and eventually release resources. |
org.jgroups.Receiver |
getMasterListener()
|
java.lang.Runnable |
getProcessor(java.util.List<LuceneWork> queue)
Return a runnable implementation responsible for processing the queue to a given backend. |
void |
initialize(java.util.Properties props,
SearchFactoryImplementor searchFactory)
Used at startup, called once as first method. |
| Methods inherited from class org.hibernate.search.backend.impl.jgroups.JGroupsBackendQueueProcessorFactory |
|---|
getAddress, getChannel, getClusterName, setClusterName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MasterJGroupsBackendQueueProcessorFactory()
| Method Detail |
|---|
public void initialize(java.util.Properties props,
SearchFactoryImplementor searchFactory)
BackendQueueProcessorFactory
initialize in interface BackendQueueProcessorFactoryinitialize in class JGroupsBackendQueueProcessorFactoryprops - all configuration propertiessearchFactory - the clientpublic java.lang.Runnable getProcessor(java.util.List<LuceneWork> queue)
BackendQueueProcessorFactory
getProcessor in interface BackendQueueProcessorFactorygetProcessor in class JGroupsBackendQueueProcessorFactoryqueue - The work queue to process.
Runnable which processes queue when started.public org.jgroups.Receiver getMasterListener()
public void close()
BackendQueueProcessorFactory
close in interface BackendQueueProcessorFactoryclose in class JGroupsBackendQueueProcessorFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||