|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.fascinator.indexer.SolrWrapperQueueConsumer
public class SolrWrapperQueueConsumer
Consumer for documents to index in Solr. Aggregating the final write in this location allows for a common buffer to prevent timing issues from threaded buffers, as well as allowing us to run thread safe embedded solr.
| Field Summary | |
|---|---|
static String |
QUEUE_ID
Queue name |
| Constructor Summary | |
|---|---|
SolrWrapperQueueConsumer()
Constructor required by ServiceLoader. |
|
| Method Summary | |
|---|---|
String |
getId()
Return the ID string for this listener |
void |
init(JsonSimpleConfig config)
Initialization method |
void |
onMessage(javax.jms.Message message)
Callback function for incoming messages. |
void |
run()
Start thread running |
void |
setPriority(int newPriority)
Sets the priority level for the thread. |
void |
start()
Start the queue based on the name identifier |
void |
stop()
Stop the Render Queue Consumer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String QUEUE_ID
| Constructor Detail |
|---|
public SolrWrapperQueueConsumer()
| Method Detail |
|---|
public void run()
run in interface Runnable
public void init(JsonSimpleConfig config)
throws Exception
init in interface GenericListenerconfig - Configuration to use
Exception - if any errors occurpublic String getId()
getId in interface GenericListener
public void start()
throws Exception
start in interface GenericListenerjavax.jms.JMSException - if an error occurred starting the JMS connections
Exception
public void stop()
throws Exception
stop in interface GenericListenerExceptionpublic void onMessage(javax.jms.Message message)
onMessage in interface javax.jms.MessageListenermessage - The incoming messagepublic void setPriority(int newPriority)
setPriority in interface GenericListenernewPriority - The priority level to set the thread at
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||