Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

abeans::models::acs::baci::InvokeUtilities Class Reference

List of all members.

Static Public Member Functions

Object invokeSync (RemoteInfo parentInfo, String method, Proxy proxy, long timeout, RequestInterceptor interceptor, Invokeable invoker, Object[] params) throws RequestException
Object invokeSync (String method, NarrowCORBAProxy proxy, Object[] params) throws RemoteException
Request invokeAsync (RemoteInfo info, String method, Proxy proxy, long timeout, RequestInterceptor interceptor, Invokeable requestor, CallbackImplementation cb, Object[] params) throws RequestException
Object getCharacteristic (RemoteInfo parentInfo, String name, Proxy proxy, long timeout, RequestInterceptor interceptor, Invokeable invoker) throws AbeansDataExchangeException

Static Public Attributes

final long ACS_TIMEOUT_MULTIPLIER = 2
final String CB_KEY = "callback"

Private Member Functions

 InvokeUtilities ()

Detailed Description

This is a class containing convenience methods for invoking methods.

Author:
Matej Sekoranja (matej.sekoranja@cosylab.com)
Version:
@VERSION@
See also:
abeans.datatypes.CharacteristicContextUtilities


Constructor & Destructor Documentation

abeans::models::acs::baci::InvokeUtilities::InvokeUtilities  )  [inline, private]
 

Private constructor. This is a non-instantiable utility class.


Member Function Documentation

Object abeans::models::acs::baci::InvokeUtilities::getCharacteristic RemoteInfo  parentInfo,
String  name,
Proxy  proxy,
long  timeout,
RequestInterceptor  interceptor,
Invokeable  invoker
throws AbeansDataExchangeException [inline, static]
 

Accesses a characteristic the type of which will be determined at runtime. This is known as a dynamic characteristic in datatypes. See class javadoc to see a description of the standard characteristic get processing implemented by this method.

Parameters:
parentInfo the remote info to which the characteristic name and the get query will be appended; this remote info will be used as the request target; non-null
name the name of the characteristics, in string form, non-null
proxy the proxy of the invoker that must be passed to the pluggable layer with the request, non-null
timeout the timeout to use with the request, in milliseconds, or 0 if the request is not to be timed
interceptor the interceptor that will be passed the request for pre-submittal and post-submittal processing, may be null in which case no such processing will occur
invoker the modeling element that owns the characteristic; the database of this element will be used to submit the request; this element will be used as the latest request index key, non-null
Returns:
the characteristic value
Exceptions:
AbeansDataExchangeException thrown in two cases: if either the request sumittal fails or, if the interceptor post-subittal check detects an error, the interceptor raises an exception

Request abeans::models::acs::baci::InvokeUtilities::invokeAsync RemoteInfo  info,
String  method,
Proxy  proxy,
long  timeout,
RequestInterceptor  interceptor,
Invokeable  requestor,
CallbackImplementation  cb,
Object[]  params
throws RequestException [inline, static]
 

Invokes a method asynchronously.

Parameters:
info the remote info of the object no which the method will be invoked, non-null
method the name of the mathod to be invoked, in string form, non-null
proxy the proxy of the invoker, that will be passed in the request to the pluggable layer
timeout the timeout in milliseconds to use, 0 will disable request timing, non-negative
interceptor the interceptor used for pre-submittal and post-submittal request processing, may be null
requestor the instance of modeling element on which method will be invoked (e.g. Abean or Lbean), non-null
cb callback, non-null
params parameters
Returns:
the request that defines the asynchronous call
Exceptions:
RequestException thrown in two cases: when the request submittal fails, or, if interceptor is non-null and throws an exception during post-submittal request examination.

Object abeans::models::acs::baci::InvokeUtilities::invokeSync String  method,
NarrowCORBAProxy  proxy,
Object[]  params
throws RemoteException [inline, static]
 

Invokes synch. method without any remote info, parent, database,... completely w/o db.

Parameters:
method the name of the mathod to be invoked, in string form, non-null
proxy the proxy of the invoker that must be passed to the pluggable layer with the request, non-null
Returns:
return value
Exceptions:
RemoteException thrown in two cases: if either the request sumittal fails or, if the interceptor post-subittal check detects an error, the interceptor raises an exception

Object abeans::models::acs::baci::InvokeUtilities::invokeSync RemoteInfo  parentInfo,
String  method,
Proxy  proxy,
long  timeout,
RequestInterceptor  interceptor,
Invokeable  invoker,
Object[]  params
throws RequestException [inline, static]
 

Invokes synch. method.

Parameters:
parentInfo the remote info to which the characteristic name and the get query will be appended; this remote info will be used as the request target; non-null
method the name of the mathod to be invoked, in string form, non-null
proxy the proxy of the invoker that must be passed to the pluggable layer with the request, non-null
timeout the timeout to use with the request, in milliseconds, or 0 if the request is not to be timed
interceptor the interceptor that will be passed the request for pre-submittal and post-submittal processing, may be null in which case no such processing will occur
invoker the instance of modeling element on which method will be invoked (e.g. Abean or Lbean), non-null
Returns:
return value
Exceptions:
RequestException thrown in two cases: if either the request sumittal fails or, if the interceptor post-subittal check detects an error, the interceptor raises an exception


Member Data Documentation

final long abeans::models::acs::baci::InvokeUtilities::ACS_TIMEOUT_MULTIPLIER = 2 [static]
 

Multiplication factor for timeout delta trigger. If 0 calls are not timeouted.

final String abeans::models::acs::baci::InvokeUtilities::CB_KEY = "callback" [static]
 

A constant denoting the request property that has CallbackImplementation value.


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:42:53 2009 for ACS Java API by doxygen 1.3.8