org.apache.activemq.tool
Class ToolSupport

java.lang.Object
  extended by org.apache.activemq.tool.ToolSupport
Direct Known Subclasses:
ConsumerTool, ProducerTool

public class ToolSupport
extends java.lang.Object

Abstract base class useful for implementation inheritence

Version:
$Revision$

Field Summary
protected  int ackMode
           
protected  java.lang.String clientID
           
protected  java.lang.String consumerName
           
protected  javax.jms.Destination destination
           
protected  boolean durable
           
protected  java.lang.String pwd
           
protected  java.lang.String subject
           
protected  boolean topic
           
protected  boolean transacted
           
protected  java.lang.String url
           
protected  java.lang.String user
           
 
Constructor Summary
ToolSupport()
           
 
Method Summary
protected  void close(javax.jms.Connection connection, javax.jms.Session session)
           
protected  javax.jms.Connection createConnection()
           
protected  javax.jms.Session createSession(javax.jms.Connection connection)
           
protected  void dumpStats(javax.jms.Connection connection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

destination

protected javax.jms.Destination destination

subject

protected java.lang.String subject

topic

protected boolean topic

user

protected java.lang.String user

pwd

protected java.lang.String pwd

url

protected java.lang.String url

transacted

protected boolean transacted

durable

protected boolean durable

clientID

protected java.lang.String clientID

ackMode

protected int ackMode

consumerName

protected java.lang.String consumerName
Constructor Detail

ToolSupport

public ToolSupport()
Method Detail

createSession

protected javax.jms.Session createSession(javax.jms.Connection connection)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

createConnection

protected javax.jms.Connection createConnection()
                                         throws javax.jms.JMSException,
                                                java.lang.Exception
Throws:
javax.jms.JMSException
java.lang.Exception

close

protected void close(javax.jms.Connection connection,
                     javax.jms.Session session)
              throws javax.jms.JMSException
Throws:
javax.jms.JMSException

dumpStats

protected void dumpStats(javax.jms.Connection connection)


Copyright © 2010 Apache Software Foundation. All Rights Reserved.