org.hibernate.search.backend.impl.jgroups
Class JGroupsBackendQueueProcessor
java.lang.Object
org.hibernate.search.backend.impl.jgroups.JGroupsBackendQueueProcessor
- All Implemented Interfaces:
- BackendQueueProcessor
- Direct Known Subclasses:
- MasterJGroupsBackendQueueProcessor, SlaveJGroupsBackendQueueProcessor
public abstract class JGroupsBackendQueueProcessor
- extends Object
- implements BackendQueueProcessor
Common base class for Master and Slave BackendQueueProcessorFactories
- Author:
- Lukasz Moren
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JGROUPS_PREFIX
public static final String JGROUPS_PREFIX
- See Also:
- Constant Field Values
CONFIGURATION_STRING
public static final String CONFIGURATION_STRING
- See Also:
- Constant Field Values
CONFIGURATION_XML
public static final String CONFIGURATION_XML
- See Also:
- Constant Field Values
CONFIGURATION_FILE
public static final String CONFIGURATION_FILE
- See Also:
- Constant Field Values
JG_CLUSTER_NAME
public static final String JG_CLUSTER_NAME
- See Also:
- Constant Field Values
clusterName
protected String clusterName
channel
protected org.jgroups.Channel channel
address
protected org.jgroups.Address address
indexName
protected String indexName
indexManager
protected DirectoryBasedIndexManager indexManager
JGroupsBackendQueueProcessor
public JGroupsBackendQueueProcessor()
initialize
public void initialize(Properties props,
WorkerBuildContext context,
DirectoryBasedIndexManager indexManager)
- Description copied from interface:
BackendQueueProcessor
- Used at startup, called once as first method.
- Specified by:
initialize in interface BackendQueueProcessor
- Parameters:
props - all configuration propertiescontext - context giving access to required meta dataindexManager - the index it is related to.
close
public void close()
- Description copied from interface:
BackendQueueProcessor
- Used to shutdown and eventually release resources.
No other method should be used after this one.
- Specified by:
close in interface BackendQueueProcessor
getChannel
public org.jgroups.Channel getChannel()
setClusterName
public void setClusterName(String clusterName)
getClusterName
public String getClusterName()
getAddress
public org.jgroups.Address getAddress()
- Cluster's node address
- Returns:
- Address
Copyright © 2006-2012 Hibernate. All Rights Reserved.