org.hibernate.search.backend.impl.jms
Class JMSBackendQueueProcessorFactory

java.lang.Object
  extended by org.hibernate.search.backend.impl.jms.JMSBackendQueueProcessorFactory
All Implemented Interfaces:
BackendQueueProcessorFactory

public class JMSBackendQueueProcessorFactory
extends java.lang.Object
implements BackendQueueProcessorFactory

Author:
Emmanuel Bernard

Field Summary
static java.lang.String JMS_CONNECTION_FACTORY
           
static java.lang.String JMS_QUEUE
           
 
Constructor Summary
JMSBackendQueueProcessorFactory()
           
 
Method Summary
 void close()
          Used to shutdown and eventually release resources.
 javax.jms.QueueConnectionFactory getJMSFactory()
           
 javax.jms.Queue getJmsQueue()
           
 java.lang.String getJmsQueueName()
           
 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 searchFactoryImplementor)
          Used at startup, called once as first method.
 void prepareJMSTools()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JMS_CONNECTION_FACTORY

public static final java.lang.String JMS_CONNECTION_FACTORY
See Also:
Constant Field Values

JMS_QUEUE

public static final java.lang.String JMS_QUEUE
See Also:
Constant Field Values
Constructor Detail

JMSBackendQueueProcessorFactory

public JMSBackendQueueProcessorFactory()
Method Detail

initialize

public void initialize(java.util.Properties props,
                       SearchFactoryImplementor searchFactoryImplementor)
Description copied from interface: BackendQueueProcessorFactory
Used at startup, called once as first method.

Specified by:
initialize in interface BackendQueueProcessorFactory
Parameters:
props - all configuration properties
searchFactoryImplementor - the client

getProcessor

public java.lang.Runnable getProcessor(java.util.List<LuceneWork> queue)
Description copied from interface: BackendQueueProcessorFactory
Return a runnable implementation responsible for processing the queue to a given backend.

Specified by:
getProcessor in interface BackendQueueProcessorFactory
Parameters:
queue - The work queue to process.
Returns:
Runnable which processes queue when started.

getJMSFactory

public javax.jms.QueueConnectionFactory getJMSFactory()

getJmsQueue

public javax.jms.Queue getJmsQueue()

getJmsQueueName

public java.lang.String getJmsQueueName()

prepareJMSTools

public void prepareJMSTools()

close

public void close()
Description copied from interface: BackendQueueProcessorFactory
Used to shutdown and eventually release resources. No other method should be used after this one.

Specified by:
close in interface BackendQueueProcessorFactory


Copyright © 2006-2010 Hibernate. All Rights Reserved.