Line | |
---|
1 | package omq.supervisor; |
---|
2 | |
---|
3 | import java.io.IOException; |
---|
4 | import java.util.Properties; |
---|
5 | |
---|
6 | import omq.Remote; |
---|
7 | import omq.client.annotation.AsyncMethod; |
---|
8 | import omq.client.annotation.MultiMethod; |
---|
9 | import omq.client.annotation.SyncMethod; |
---|
10 | import omq.common.broker.HasObject; |
---|
11 | import omq.exception.RemoteException; |
---|
12 | import omq.exception.RetryException; |
---|
13 | |
---|
14 | public interface RemoteBroker extends Remote { |
---|
15 | |
---|
16 | @AsyncMethod |
---|
17 | public void spawnObject(String reference, String className, Properties env) throws Exception; |
---|
18 | |
---|
19 | @AsyncMethod |
---|
20 | public void spawnObject(String reference, String className) throws Exception; |
---|
21 | |
---|
22 | @AsyncMethod |
---|
23 | public void deleteObject(String reference) throws RemoteException, IOException; |
---|
24 | |
---|
25 | @MultiMethod |
---|
26 | @SyncMethod(retry = 1, timeout = 1000) |
---|
27 | public boolean[] hasObject(String reference) throws RetryException; |
---|
28 | |
---|
29 | @MultiMethod |
---|
30 | @SyncMethod(retry = 1, timeout = 1000) |
---|
31 | public HasObject[] hasObjectInfo(String reference) throws RetryException; |
---|
32 | |
---|
33 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.