Examples of RMPolicyToken


Examples of org.apache.sandesha2.policy.RMPolicyToken

  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

Examples of org.apache.sandesha2.policy.RMPolicyToken

      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

Examples of org.apache.sandesha2.policy.RMPolicyToken

  }

  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

Examples of org.apache.sandesha2.policy.RMPolicyToken

    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

Examples of org.apache.sandesha2.policy.RMPolicyToken

  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

Examples of org.apache.sandesha2.policy.RMPolicyToken

    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

Examples of org.apache.sandesha2.policy.RMPolicyToken

  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

Examples of org.apache.sandesha2.policy.RMPolicyToken

      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

Examples of org.apache.sandesha2.policy.RMPolicyToken

  }

  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

Examples of org.apache.sandesha2.policy.RMPolicyToken

      throws NoSuchMethodException {

  }

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

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

    case RMProcessorContext.COMMIT:

      // ////////////////////
      PolicyEngineData ped = rmpc.readCurrentPolicyEngineData();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.