Methods Summary |
---|
private void | blockingGet()Run the test for blocking get and cancel.
while (!stopping) {
numTry++;
InvocationImpl get =
InvocationStore.getResponse(new InvocationImpl(),
appl.getStorageId(), appl.getClassname(),
true);
if (get == null) {
numNotPending++;
} else {
numPending++;
}
}
|
private void | blockingListen()Run the test for blocking listen and cancel.
while (!stopping) {
numTry++;
boolean pending = InvocationStore.listen(appl.getStorageId(),
appl.getClassname(),
false, true);
if (pending) {
numPending++;
} else {
numNotPending++;
}
}
|
public int | check()Check the counters and return the level.
if (numNotPending + numPending != numTry) {
throw new RuntimeException("inconsistent counters");
}
return numTry;
|
void | reset()Reset the counters.
numTry = 0;
numNotPending = 0;
numPending = 0;
|
public void | run()Loop getting Invocations in the standard form.
Keep track of how many are received that non-null
and null.
if (type) {
blockingGet();
} else {
blockingListen();
}
|
void | stop()Called to stop this thread.
stopping = true;
|