Package org.apache.sandesha2.policy

Examples of org.apache.sandesha2.policy.RMPolicyToken


    // 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


  public void initializeMaximumRetransmissionCount(RMPolicyToken rmpt)
      throws NoSuchMethodException {
  }

  public Object doMaximumRetransmissionCount(RMProcessorContext rmpc) {
    RMPolicyToken rmpt = rmpc.readCurrentSecurityToken();

    switch (rmpc.getAction()) {

    case RMProcessorContext.START:
      if (!initializedMaximumRetransmissionCount) {
        try {
          initializeMaximumRetransmissionCount(rmpt);
          initializedMaximumRetransmissionCount = true;
        } catch (NoSuchMethodException e) {
          logger.error("MaximumRetransmissionCountProcessor:doAcknowledgementInterval", e);
          return new Boolean(false);
        }
      }
      logger.debug(rmpt.getTokenName());

    case RMProcessorContext.COMMIT:

      // //////////
View Full Code Here

      throws NoSuchMethodException {

  }

  public Object doInactivityTimeoutMeasure(RMProcessorContext rmpc) {
    RMPolicyToken rmpt = rmpc.readCurrentSecurityToken();
    switch (rmpc.getAction()) {

    case RMProcessorContext.START:
      if (!initializedInactivityTimeoutMeasure) {
        try {
          initializeInactivityTimeoutMeasure(rmpt);
          initializedInactivityTimeoutMeasure = true;
        } catch (NoSuchMethodException e) {
          logger.error("Exception occured when initializeInactivityTimeoutMeasure", e);
          return new Boolean(false);
        }
      }
      logger.debug(rmpt.getTokenName());
     
    case RMProcessorContext.COMMIT:
     
      //////////////
     
View Full Code Here

  }

  public Object doExponentialBackoff(RMProcessorContext rmpc) {

    RMPolicyToken rmpt = rmpc.readCurrentSecurityToken();
    switch (rmpc.getAction()) {

    case RMProcessorContext.START:
      if (!initializedExponentialBackoff) {
        try {
          initializeExponentialBackoff(rmpt);
          initializedExponentialBackoff = true;
        } catch (NoSuchMethodException e) {
          logger.error("Exception occured when invoking processTokenMethod", e);
          return new Boolean(false);
        }
      }
      logger.debug(rmpt.getTokenName());

    case RMProcessorContext.COMMIT:

      // ///////
View Full Code Here

    logger.debug("RetransmissionIntervalProcessor:initializeRetransmissionInterval");;

  }

  public Object doRetransmissionInterval(RMProcessorContext rmpc) {
    RMPolicyToken rmpt = rmpc.readCurrentSecurityToken();
    switch (rmpc.getAction()) {

    case RMProcessorContext.START:
      if (!initializedRetransmissionInterval) {
        try {
View Full Code Here

  private Log logger = LogFactory.getLog(this.getClass().getName());

  public void initializeStorageManager(RMPolicyToken rmpt)
      throws NoSuchMethodException {
    RMPolicyToken tmpRpt = RMPolicy.storageManager.copy();
    tmpRpt.setProcessTokenMethod(this);
    rmpt.setChildToken(tmpRpt);

    tmpRpt = RMPolicy.permenentStorageManager.copy();
    tmpRpt.setProcessTokenMethod(this);
    rmpt.setChildToken(tmpRpt);

  }
View Full Code Here

    rmpt.setChildToken(tmpRpt);

  }

  public Object doStorageManagers(RMProcessorContext rmpc) {
    RMPolicyToken rmpt = rmpc.readCurrentSecurityToken();
    switch (rmpc.getAction()) {

    case RMProcessorContext.START:
      if (!initializedStorageManager) {
        try {
          initializeStorageManager(rmpt);
          initializedStorageManager = true;
        } catch (NoSuchMethodException e) {
          logger.error(
              "Exception occured in initializeStorageManager", e);
          return new Boolean(false);
        }
      }
      logger.debug(rmpt.getTokenName());

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

  public void initializeInvokeInOrder(RMPolicyToken spt)
      throws NoSuchMethodException {
  }

  public Object doInvokeInOrder(RMProcessorContext rmpc) {
    RMPolicyToken rmpt = rmpc.readCurrentSecurityToken();
    switch (rmpc.getAction()) {

    case RMProcessorContext.START:
      if (!initializedInvokeInOrder) {
        try {
          initializeInvokeInOrder(rmpt);
          initializedInvokeInOrder = true;
        } catch (NoSuchMethodException e) {
          logger.error("Exception occured in initializeInvokeInOrder", e);
          return new Boolean(false);
        }
      }
      logger.debug(rmpt.getTokenName());
     
    case RMProcessorContext.COMMIT:
     
      PolicyEngineData ped = rmpc.readCurrentPolicyEngineData();
      String text = rmpc.getAssertion().getStrValue();
View Full Code Here

      throws NoSuchMethodException {

  }

  public Object doAcknowledgementInterval(RMProcessorContext rmpc) {
    RMPolicyToken rmpt = rmpc.readCurrentSecurityToken();

    switch (rmpc.getAction()) {

    case RMProcessorContext.START:
      if (!initializedAcknowledgementInterval) {
        try {
          initializeAcknowledgementIterval(rmpt);
          initializedAcknowledgementInterval = true;
        } catch (NoSuchMethodException e) {
          logger.error("AcknowledgementIntervalProcessor:doAcknowledgementInterval", e);
          return new Boolean(false);
        }
      }
      logger.debug(rmpt.getTokenName());

    case RMProcessorContext.COMMIT:

      // //////////
View Full Code Here

  }

  public Object doInactivityTimeout(RMProcessorContext rmpc) {

    RMPolicyToken rmpt = rmpc.readCurrentSecurityToken();
    switch (rmpc.getAction()) {

    case RMProcessorContext.START:
      if (!initializedInactivityTimeout) {
        try {
          initializeInactivityTimeout(rmpt);
          initializedInactivityTimeout = true;
        } catch (NoSuchMethodException e) {
          logger.error("Exception occured in initializeInactivityTimeout", e);
          return new Boolean(false);
        }
      }
      logger.debug(rmpt.getTokenName());
     
    case RMProcessorContext.COMMIT:
     
      ///////////////
      PolicyEngineData ped = rmpc.readCurrentPolicyEngineData();
View Full Code Here

TOP

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

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.