mandala.jacob.remote
Class RemoteActiveMap.CallRemoteExceptionInfo

java.lang.Object
  extended bymandala.jacob.remote.RemoteActiveMap.CallRemoteExceptionInfo
All Implemented Interfaces:
InvocationInfo
Enclosing class:
RemoteActiveMap

public static class RemoteActiveMap.CallRemoteExceptionInfo
extends java.lang.Object
implements InvocationInfo

This class ease the handling of RemoteActiveMap.call() method thrown exceptions.


Field Summary
 java.lang.Object[] args
          Arguments of the call.
 java.lang.Object key
          Key of the call's target.
 MethodOp method
          Method of the call.
 
Constructor Summary
RemoteActiveMap.CallRemoteExceptionInfo(RemoteExceptionInfo info)
          Creates a new CallRemoteExceptionInfo instance.
 
Method Summary
 java.lang.Object[] getArgs()
          Returns the argument of the method involved in an asynchronous method invocation.
 AsynchronousReference getAsynchronousReference()
          Returns the AsynchronousReference involved in an asynchronous method invocation.
 Callback getCallback()
          Returns the Callback instance to use when the method invocation is considered terminated.
 ThreadOp getCallerThread()
          Get the thread which has been registered has interested in this object.
 MethodOp getMethod()
          InvocationInfo implementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

public final java.lang.Object key

Key of the call's target.


method

public final MethodOp method

Method of the call.


args

public final java.lang.Object[] args

Arguments of the call.

Constructor Detail

RemoteActiveMap.CallRemoteExceptionInfo

public RemoteActiveMap.CallRemoteExceptionInfo(RemoteExceptionInfo info)

Creates a new CallRemoteExceptionInfo instance.

The given info object must be related to the RemoteActiveMap.call() method.

Parameters:
info - an RemoteExceptionInfo value
Throws:
java.lang.IllegalArgumentException - if the given info object is not related to RemoteActiveMap.call()
Method Detail

getMethod

public MethodOp getMethod()
InvocationInfo implementation

Specified by:
getMethod in interface InvocationInfo
Returns:
the MethodOp involved in an asynchronous method invocation
See Also:
MethodOp

getArgs

public java.lang.Object[] getArgs()
Description copied from interface: InvocationInfo

Returns the argument of the method involved in an asynchronous method invocation. This method is safe related

Specified by:
getArgs in interface InvocationInfo
Returns:
the argument of the method involved in an asynchronous method invocation

getCallback

public Callback getCallback()
Description copied from interface: InvocationInfo

Returns the Callback instance to use when the method invocation is considered terminated. This method is safe related

Specified by:
getCallback in interface InvocationInfo
Returns:
a Callback value
See Also:
Callback

getCallerThread

public ThreadOp getCallerThread()
Description copied from interface: InvocationInfo

Get the thread which has been registered has interested in this object. This method is safe related.

Implementation may return null if the information has not been set (maybe for efficiency reasons).

Specified by:
getCallerThread in interface InvocationInfo
Returns:
a ThreadOp value

getAsynchronousReference

public AsynchronousReference getAsynchronousReference()
Description copied from interface: InvocationInfo

Returns the AsynchronousReference involved in an asynchronous method invocation. This method is safe related

The value returned is the asynchronous reference on which the reflective asynchronous invocation of the method returned by getMethod has been performed.

Specified by:
getAsynchronousReference in interface InvocationInfo
Returns:
the AsynchronousReference value


Mandala help mailing list