biz.hammurapi.jms
Class JmsWorker

java.lang.Object
  extended by biz.hammurapi.config.ComponentBase
      extended by biz.hammurapi.jms.JmsWorker
All Implemented Interfaces:
biz.hammurapi.config.Component, biz.hammurapi.config.Context, biz.hammurapi.config.DomConfigurable, biz.hammurapi.metrics.MeasurementCollector, biz.hammurapi.metrics.MeasurementConsumer, biz.hammurapi.util.Worker

public class JmsWorker
extends biz.hammurapi.config.ComponentBase
implements biz.hammurapi.util.Worker, biz.hammurapi.config.DomConfigurable

Posts serializable and dom-serializable jobs to JMS queue.

Author:
Pavel Vlasov

Nested Class Summary
static interface JmsWorker.Selectable
          Jobs can implement this interface to set JMS message headers
 
Field Summary
 
Fields inherited from class biz.hammurapi.config.ComponentBase
owner
 
Constructor Summary
JmsWorker()
           
 
Method Summary
 void configure(org.w3c.dom.Node configNode, biz.hammurapi.config.Context context)
           
 boolean post(java.lang.Runnable job)
           
 void start()
           
 void stop()
           
 
Methods inherited from class biz.hammurapi.config.ComponentBase
addMeasurement, get, getChild, getMeasurementConsumer, getOwner, getOwner, setMeasurementConsumer, setOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsWorker

public JmsWorker()
Method Detail

post

public boolean post(java.lang.Runnable job)
Specified by:
post in interface biz.hammurapi.util.Worker

start

public void start()
           throws biz.hammurapi.config.ConfigurationException
Specified by:
start in interface biz.hammurapi.config.Component
Throws:
biz.hammurapi.config.ConfigurationException

stop

public void stop()
          throws biz.hammurapi.config.ConfigurationException
Specified by:
stop in interface biz.hammurapi.config.Component
Throws:
biz.hammurapi.config.ConfigurationException

configure

public void configure(org.w3c.dom.Node configNode,
                      biz.hammurapi.config.Context context)
               throws biz.hammurapi.config.ConfigurationException
Specified by:
configure in interface biz.hammurapi.config.DomConfigurable
Throws:
biz.hammurapi.config.ConfigurationException


Copyright © 2006 Hammurapi Group. All Rights Reserved.