biz.hammurapi.jms
Class JmsQueueSliceConsumer
java.lang.Object
biz.hammurapi.jms.JmsSliceConsumer
biz.hammurapi.jms.JmsQueueSliceConsumer
- All Implemented Interfaces:
- biz.hammurapi.config.Component, biz.hammurapi.metrics.SliceConsumer
public class JmsQueueSliceConsumer
- extends JmsSliceConsumer
Sends collected metrics to JMS queue.
- Author:
- Pavel Vlasov
|
Constructor Summary |
JmsQueueSliceConsumer(java.util.Timer timer,
long interval,
javax.jms.QueueConnection connection,
javax.jms.Queue queue)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JmsQueueSliceConsumer
public JmsQueueSliceConsumer(java.util.Timer timer,
long interval,
javax.jms.QueueConnection connection,
javax.jms.Queue queue)
- Parameters:
timer - Shared timer to schedule send. If null then internal timer is used.interval - Send interval.connection - JMS connection.queue - JMS queue.
start
public void start()
throws biz.hammurapi.config.ConfigurationException
- Specified by:
start in interface biz.hammurapi.config.Component- Overrides:
start in class JmsSliceConsumer
- Throws:
biz.hammurapi.config.ConfigurationException
stop
public void stop()
throws biz.hammurapi.config.ConfigurationException
- Specified by:
stop in interface biz.hammurapi.config.Component- Overrides:
stop in class JmsSliceConsumer
- Throws:
biz.hammurapi.config.ConfigurationException
Copyright © 2006 Hammurapi Group. All Rights Reserved.