org.apache.qpid.testkit
Class Client

java.lang.Object
  extended by org.apache.qpid.testkit.Client
All Implemented Interfaces:
ExceptionListener
Direct Known Subclasses:
Receiver, Sender

public abstract class Client
extends Object
implements ExceptionListener


Constructor Summary
Client(Connection con)
           
 
Method Summary
 void close()
           
protected  int getAck_mode()
           
protected  String getContentType()
           
 DateFormat getDf()
           
protected  long getReportFrequency()
           
protected  Session getSsn()
           
protected  long getStartTime()
           
protected  int getTxSize()
           
 void handleError(String msg, Exception e)
           
protected  boolean isDurable()
           
protected  boolean isTransacted()
           
 void onException(JMSException e)
           
 void setErrorHandler(ErrorHandler h)
           
protected  void setSsn(Session ssn)
           
protected  void setStartTime(long startTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Client

public Client(Connection con)
       throws Exception
Throws:
Exception
Method Detail

close

public void close()

onException

public void onException(JMSException e)
Specified by:
onException in interface ExceptionListener

setErrorHandler

public void setErrorHandler(ErrorHandler h)

handleError

public void handleError(String msg,
                        Exception e)

getSsn

protected Session getSsn()

setSsn

protected void setSsn(Session ssn)

isDurable

protected boolean isDurable()

isTransacted

protected boolean isTransacted()

getTxSize

protected int getTxSize()

getAck_mode

protected int getAck_mode()

getContentType

protected String getContentType()

getReportFrequency

protected long getReportFrequency()

getStartTime

protected long getStartTime()

setStartTime

protected void setStartTime(long startTime)

getDf

public DateFormat getDf()


Licensed to the Apache Software Foundation