|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Monitors the state of multiple tests through the creation, retrieval, and
sending to a server of the TestData for a specific test. Instances
will be in charge of pooling together events from a TestCorrelate
.
This class itself is not a singleton, but each framework implementation should have only one Monitor. Hence, this is called a "pseudo-singleton".
A Monitor may have multiple tests being tested at the same time. However,
each test must be uniquely identifiable through a TestInfo
; if two
tests execute at the same time with the same TestInfo, the monitor
will identify them as the same test. Uniqueness is guaranteed through the
TestInfo instances.
Method Summary | |
void |
addTestData(TestInfo info)
Adds a new TestData instance related to the given TestInfo. |
TestData |
getTestData(TestInfo info)
Retrieves the data associated with the given TestInfo, as was created through addTestData( TestInfo ) . |
void |
sendTestData(TestInfo info)
Sends the TestData associated with info to the inner server, and removes the data from the inner cache. |
Method Detail |
public void addTestData(TestInfo info)
info
- the unique test identifier to create a new TestData
instance for.
java.lang.IllegalStateException
- if info is already
been added without having been sent.
java.lang.IllegalArgumentException
- if info is null.public TestData getTestData(TestInfo info)
addTestData( TestInfo )
. If the info
was never passed to the add method, then an exception is thrown.
info
- the unique test identifier.
java.lang.IllegalStateException
- if info has not been added,
or has been removed through the send call.
java.lang.IllegalArgumentException
- if info is null.public void sendTestData(TestInfo info)
info
- the unique test identifier
java.lang.IllegalStateException
- if info has not been added,
or has been removed through the send call.
java.lang.IllegalArgumentException
- if info is null.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |