public interface RemoteCall
RemoteCall interface defines the data
structure that packs the data about a single invocation
of an Operation instance. If the invocation
was synchronous and therefore produced no
Invocation instances, a single remote call
instance will fully describe and parametrize the remote call.
If the remote call was asynchronous and therefore produced
an Invocation instance, the remote call itself
will be parametrized by an instance of this object, while the
asynchronous responses (monitors, alarms, events etc.) will be
described by instances of RemoteResponse class.
An instance of this interface contains all information to
fully log the call.
Instances of this interface can describe either ordinary
Operation invocations or also Attribute
access - ie. calls to mutators and accessors. The type of the
data structure is determined by the return value of the
isAttributeAccess() method.| Modifier and Type | Method and Description |
|---|---|
Attribute |
getAttribute()
If
isAttributeAccess() returns true,
this method will return the reference to the attribute
object on which either accessor or mutator was invoked. |
java.lang.Object[] |
getAuxReturnValues()
In addition to the declared return value that each
operation can provide, an operation may also transfer
data as parameters to the operation which really count
as return values.
|
SimpleIntrospectable |
getIntrospectable()
Returns the simple introspectable instance on which the
call was made.
|
Operation |
getOperation()
Returns the operation that parametrizes the
reflective information about the remote call.
|
java.lang.Object[] |
getParameters()
This method returns an array of objects representing the parameters
passed to the remote method.
|
int |
getSN()
Returns the sequence number of the remote call.
|
java.lang.Object |
getSyncReturnValue()
Returns the return value that the remote call produced.
|
java.lang.Throwable |
getThrowable()
If the remote call or the invocation process generated
an exception, this method will return it.
|
boolean |
isAttributeAccess()
Returns
true iff this remote call
represents attribute access, ie. |
boolean |
isErrorResponse()
Returns
true if, during the invocation of this method,
the engine determined that the remote object responded with error completion. |
boolean |
isTimeout()
Returns
true if, during the invocation of this method,
the engine determined that the remote object did not respond within
the timeout period. |
Attribute getAttribute()
isAttributeAccess() returns true,
this method will return the reference to the attribute
object on which either accessor or mutator was invoked.
Otherwise the method will return null.java.lang.Object[] getAuxReturnValues()
Operation instances: for each parameter,
there is an entry in the array. For type IN parameters, the
fields are null. For other types of parameters
(auxilliary return values) the array contains the additional
return values produced by the remote call.SimpleIntrospectable getIntrospectable()
Operation getOperation()
java.lang.Object[] getParameters()
int getSN()
java.lang.Object getSyncReturnValue()
null if the remote call either returned
null, or the call was interrupted by either a timeout
or an exception being thrown.java.lang.Throwable getThrowable()
null.boolean isAttributeAccess()
true iff this remote call
represents attribute access, ie. the invocation
of either accessor or mutator on the remote attribute.boolean isTimeout()
true if, during the invocation of this method,
the engine determined that the remote object did not respond within
the timeout period. Timeout is defined by the engine.true if the method invocation was
interrupted by the engine because of the detected
timeout conditionboolean isErrorResponse()
true if, during the invocation of this method,
the engine determined that the remote object responded with error completion.true if the method invocation was
completed with error