source: branches/supervisor/src/main/java/omq/supervisor/RemoteBroker.java @ 110

Last change on this file since 110 was 110, checked in by stoda, 11 years ago

Supervisor seems to work

File size: 943 bytes
Line 
1package omq.supervisor;
2
3import java.io.IOException;
4import java.util.Properties;
5
6import omq.Remote;
7import omq.client.annotation.AsyncMethod;
8import omq.client.annotation.MultiMethod;
9import omq.client.annotation.SyncMethod;
10import omq.common.broker.HasObject;
11import omq.exception.RemoteException;
12import omq.exception.RetryException;
13
14public 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.