Examples of FaultManager


Examples of org.apache.hadoop.corona.FaultManager

    CoronaTaskTracker coronaTT =
      corona.getTaskTrackerRunner(0).getTaskTracker();
    coronaTT.stopActionServer();
    runSleepJob(conf, 10, 10);

    FaultManager fm =
      corona.getClusterManager().getNodeManager().getFaultManager();
    List<FaultManager.FaultStatsForType> faultStats =
        fm.getFaultStats(coronaTT.getName());
    assertTrue(faultStats.size() >= 2);
    for (FaultStatsForType stat : faultStats) {
      if (stat.getType().equals(ResourceType.MAP)
          || stat.getType().equals(ResourceType.REDUCE)) {
        assertEquals(stat.getType() + " Fault not reported to CM ",
View Full Code Here

Examples of org.apache.sandesha2.util.FaultManager

    }
   
    Iterator ackRangeIterator = sequenceAck.getAcknowledgementRanges().iterator();
    Iterator nackIterator = sequenceAck.getNackList().iterator();

    FaultManager faultManager = new FaultManager();
    SandeshaException fault = faultManager
        .checkForUnknownSequence(rmMsgCtx, outSequenceId, storageManager);
    if(fault == null) {
      fault = faultManager.checkForInvalidAcknowledgement(rmMsgCtx, storageManager);
    }
    if (fault != null) {
      throw fault;
    }
View Full Code Here

Examples of org.apache.sandesha2.util.FaultManager

    }

    ConfigurationContext context = createSeqMsg.getConfigurationContext();
    StorageManager storageManager = SandeshaUtil.getSandeshaStorageManager(context, context.getAxisConfiguration());

    FaultManager faultManager = new FaultManager();
    SandeshaException fault = faultManager.checkForCreateSequenceRefused(createSeqMsg, storageManager);
    if (fault != null) {
      throw fault;
    }
   
    // If the inbound CreateSequence includes a SecurityTokenReference then
View Full Code Here

Examples of org.apache.sandesha2.util.FaultManager

      OMElement body = msgCtx.getEnvelope().getBody();
      SecurityToken token = secManager.recoverSecurityToken(tokenBean.getValue());
      secManager.checkProofOfPossession(token, body, msgCtx);
    }

    FaultManager faultManager = new FaultManager();
    SandeshaException fault = faultManager.checkForUnknownSequence(rmMsgCtx, sequenceId, storageManager);
    if (fault != null) {
      throw fault;
    }

    SequencePropertyBean sequenceClosedBean = new SequencePropertyBean();
View Full Code Here

Examples of org.apache.sandesha2.util.FaultManager

      String message = "Invalid sequence id";
      log.debug(message);
      throw new SandeshaException (message);
    }
   
    FaultManager faultManager = new FaultManager();
    RMMsgContext faultMessageContext = faultManager.checkForUnknownSequence(terminateSeqRMMsg,sequenceId);
    if (faultMessageContext != null) {
      ConfigurationContext configurationContext = terminateSeqMsg.getConfigurationContext();
      AxisEngine engine = new AxisEngine(configurationContext);
     
      try {
View Full Code Here

Examples of org.apache.sandesha2.util.FaultManager

      String message = "No create sequence part is present in the create sequence message";
      log.debug(message);
      throw new SandeshaException(message);
    }

    FaultManager faultManager = new FaultManager();
    RMMsgContext faultMessageContext = faultManager.checkForCreateSequenceRefused(createSeqMsg);
    if (faultMessageContext != null) {
      ConfigurationContext configurationContext = createSeqMsg.getConfigurationContext();
      AxisEngine engine = new AxisEngine(configurationContext);
     
      try {
View Full Code Here

Examples of org.apache.sandesha2.util.FaultManager

   
    MessageContext msgCtx = rmMsgCtx.getMessageContext();
   
    String sequenceID = closeSequence.getIdentifier().getIdentifier();
   
    FaultManager faultManager = new FaultManager();
    RMMsgContext faultMessageContext = faultManager.checkForUnknownSequence(rmMsgCtx,sequenceID);
    if (faultMessageContext != null) {
      ConfigurationContext configurationContext = msgCtx.getConfigurationContext();
      AxisEngine engine = new AxisEngine(configurationContext);
     
      try {
View Full Code Here

Examples of org.apache.sandesha2.util.FaultManager

        .getSandeshaStorageManager(rmMsgCtx.getMessageContext()
            .getConfigurationContext());



    FaultManager faultManager = new FaultManager();
    RMMsgContext faultMessageContext = faultManager.checkForLastMsgNumberExceeded(rmMsgCtx);
    if (faultMessageContext != null) {
      ConfigurationContext configurationContext = msgCtx.getConfigurationContext();
      AxisEngine engine = new AxisEngine(configurationContext);
     
      try {
        engine.sendFault(faultMessageContext.getMessageContext());
      } catch (AxisFault e) {
        throw new SandeshaException ("Could not send the fault message",e);
      }
     
      return;
    }
   
    SequencePropertyBeanMgr seqPropMgr = storageManager.getSequencePropretyBeanMgr();
   
    //setting acked msg no range
    Sequence sequence = (Sequence) rmMsgCtx
        .getMessagePart(Sandesha2Constants.MessageParts.SEQUENCE);
    String sequenceId = sequence.getIdentifier().getIdentifier();
    ConfigurationContext configCtx = rmMsgCtx.getMessageContext()
        .getConfigurationContext();
    if (configCtx == null) {
      String message = "Configuration Context is null";
      log.debug(message);
      throw new SandeshaException(message);
    }

    faultMessageContext = faultManager.checkForUnknownSequence(rmMsgCtx,sequenceId);
    if (faultMessageContext != null) {
      ConfigurationContext configurationContext = msgCtx.getConfigurationContext();
      AxisEngine engine = new AxisEngine(configurationContext);
     
      try {
        engine.send(faultMessageContext.getMessageContext());
      } catch (AxisFault e) {
        throw new SandeshaException ("Could not send the fault message",e);
      }
     
      return;
    }
   
    //setting mustUnderstand to false.
    sequence.setMustUnderstand(false);
    rmMsgCtx.addSOAPEnvelope();
   
    //throwing a fault if the sequence is closed.
    faultMessageContext = faultManager. checkForSequenceClosed(rmMsgCtx,sequenceId);
    if (faultMessageContext != null) {
      ConfigurationContext configurationContext = msgCtx.getConfigurationContext();
      AxisEngine engine = new AxisEngine(configurationContext);
     
      try {
View Full Code Here

Examples of org.apache.sandesha2.util.FaultManager

      String message = "OutSequenceId is null";
      log.debug(message);
      throw new SandeshaException(message);
    }

    FaultManager faultManager = new FaultManager();
    RMMsgContext faultMessageContext = faultManager.checkForUnknownSequence(rmMsgCtx,outSequenceId);
    if (faultMessageContext != null) {
      ConfigurationContext configurationContext = msgCtx.getConfigurationContext();
      AxisEngine engine = new AxisEngine(configurationContext);
     
      try {
        engine.sendFault(faultMessageContext.getMessageContext());
      } catch (AxisFault e) {
        throw new SandeshaException ("Could not send the fault message",e);
      }
     
      return;
    }
   
    faultMessageContext = faultManager.checkForInvalidAcknowledgement(rmMsgCtx);
    if (faultMessageContext != null) {
      ConfigurationContext configurationContext = msgCtx.getConfigurationContext();
      AxisEngine engine = new AxisEngine(configurationContext);
     
      try {
View Full Code Here

Examples of org.apache.sandesha2.util.FaultManager

    String DONE = (String) msgCtx
        .getProperty(Sandesha2Constants.APPLICATION_PROCESSING_DONE);
    if (null != DONE && "true".equals(DONE))
      return;

    FaultManager faultManager = new FaultManager();
    RMMsgContext faultMessageContext = faultManager
        .checkForPossibleFaults(msgCtx);
    if (faultMessageContext != null) {
      AxisEngine engine = new AxisEngine(context);
      engine.send(faultMessageContext.getMessageContext());
      return;
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.