Package org.apache.sandesha2.policy

Examples of org.apache.sandesha2.policy.PolicyEngineData


    // Create an RMSBean so the create sequence message can be created
    messageContext.setWSAAction(pingAction);

    // Set the AxisOperation to be InOut
    AxisOperation operation = messageContext.getAxisService().getOperation(Sandesha2Constants.RM_IN_OUT_OPERATION);
    operation.setMessageReceiver(new RMMessageReceiver());
    messageContext.setAxisOperation(operation);

    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
   
    // Serialize the application message
View Full Code Here


    case RMProcessorContext.COMMIT:

      // //////////

      PolicyEngineData engineData = rmpc.readCurrentPolicyEngineData();
      String txt = rmpc.getAssertion().getStrValue();
      engineData.setMaximumRetransmissionCount(Integer.parseInt(txt.trim()));

      // /////////////////////////////////

      break;
    case RMProcessorContext.ABORT:
View Full Code Here

     
    case RMProcessorContext.COMMIT:
     
      //////////////
     
      PolicyEngineData ped = rmpc.readCurrentPolicyEngineData();
      String value = rmpc.getAssertion().getStrValue();
      ped.setInactivityTimeoutMeassure(value);
     
      //////////////
     
      break;
    case RMProcessorContext.ABORT:
View Full Code Here

    case RMProcessorContext.COMMIT:

      // ///////

      PolicyEngineData ped = rmpc.readCurrentPolicyEngineData();
      String text = rmpc.getAssertion().getStrValue();
      ped.setExponentialBackoff(new Boolean(text.trim()).booleanValue());

      // ///////

      break;
    case RMProcessorContext.ABORT:
View Full Code Here

      }

    case RMProcessorContext.COMMIT:

      // //////////////////
      PolicyEngineData ped = rmpc.readCurrentPolicyEngineData();
      String text = rmpc.getAssertion().getStrValue();
      ped.setRetransmissionInterval(Long.parseLong(text));
      // /////////////////

      break;
    case RMProcessorContext.ABORT:
      break;
View Full Code Here

    }
    return new Boolean(true);
  }

  public Object doStorageManager(RMProcessorContext rmpc) {
    PolicyEngineData ped = rmpc.readCurrentPolicyEngineData();
    String cls = rmpc.getAssertion().getStrValue();

    if (cls != null && !cls.trim().equals("")) {
      ped.setStorageManager(cls.trim());
    }

    return new Boolean(true);
  }
View Full Code Here

    return new Boolean(true);
  }

  public Object doPermanentStorageManager(RMProcessorContext spc) {
    PolicyEngineData ped = spc.readCurrentPolicyEngineData();
    String cls = spc.getAssertion().getStrValue();

    if (cls != null && !cls.trim().equals("")) {
      ped.setStorageManager(cls.trim());
    }

    return new Boolean(true);
  }
View Full Code Here

      }
      logger.debug(rmpt.getTokenName());
     
    case RMProcessorContext.COMMIT:
     
      PolicyEngineData ped = rmpc.readCurrentPolicyEngineData();
      String text = rmpc.getAssertion().getStrValue();
      ped.setInvokeInOrder(new Boolean(text).booleanValue());
      break;
    case RMProcessorContext.ABORT:
      break;
    }
    return new Boolean(true);
View Full Code Here

    case RMProcessorContext.COMMIT:

      // //////////

      PolicyEngineData engineData = rmpc.readCurrentPolicyEngineData();
      String txt = rmpc.getAssertion().getStrValue();
      engineData.setAcknowledgementInterval(Long.parseLong(txt.trim()));

      // /////////////////////////////////

      break;
    case RMProcessorContext.ABORT:
View Full Code Here

      logger.debug(rmpt.getTokenName());
     
    case RMProcessorContext.COMMIT:
     
      ///////////////
      PolicyEngineData ped = rmpc.readCurrentPolicyEngineData();
      String text = rmpc.getAssertion().getStrValue();
      ped.setInactivityTimeout(Long.parseLong(text));
      ///////////////
     
      break;
    case RMProcessorContext.ABORT:
      break;
View Full Code Here

TOP

Related Classes of org.apache.sandesha2.policy.PolicyEngineData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.