|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectguarana.util.observer.remote.RemoteObservable
guarana.toolkit.adapter.proxy.Future
public class Future
A future object to be shared between the JBI container and the Guaranį DSL solution. This future object contains the response message to the port.
Constructor Summary | |
---|---|
Future(String host,
int port)
Constructs a new Future. |
Method Summary | |
---|---|
void |
destroy()
Unbind and removes this object from the RMI Registry if it is bound. |
String |
getId()
Returns the unique ID that identifies this future. |
Message<?> |
getResult()
Returns the response message from this future. |
boolean |
isDone()
Checks if the future contains the response message. |
void |
setResult(Message<?> result)
Sets a response message to this future. |
Methods inherited from class guarana.util.observer.remote.RemoteObservable |
---|
addRemoteObserver, countRemoteObservers, notifyRemoteObservers, notifyRemoteObservers, removeAllRemoteObservers, removeRemoteObserver |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface guarana.toolkit.adapter.proxy.IStubFuture |
---|
addRemoteObserver |
Constructor Detail |
---|
public Future(String host, int port)
host
- The host where this future is registered to the RMI Registry.port
- The port on which is running the RMI Registry.Method Detail |
---|
public boolean isDone() throws RemoteException
isDone
in interface IStubFuture
RemoteException
- if any remote exception is raised during this method execution.public void setResult(Message<?> result) throws RemoteException
setResult
in interface IStubFuture
result
- the response message.
RemoteException
- if any remote exception is raised during this method execution.public Message<?> getResult() throws RemoteException
getResult
in interface IStubFuture
RemoteException
- if any remote exception is raised during this method execution.public String getId() throws RemoteException
getId
in interface IStubFuture
RemoteException
- if any remote exception is raised during this method execution.public void destroy() throws RemoteException, NotBoundException, AccessException, NoSuchObjectException
destroy
in interface IStubFuture
RemoteException
- if a remote exception is raised during this method execution.
AccessException
- if the method was invoked from a non-local host, then an AccessException is thrown.
NoSuchObjectException
- if an attempt is made to invoke a method on an object that no longer exists in the remote virtual machine.
NotBoundException
- if an attempt is made to lookup or unbind in the registry a name that has no associated binding.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |