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
|
Rev | Line | |
---|
[91] | 1 | package omq.common.broker; |
---|
| 2 | |
---|
| 3 | import java.io.IOException; |
---|
[92] | 4 | import java.util.Properties; |
---|
[91] | 5 | import java.util.Set; |
---|
| 6 | |
---|
| 7 | import omq.Remote; |
---|
[92] | 8 | import omq.client.annotation.SyncMethod; |
---|
[91] | 9 | import omq.exception.RemoteException; |
---|
[103] | 10 | import omq.exception.RetryException; |
---|
[91] | 11 | |
---|
| 12 | public 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.