|
||||||||||
| 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
public abstract class JGroupsBackendQueueProcessorFactory
Common base class for Master and Slave BackendQueueProcessorFactories
| Field Summary | |
|---|---|
protected org.jgroups.Address |
address
|
protected org.jgroups.Channel |
channel
|
protected java.lang.String |
clusterName
|
static java.lang.String |
CONFIGURATION_FILE
|
static java.lang.String |
CONFIGURATION_STRING
|
static java.lang.String |
CONFIGURATION_XML
|
static java.lang.String |
JG_CLUSTER_NAME
|
static java.lang.String |
JGROUPS_PREFIX
|
protected static org.slf4j.Logger |
log
|
protected SearchFactoryImplementor |
searchFactory
|
| Constructor Summary | |
|---|---|
JGroupsBackendQueueProcessorFactory()
|
|
| Method Summary | |
|---|---|
void |
close()
Used to shutdown and eventually release resources. |
org.jgroups.Address |
getAddress()
Cluster's node address |
org.jgroups.Channel |
getChannel()
|
java.lang.String |
getClusterName()
|
abstract 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. |
void |
setClusterName(java.lang.String clusterName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.slf4j.Logger log
public static final java.lang.String JGROUPS_PREFIX
public static final java.lang.String CONFIGURATION_STRING
public static final java.lang.String CONFIGURATION_XML
public static final java.lang.String CONFIGURATION_FILE
public static final java.lang.String JG_CLUSTER_NAME
protected java.lang.String clusterName
protected SearchFactoryImplementor searchFactory
protected org.jgroups.Channel channel
protected org.jgroups.Address address
| Constructor Detail |
|---|
public JGroupsBackendQueueProcessorFactory()
| Method Detail |
|---|
public void initialize(java.util.Properties props,
SearchFactoryImplementor searchFactory)
BackendQueueProcessorFactory
initialize in interface BackendQueueProcessorFactoryprops - all configuration propertiessearchFactory - the clientpublic abstract java.lang.Runnable getProcessor(java.util.List<LuceneWork> queue)
BackendQueueProcessorFactory
getProcessor in interface BackendQueueProcessorFactoryqueue - The work queue to process.
Runnable which processes queue when started.public void close()
BackendQueueProcessorFactory
close in interface BackendQueueProcessorFactorypublic org.jgroups.Channel getChannel()
public void setClusterName(java.lang.String clusterName)
public java.lang.String getClusterName()
public org.jgroups.Address getAddress()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||