|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.test.framework.CircuitEndBase
public class CircuitEndBase
A CircuitEndBase is a pair consisting of one message producer and one message consumer, that represents one end of a test circuit. It is a standard unit of connectivity allowing a full-duplex conversation to be held, provided both the consumer and producer are instantiated and configured.
Responsibilities |
---|
Provide a message producer for sending messages. |
Provide a message consumer for receiving messages. |
Field Summary | |
---|---|
(package private) MessageConsumer |
consumer
Holds the single message consumer. |
(package private) ExceptionMonitor |
exceptionMonitor
Holds the exception monitor for the circuit end. |
(package private) MessageMonitor |
messageMonitor
Holds the message monitor for the circuit end. |
(package private) MessageProducer |
producer
Holds the single message producer. |
(package private) Session |
session
Holds the controlSession for the circuit end. |
Constructor Summary | |
---|---|
CircuitEndBase(MessageProducer producer,
MessageConsumer consumer,
Session session,
MessageMonitor messageMonitor,
ExceptionMonitor exceptionMonitor)
Creates a circuit end point on the specified producer, consumer and controlSession. |
Method Summary | |
---|---|
void |
close()
Closes the message producers and consumers and the sessions, associated with this circuit end point. |
MessageConsumer |
getConsumer()
Gets the message consumer at this circuit end point. |
ExceptionMonitor |
getExceptionMonitor()
Returns the exception monitor for reporting on exceptions received on this circuit end. |
MessageMonitor |
getMessageMonitor()
Returns the message monitor for reporting on received messages on this circuit end. |
MessageProducer |
getProducer()
Gets the message producer at this circuit end point. |
Session |
getSession()
Gets the JMS Session associated with this circuit end point. |
void |
send(Message message)
Send the specified message over the producer at this end point. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
MessageProducer producer
MessageConsumer consumer
Session session
MessageMonitor messageMonitor
ExceptionMonitor exceptionMonitor
Constructor Detail |
---|
public CircuitEndBase(MessageProducer producer, MessageConsumer consumer, Session session, MessageMonitor messageMonitor, ExceptionMonitor exceptionMonitor)
producer
- The message producer for the circuit end point.consumer
- The message consumer for the circuit end point.session
- The controlSession for the circuit end point.messageMonitor
- The monitor to notify of all messages received by the circuit end.exceptionMonitor
- The monitor to notify of all exceptions received by the circuit end.Method Detail |
---|
public MessageProducer getProducer()
getProducer
in interface CircuitEnd
public MessageConsumer getConsumer()
getConsumer
in interface CircuitEnd
public void send(Message message) throws JMSException
send
in interface CircuitEnd
message
- The message to send.
JMSException
- Any JMS exception occuring during the send is allowed to fall through.public Session getSession()
getSession
in interface CircuitEnd
public void close() throws JMSException
close
in interface CircuitEnd
JMSException
- Any JMSExceptions occurring during the close are allowed to fall through.public MessageMonitor getMessageMonitor()
getMessageMonitor
in interface CircuitEnd
public ExceptionMonitor getExceptionMonitor()
getExceptionMonitor
in interface CircuitEnd
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |