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