Search in sources :

Example 11 with CBDescOut

use of alma.ACS.CBDescOut in project ACS by ACS-Community.

the class ResponderUtil method respond.

/**
	 * @param returnValue
	 * @param cb
	 * @param descIn
	 */
public static void respond(String returnValue, CBstring cb, CBDescIn descIn) {
    Completion completion = ResponderUtil.giveCompletion();
    CBDescOut cbDescOut = ResponderUtil.giveDescOut(descIn);
    cb.done(returnValue, completion, cbDescOut);
}
Also used : Completion(alma.ACSErr.Completion) MyAcsJCompletion(alma.acs.callbacks.Objects.MyAcsJCompletion) CBDescOut(alma.ACS.CBDescOut)

Example 12 with CBDescOut

use of alma.ACS.CBDescOut in project ACS by ACS-Community.

the class ResponderUtil method respond.

/**
	 * @param exc
	 * @param cb
	 * @param descIn
	 */
public static void respond(Exception exc, CBlong cb, CBDescIn descIn) {
    Completion completion = ResponderUtil.giveCompletion(exc);
    CBDescOut cbDescOut = ResponderUtil.giveDescOut(descIn);
    cb.done(-1, completion, cbDescOut);
}
Also used : Completion(alma.ACSErr.Completion) MyAcsJCompletion(alma.acs.callbacks.Objects.MyAcsJCompletion) CBDescOut(alma.ACS.CBDescOut)

Example 13 with CBDescOut

use of alma.ACS.CBDescOut in project ACS by ACS-Community.

the class ResponderUtil method respond.

/**
	 * @param returnValue
	 * @param cb
	 * @param descIn
	 */
public static void respond(double returnValue, CBdouble cb, CBDescIn descIn) {
    Completion completion = ResponderUtil.giveCompletion();
    CBDescOut cbDescOut = ResponderUtil.giveDescOut(descIn);
    cb.done(returnValue, completion, cbDescOut);
}
Also used : Completion(alma.ACSErr.Completion) MyAcsJCompletion(alma.acs.callbacks.Objects.MyAcsJCompletion) CBDescOut(alma.ACS.CBDescOut)

Example 14 with CBDescOut

use of alma.ACS.CBDescOut in project ACS by ACS-Community.

the class ResponderUtil method giveDescOut.

public static CBDescOut giveDescOut(CBDescIn descIn) {
    CBDescOut ret;
    long estimatedTimeout = descIn.normal_timeout;
    int id_tag = descIn.id_tag;
    ret = new CBDescOut(estimatedTimeout, id_tag);
    return ret;
}
Also used : CBDescOut(alma.ACS.CBDescOut) CBlong(alma.ACS.CBlong)

Example 15 with CBDescOut

use of alma.ACS.CBDescOut in project ACS by ACS-Community.

the class ResponderUtil method respond.

/**
	 * @param exc
	 * @param cb
	 * @param descIn
	 */
public static void respond(Exception exc, CBstringSeq cb, CBDescIn descIn) {
    Completion completion = ResponderUtil.giveCompletion(exc);
    CBDescOut cbDescOut = ResponderUtil.giveDescOut(descIn);
    cb.done(new String[] {}, completion, cbDescOut);
}
Also used : Completion(alma.ACSErr.Completion) MyAcsJCompletion(alma.acs.callbacks.Objects.MyAcsJCompletion) CBDescOut(alma.ACS.CBDescOut)

Aggregations

CBDescOut (alma.ACS.CBDescOut)16 Completion (alma.ACSErr.Completion)13 MyAcsJCompletion (alma.acs.callbacks.Objects.MyAcsJCompletion)12 CBlong (alma.ACS.CBlong)2 AcsJException (alma.acs.exceptions.AcsJException)2 AcsJNoPermissionEx (alma.maciErrType.wrappers.AcsJNoPermissionEx)2 CBDescIn (alma.ACS.CBDescIn)1 CBlongPOA (alma.ACS.CBlongPOA)1 AcsJUnexpectedExceptionEx (alma.ACSErrTypeCommon.wrappers.AcsJUnexpectedExceptionEx)1 AcsJUnknownEx (alma.ACSErrTypeCommon.wrappers.AcsJUnknownEx)1 ACSErrOKAcsJCompletion (alma.ACSErrTypeOK.wrappers.ACSErrOKAcsJCompletion)1 AcsJCompletion (alma.acs.exceptions.AcsJCompletion)1 CannotActivateComponentEx (alma.maciErrType.CannotActivateComponentEx)1 ComponentDeactivationFailedEx (alma.maciErrType.ComponentDeactivationFailedEx)1 ComponentDeactivationUncleanEx (alma.maciErrType.ComponentDeactivationUncleanEx)1 NoPermissionEx (alma.maciErrType.NoPermissionEx)1 AcsJCannotActivateComponentEx (alma.maciErrType.wrappers.AcsJCannotActivateComponentEx)1 AcsJComponentDeactivationFailedEx (alma.maciErrType.wrappers.AcsJComponentDeactivationFailedEx)1 AcsJComponentDeactivationUncleanEx (alma.maciErrType.wrappers.AcsJComponentDeactivationUncleanEx)1 BadParametersException (com.cosylab.acs.maci.BadParametersException)1