|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BrokerLifecycleAware
BrokerLifecycleAware is an awareness interface implemented by test cases that can run control the life-cycle of the brokers on which they run. Its purpose is to expose additional instrumentation of brokers during testing, that enables tests to use an automated failure mechanism to simulate broker failures, and to re-start failed brokers.
Responsibilities | Collaborations |
---|---|
Indicate whether or not a test case is using an in-vm broker. | |
Track which in-vm broker is currently in use. | |
Accept setting of a failure mechanism. | CauseFailure .
|
Method Summary | |
---|---|
int |
getLiveBroker()
Reports the currently live in-vm broker. |
void |
setFailureMechanism(CauseFailure failureMechanism)
Accepts a failure mechanism. |
void |
setInVmBrokers()
|
void |
setLiveBroker(int i)
Sets the currently live in-vm broker. |
boolean |
usingInVmBroker()
Indicates whether or not a test case is using in-vm brokers. |
Method Detail |
---|
void setInVmBrokers()
boolean usingInVmBroker()
void setLiveBroker(int i)
i
- The currently live in-vm broker.int getLiveBroker()
void setFailureMechanism(CauseFailure failureMechanism)
failureMechanism
- The failure mechanism.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |