biz.hammurapi.jms
Class JmsTopicSliceConsumer
java.lang.Object
biz.hammurapi.jms.JmsSliceConsumer
biz.hammurapi.jms.JmsTopicSliceConsumer
- All Implemented Interfaces:
- biz.hammurapi.config.Component, biz.hammurapi.metrics.SliceConsumer
public class JmsTopicSliceConsumer
- extends JmsSliceConsumer
Sends collected metrics to JMS topic.
- Author:
- Pavel Vlasov
|
Constructor Summary |
JmsTopicSliceConsumer(java.util.Timer timer,
long interval,
javax.jms.TopicConnection connection,
javax.jms.Topic topic)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JmsTopicSliceConsumer
public JmsTopicSliceConsumer(java.util.Timer timer,
long interval,
javax.jms.TopicConnection connection,
javax.jms.Topic topic)
- Parameters:
timer - Shared timer to schedule send. If null then internal timer is used.interval - Send interval.connection - JMS connection.topic - JMS topic.
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.