public class BrokerMonitor
extends java.lang.Object
implements com.googlecode.fascinator.common.messaging.GenericListener
| Modifier and Type | Field and Description |
|---|---|
static long |
AMQ_TIMEOUT
Default timeout for AMQ stats response = 500 milliseconds
|
static long |
DEFAULT_TIMEOUT
Default timeout for callback 'tick' = 10 seconds
|
static java.lang.String |
QUEUE_ID
Queue string
|
static java.lang.String |
STATS_PREFIX
Broker queue prefix for stats
|
| Constructor and Description |
|---|
BrokerMonitor()
Constructor required by ServiceLoader
|
BrokerMonitor(org.apache.activemq.broker.BrokerService brokerService)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId()
Return the ID string for this listener.
|
void |
init(com.googlecode.fascinator.common.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
|
void |
stop()
Stop the Render Queue Consumer.
|
public static final java.lang.String QUEUE_ID
public static final java.lang.String STATS_PREFIX
public static final long DEFAULT_TIMEOUT
public static final long AMQ_TIMEOUT
public BrokerMonitor()
public BrokerMonitor(org.apache.activemq.broker.BrokerService brokerService)
throws java.lang.Exception
brokerService - AMQ Broker service we're monitoringjava.lang.Exception - If unable to start properlypublic void run()
run in interface java.lang.Runnablepublic void init(com.googlecode.fascinator.common.JsonSimpleConfig config)
throws java.lang.Exception
init in interface com.googlecode.fascinator.common.messaging.GenericListenerconfig - Configuration to usejava.lang.Exception - if an error occurredpublic void start()
throws java.lang.Exception
start in interface com.googlecode.fascinator.common.messaging.GenericListenerjava.lang.Exception - if an error occurredpublic java.lang.String getId()
getId in interface com.googlecode.fascinator.common.messaging.GenericListenerpublic void stop()
stop in interface com.googlecode.fascinator.common.messaging.GenericListenerpublic void onMessage(javax.jms.Message message)
onMessage in interface javax.jms.MessageListenermessage - The incoming messagepublic void setPriority(int newPriority)
setPriority in interface com.googlecode.fascinator.common.messaging.GenericListenernewPriority - The priority level to set the thread atCopyright © 2009-2019. All Rights Reserved.