|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.groboutils.autodoc.v1.testserver.DefaultMonitor
This implemenation of Monitor uses a Hashtable to store the test data.
| Constructor Summary | |
DefaultMonitor(Server s,
TestDataFactory f)
Constructor for a Monitor requiring a reference to the Server which will receive the completed TestData structures, and a reference to a factory for creating new TestData instances for the particular framework this Monitor belongs to. |
|
| Method Summary | |
void |
addTestData(TestInfo info)
Adds a new TestData instance related to the given TestInfo. |
protected void |
assertNotNull(TestData td)
Ensures that td is not null. |
protected void |
assertNotNull(TestInfo info)
Ensures that info is not null. |
protected TestData |
createTestData(TestInfo info)
Creates a new TestData instance for the info object through the factory. |
TestData |
getTestData(TestInfo info)
Retrieves the data associated with the given TestInfo, as was created through addTestData( TestInfo ). |
protected TestData |
retrieveTestData(TestInfo info)
Retrieves the registered TestData instance for the info. |
void |
sendTestData(TestInfo info)
Sends the TestData associated with info to the inner server, and removes the data from the inner cache. |
protected void |
sendTestDataToServer(TestData td)
Sends off the test data to the server. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultMonitor(Server s,
TestDataFactory f)
s - the server to receive completed TestData entities.
This cannot be null.f - the factory in charge of creating new TestData
entities. This cannot be null.
java.lang.IllegalArgumentException - if s or f is
null.| Method Detail |
public void addTestData(TestInfo info)
addTestData in interface Monitorinfo - 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.
getTestData in interface Monitorinfo - 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)
sendTestData in interface Monitorinfo - 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.protected TestData createTestData(TestInfo info)
info - the unique test identifier
java.lang.IllegalStateException - if the factory returns null.protected TestData retrieveTestData(TestInfo info)
info - the unique test identifierprotected void sendTestDataToServer(TestData td)
protected void assertNotNull(TestInfo info)
protected void assertNotNull(TestData td)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||