|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmandala.rami.AbstractAsynchronousReference
Abstract implementation of the AsynchronousReference
interface.
AsynchronousReference,
FutureClient,
FutureServer,
CallbackManager,
Serialized Form| Field Summary | |
protected CallbackManager |
callbackManager
The manager of Callback for this
instance. |
protected static Syslog |
syslog
Message logger. |
| Constructor Summary | |
protected |
AbstractAsynchronousReference(CallbackManager callbackManager)
Creates a new AbstractAsynchronousReference
instance. |
| Method Summary | |
FutureClient |
call(MethodOp method,
Object[] args)
Call a method asynchronously. |
abstract FutureClient |
call(MethodOp method,
Object[] args,
Callback callBack)
Call a method asynchronously. |
CallbackManager |
getCallbackManager()
Returns the CallbackManager of this
instance. |
static Syslog |
getSyslog()
Returns the logger. |
static void |
setSyslog(Syslog syslog)
Sets the logger. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface mandala.rami.Reference |
getObject |
| Field Detail |
protected CallbackManager callbackManager
The manager of Callback for this
instance.
CallbackManagerprotected static Syslog syslog
Message logger.
Each message (debug, log, warning, error, ...) are wrote to this message logger.
Syslog| Constructor Detail |
protected AbstractAsynchronousReference(CallbackManager callbackManager)
Creates a new AbstractAsynchronousReference
instance.
callbackManager - the manager of
Callback for this instance.| Method Detail |
public FutureClient call(MethodOp method,
Object[] args)
AsynchronousReferenceCall a method asynchronously.
Since the call is asynchronous, exceptions are not handled in an
usual way. Implementations must provide a mechanism conform to the
FutureClient specification.
The method Callback.done(InvocationInfo,
MethodResult) of the instance returned by CallbackManager.getCallback() is called once
the reflexive asynchronous method invocation is done.
call in interface AsynchronousReferencemethod - the method to callargs - method's parameters
FutureClient object.FutureClient,
CallbackManager,
Callback
public abstract FutureClient call(MethodOp method,
Object[] args,
Callback callBack)
AsynchronousReferenceCall a method asynchronously.
Since the call is asynchronous, exceptions are not handled in an
usual way. Implementations may provide a mechanism conform to the
FutureClient specification.
The method done of the specified Callback
is called once the reflexive asynchronous method invocation is done.
The Callback instance returned by CallbackManager.getCallback() is not
used.
call in interface AsynchronousReferencemethod - the method to callargs - method's parameterscallBack - the callback to use.
FutureClient object.FutureClient,
Callbackpublic CallbackManager getCallbackManager()
AsynchronousReferenceReturns the CallbackManager of this
instance.
getCallbackManager in interface AsynchronousReferenceCallbackManager of this
instance.CallbackManagerpublic String toString()
public static Syslog getSyslog()
Returns the logger.
public static void setSyslog(Syslog syslog)
Sets the logger.
syslog - the logger to set
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||