|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adobe.livecycle.rca.common.utils.LCUtil
public class LCUtil
A utility class created to invoke LiveCycle Service operation
| Field Summary | |
|---|---|
static int |
DEFAULT_MAX_WAIT_TIME
Default max wait time, 15 min. |
| Constructor Summary | |
|---|---|
LCUtil()
|
|
| Method Summary | |
|---|---|
static com.adobe.idp.dsc.clientsdk.ServiceClientFactory |
getServiceClientFactory()
For Internal Use Only |
static com.adobe.idp.dsc.InvocationResponse |
invoke(com.adobe.idp.dsc.clientsdk.ServiceClientFactory serviceClientFactory,
String serviceName,
String operationName,
Map serviceArguments,
boolean isSynchronousInvocation)
Invokes given LiveCycle Service |
static com.adobe.idp.dsc.InvocationResponse |
invoke(com.adobe.idp.dsc.clientsdk.ServiceClientFactory serviceClientFactory,
String serviceName,
String operationName,
String[] inParamNames,
Object[] inParamValues)
Invokes given LiveCycle Service synchronously |
static Object |
invoke(com.adobe.idp.dsc.clientsdk.ServiceClientFactory serviceClientFactory,
String serviceName,
String operationName,
String[] inParamNames,
Object[] inParamValues,
String outParamName,
boolean isSynchronousInvocation)
Invokes given LiveCycle Service |
static com.adobe.idp.dsc.InvocationResponse |
invokeInVM(String serviceName,
String operationName,
String[] inParamNames,
Object[] inParamValues)
Invokes given LiveCycle Service synchronously in VM, can only be invoked from DSC. |
static com.adobe.idp.dsc.InvocationResponse |
invokeInVM(String serviceName,
String operationName,
String[] inParamNames,
Object[] inParamValues,
boolean isSynchronousInvocation)
Invokes given LiveCycle Service in VM, this can only be invoked from DSC. |
static Object |
invokeInVM(String serviceName,
String operationName,
String[] inParamNames,
Object[] inParamValues,
String outParamName)
Invokes given LiveCycle Service in the same VM, can only be invoked from a DSC. |
static Object |
invokeInVMWithExponentialBackOff(String serviceName,
String operationName,
String[] inParamNames,
Object[] inParamValues,
String outParamName,
long maxWaitTimeMillis)
Invokes a LiveCycle Service synchronously. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_MAX_WAIT_TIME
| Constructor Detail |
|---|
public LCUtil()
| Method Detail |
|---|
public static com.adobe.idp.dsc.InvocationResponse invokeInVM(String serviceName,
String operationName,
String[] inParamNames,
Object[] inParamValues)
throws com.adobe.idp.dsc.DSCException
serviceName - Name of the ServiceoperationName - Name of the operationinParamNames - Name of the input parametersinParamValues - Values of input parameters
InvocationResponse
com.adobe.idp.dsc.DSCException - whenever there is any error in invocation
public static com.adobe.idp.dsc.InvocationResponse invoke(com.adobe.idp.dsc.clientsdk.ServiceClientFactory serviceClientFactory,
String serviceName,
String operationName,
String[] inParamNames,
Object[] inParamValues)
throws com.adobe.idp.dsc.DSCException
serviceClientFactory - Service Client FactoryserviceName - Name of the ServiceoperationName - Name of the operationinParamNames - Name of the input parametersinParamValues - Values of input parameters
InvocationResponse
com.adobe.idp.dsc.DSCException - whenever there is any error in invocation
public static com.adobe.idp.dsc.InvocationResponse invokeInVM(String serviceName,
String operationName,
String[] inParamNames,
Object[] inParamValues,
boolean isSynchronousInvocation)
throws com.adobe.idp.dsc.DSCException
serviceName - Name of the ServiceoperationName - Name of the operationinParamNames - Name of the input parametersinParamValues - Values of input parametersisSynchronousInvocation - Flag to specify if the service
operation is to be invoked synchronously or asynchronously.
InvocationResponse
com.adobe.idp.dsc.DSCException - whenever there is any error in invocation
public static com.adobe.idp.dsc.InvocationResponse invoke(com.adobe.idp.dsc.clientsdk.ServiceClientFactory serviceClientFactory,
String serviceName,
String operationName,
Map serviceArguments,
boolean isSynchronousInvocation)
throws com.adobe.idp.dsc.DSCException
serviceClientFactory - Service Client FactoryserviceName - Name of the ServiceoperationName - Name of the operationserviceArguments - service arguments as key value pair.isSynchronousInvocation - Flag to specify if the service
operation is to be invoked synchronously or asynchronously.
InvocationResponse
com.adobe.idp.dsc.DSCException - whenever there is any error in invocation
public static Object invokeInVM(String serviceName,
String operationName,
String[] inParamNames,
Object[] inParamValues,
String outParamName)
throws com.adobe.idp.dsc.DSCException
serviceName - Name of the ServiceoperationName - Name of the operationinParamNames - Name of the input parametersinParamValues - Values of input parametersoutParamName - Name of the output parameter
com.adobe.idp.dsc.DSCException - whenever there is any error in invocation.
public static Object invoke(com.adobe.idp.dsc.clientsdk.ServiceClientFactory serviceClientFactory,
String serviceName,
String operationName,
String[] inParamNames,
Object[] inParamValues,
String outParamName,
boolean isSynchronousInvocation)
throws com.adobe.idp.dsc.DSCException
serviceClientFactory - Service Client FactoryserviceName - Name of the ServiceoperationName - Name of the operationinParamNames - Name of the input parametersinParamValues - Values of input parametersoutParamName - Name of the output parameterisSynchronousInvocation - Flag to specify if the service
operation is to be invoked synchronously or asynchronously.
com.adobe.idp.dsc.DSCException - whenever there is any error in invocation.public static com.adobe.idp.dsc.clientsdk.ServiceClientFactory getServiceClientFactory()
public static Object invokeInVMWithExponentialBackOff(String serviceName,
String operationName,
String[] inParamNames,
Object[] inParamValues,
String outParamName,
long maxWaitTimeMillis)
throws com.adobe.idp.dsc.DSCException
serviceName - Name of the ServiceoperationName - Name of the operationinParamNames - Name of the input parametersinParamValues - Values of input parametersoutParamName - Name of the output parametermaxWaitTimeMillis - Maximum time in milliseconds, the request should wait before it errors out. There's an upper limit to this
time, which is LCUtil.DEFAULT_MAX_WAIT_TIME
com.adobe.idp.dsc.DSCException - whenever there is any error in invocation.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||