org.hibernate.search.backend.impl.jms
public abstract class JmsBackendQueueProcessor extends Object implements BackendQueueProcessor
| Modifier and Type | Field and Description |
|---|---|
static String |
JMS_CONNECTION_FACTORY |
static String |
JMS_CONNECTION_LOGIN |
static String |
JMS_CONNECTION_PASSWORD |
static String |
JMS_QUEUE |
protected static String |
JNDI_PREFIX |
| Constructor and Description |
|---|
JmsBackendQueueProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyStreamWork(LuceneWork singleOperation,
IndexingMonitor monitor)
Applies a single operation on the index, and different operations can be applied in parallel,
even in parallel to a workList instance being processed by
BackendQueueProcessor.applyWork(List, IndexingMonitor) |
void |
applyWork(List<LuceneWork> workList,
IndexingMonitor monitor)
Applies a list of operations to the index.
|
void |
close()
Used to shutdown and eventually release resources.
|
Lock |
getExclusiveWriteLock() |
String |
getIndexName() |
javax.jms.QueueConnection |
getJMSConnection() |
javax.jms.Queue |
getJmsQueue() |
String |
getJmsQueueName() |
SearchFactoryImplementor |
getSearchFactory() |
void |
indexMappingChanged()
Used to notify the backend that the number or type of indexed entities being indexed
in this backend changed.
|
void |
initialize(Properties props,
WorkerBuildContext context,
DirectoryBasedIndexManager indexManager)
Used at startup, called once as first method.
|
protected abstract javax.jms.QueueConnection |
initializeJMSConnection(javax.jms.QueueConnectionFactory factory,
Properties props)
Initialises the JMS QueueConnection to be used for sending Lucene work operations to the master node.
|
protected abstract javax.jms.Queue |
initializeJMSQueue(javax.jms.QueueConnectionFactory factory,
Properties props)
Initialises the JMS queue to be used for sending Lucene work operations to the master node.
|
protected abstract javax.jms.QueueConnectionFactory |
initializeJMSQueueConnectionFactory(Properties props)
Initialises the JMS QueueConnectionFactory to be used for sending Lucene work operations to the master node.
|
protected static final String JNDI_PREFIX
public static final String JMS_CONNECTION_FACTORY
public static final String JMS_QUEUE
public static final String JMS_CONNECTION_LOGIN
public static final String JMS_CONNECTION_PASSWORD
public void initialize(Properties props, WorkerBuildContext context, DirectoryBasedIndexManager indexManager)
BackendQueueProcessorinitialize in interface BackendQueueProcessorprops - all configuration propertiescontext - context giving access to required meta dataindexManager - the index it is related to.public javax.jms.Queue getJmsQueue()
public String getJmsQueueName()
public String getIndexName()
public SearchFactoryImplementor getSearchFactory()
public void applyWork(List<LuceneWork> workList, IndexingMonitor monitor)
BackendQueueProcessorapplyWork in interface BackendQueueProcessorworkList - list of Lucene work instance which need to be applied to the indexmonitor - a IndexingMonitor object.public void applyStreamWork(LuceneWork singleOperation, IndexingMonitor monitor)
BackendQueueProcessorBackendQueueProcessor.applyWork(List, IndexingMonitor)applyStreamWork in interface BackendQueueProcessorsingleOperation - single Lucene work instance to be applied to the indexmonitor - a IndexingMonitor object.public Lock getExclusiveWriteLock()
getExclusiveWriteLock in interface BackendQueueProcessorpublic void indexMappingChanged()
BackendQueueProcessorindexMappingChanged in interface BackendQueueProcessorpublic javax.jms.QueueConnection getJMSConnection()
public void close()
BackendQueueProcessorclose in interface BackendQueueProcessorprotected abstract javax.jms.QueueConnectionFactory initializeJMSQueueConnectionFactory(Properties props)
props - a Properties object.QueueConnectionFactoryprotected abstract javax.jms.Queue initializeJMSQueue(javax.jms.QueueConnectionFactory factory,
Properties props)
initializeJMSQueueConnectionFactory(Properties)factory - a QueueConnectionFactory object.props - a Properties object.Queueprotected abstract javax.jms.QueueConnection initializeJMSConnection(javax.jms.QueueConnectionFactory factory,
Properties props)
#initializeJMSQueue(Properties).factory - a QueueConnectionFactory object.props - a Properties object.QueueConnectionCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved