biz.hammurapi.jms
Class JmsQueueSliceConsumer

java.lang.Object
  extended by biz.hammurapi.jms.JmsSliceConsumer
      extended by 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

Field Summary
 
Fields inherited from class biz.hammurapi.jms.JmsSliceConsumer
interval, timer
 
Constructor Summary
JmsQueueSliceConsumer(java.util.Timer timer, long interval, javax.jms.QueueConnection connection, javax.jms.Queue queue)
           
 
Method Summary
 void start()
           
 void stop()
           
 
Methods inherited from class biz.hammurapi.jms.JmsSliceConsumer
consumeSlice, getSlicesXml, setOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.