source: branches/supervisor/src/main/java/omq/common/broker/RemoteBroker.java @ 103

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

Supervisor done

TODO: revise supervisor

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