01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.simulator.control;
06:
07: public interface Control {
08: void waitForStart() throws TCBrokenBarrierException,
09: InterruptedException;
10:
11: void notifyComplete();
12:
13: void notifyMutationComplete();
14:
15: void notifyValidationStart();
16:
17: /**
18: * Returns true if all participants completed in time.
19: */
20: boolean waitForAllComplete(long timeout)
21: throws InterruptedException;
22:
23: /**
24: * Returns true if all participants completed in time.
25: */
26: boolean waitForMutationComplete(long timeout)
27: throws InterruptedException;
28:
29: /**
30: * Returns true if all participants completed in time.
31: */
32: boolean waitForValidationStart(long timeout)
33: throws InterruptedException;
34: }
|