|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.fascinator.portal.BrokerMonitor
public class BrokerMonitor
Monitoring class for the AMQ Broker. Periodically sends updated statistics to the house keeper.
| Field Summary | |
|---|---|
static long |
AMQ_TIMEOUT
Default timeout for AMQ stats response = 500 milliseconds |
static long |
DEFAULT_TIMEOUT
Default timeout for callback 'tick' = 10 seconds |
static String |
QUEUE_ID
Queue string |
static String |
STATS_PREFIX
Broker queue prefix for stats |
| Constructor Summary | |
|---|---|
BrokerMonitor()
Constructor required by ServiceLoader |
|
BrokerMonitor(org.apache.activemq.broker.BrokerService brokerService)
Constructor. |
|
| 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 |
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
public static final String STATS_PREFIX
public static final long DEFAULT_TIMEOUT
public static final long AMQ_TIMEOUT
| Constructor Detail |
|---|
public BrokerMonitor()
public BrokerMonitor(org.apache.activemq.broker.BrokerService brokerService)
throws Exception
brokerService - AMQ Broker service we're monitoring
Exception - If unable to start properly| 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 an error occurred
public void start()
throws Exception
start in interface GenericListenerException - if an error occurredpublic String getId()
getId in interface GenericListenerpublic void stop()
stop in interface GenericListenerpublic 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 | |||||||||