|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.test.framework.sequencers.BaseCircuitFactory
public abstract class BaseCircuitFactory
BaseCircuitFactory provides some functionality common to all CircuitFactory
s, such as the details of
all TestClient
s that make up the end-points of
the circuits that the factory creates, and an active ConversationFactory
that can be used to generate
control conversations with those circuit end-points.
Responsibilities | Collaborations |
---|---|
Hold the details of the sending and receiving end-points to create circuits from. | |
Provide a conversation factory to create control conversations with the end-points. |
Field Summary | |
---|---|
protected ConversationFactory |
conversationFactory
Holds the conversation factory over which to coordinate the test. |
protected List<TestClientDetails> |
receivers
Holds the contact details for the receving test client. |
protected TestClientDetails |
sender
Holds the contact details for the sending test client. |
Constructor Summary | |
---|---|
BaseCircuitFactory()
|
Method Summary | |
---|---|
Circuit |
createCircuit(Properties testProperties)
Creates a test circuit for the test, configered by the test parameters specified. |
ConversationFactory |
getConversationFactory()
Provides the conversation factory for providing the distributed test sequencing conversations over the test connection. |
List<TestClientDetails> |
getReceivers()
Supplies the receiving test client. |
TestClientDetails |
getSender()
Supplies the sending test client. |
void |
setConversationFactory(ConversationFactory conversationFactory)
Accepts the conversation factory over which to hold the test coordinating conversation. |
void |
setReceiver(TestClientDetails receiver)
Sets the receiving test client to coordinate the test with. |
void |
setSender(TestClientDetails sender)
Sets the sender test client to coordinate the test with. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.qpid.test.framework.sequencers.CircuitFactory |
---|
createCircuit, sequenceTest |
Field Detail |
---|
protected TestClientDetails sender
protected List<TestClientDetails> receivers
protected ConversationFactory conversationFactory
Constructor Detail |
---|
public BaseCircuitFactory()
Method Detail |
---|
public Circuit createCircuit(Properties testProperties)
testProperties
- The test parameters.
public void setSender(TestClientDetails sender)
setSender
in interface CircuitFactory
sender
- The contact details of the sending client in the test.public void setReceiver(TestClientDetails receiver)
setReceiver
in interface CircuitFactory
receiver
- The contact details of the sending client in the test.public TestClientDetails getSender()
getSender
in interface CircuitFactory
public List<TestClientDetails> getReceivers()
getReceivers
in interface CircuitFactory
public void setConversationFactory(ConversationFactory conversationFactory)
setConversationFactory
in interface CircuitFactory
conversationFactory
- The conversation factory to coordinate the test over.public ConversationFactory getConversationFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |