01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tctest.restart.unit;
05:
06: import com.tctest.restart.RestartTestApp;
07:
08: public interface RestartUnitTestApp extends RestartTestApp {
09:
10: public void attemptLock();
11:
12: /**
13: * Commands the app to release the lock.
14: */
15: public void fallThrough();
16:
17: public void doWait(long millis);
18:
19: public void doNotifyAll();
20:
21: public void doNotify();
22:
23: /**
24: * Sets the shared lock, turning it into a managed object.
25: */
26: public void setDistributedSharedLock(Object lck);
27:
28: /**
29: * Sets the shared lock, but doesn't turn it into a managed object.
30: */
31: public void setSharedLock(Object lck);
32:
33: }
|