Examples of fail()


Examples of com.alibaba.jstorm.client.spout.IFailValueSpout.fail()

    Object msg_id = tupleInfo.getMessageId();

    if (spout instanceof IFailValueSpout) {
      IFailValueSpout enhanceSpout = (IFailValueSpout) spout;
      enhanceSpout.fail(msg_id, tupleInfo.getValues());
    } else {
      spout.fail(msg_id);
    }

    task_stats.spout_failed_tuple(tupleInfo.getStream());
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.flow.core.ExternalTaskCompletionHandle.fail()

            OpenRequestInfo<String, ActivityType> scheduled = scheduledActivities.remove(activityId);
            if (scheduled != null) {
                ExternalTaskCompletionHandle completionHandle = scheduled.getCompletionHandle();
                // It is OK to fail with subclass of CancellationException when cancellation requested.
                // It allows passing information about cancellation (details in this case) to the surrounding doCatch block
                completionHandle.fail(e);
            }
        }
    }

    void handleScheduleActivityTaskFailed(HistoryEvent event) {
View Full Code Here

Examples of com.arjuna.webservices11.wsba.CoordinatorCompletionCoordinatorInboundEvents.fail()

         if (coordinator != null)
         {
             try
             {
                 coordinator.fail(fail, addressingProperties, arjunaContext) ;
             }
             catch (final Throwable th)
             {
                 if (WSTLogger.arjLoggerI18N.isDebugEnabled())
                 {
View Full Code Here

Examples of com.arjuna.webservices11.wsba.ParticipantCompletionCoordinatorInboundEvents.fail()

        if (coordinator != null)
        {
            try
            {
                coordinator.fail(fail, addressingProperties, arjunaContext) ;
            }
            catch (final Throwable th)
            {
                if (WSTLogger.arjLoggerI18N.isDebugEnabled())
                {
View Full Code Here

Examples of com.arjuna.wst11.BAParticipantManager.fail()

                    if (participant instanceof ParticipantCompletionTestParticipant) {
                        ParticipantCompletionTestParticipant baparticipant = (ParticipantCompletionTestParticipant)participant;
                        BAParticipantManager manager = managerMap.get(id);
                        QName qname = new QName("http://jbossts.jboss.org/xts/servicetests/", "fail");
                        try {
                            manager.fail(qname);
                            resultsList.add("ok");
                        } catch (Exception e) {
                            throw new WebServiceException("fail " + id + " failed with exception " + e);
                        }
                    } else {
View Full Code Here

Examples of com.facebook.presto.hive.HiveSplitSourceProvider.HiveSplitSource.fail()

        // remove a split and verify
        assertEquals(hiveSplitSource.getNextBatch(1).size(), 1);
        assertEquals(hiveSplitSource.getOutstandingSplitCount(), 4);

        // fail source
        hiveSplitSource.fail(new RuntimeException("test"));
        assertEquals(hiveSplitSource.getOutstandingSplitCount(), 4);

        // try to remove a split and verify we got the expected exception
        try {
            hiveSplitSource.getNextBatch(1);
View Full Code Here

Examples of com.getperka.flatpack.ext.SerializationContext.fail()

    try {
      context.add(entity);
      visitorSupport.visit(writers.get(), entity);
      return json.get();
    } catch (Exception e) {
      context.fail(e);
      return null;
    } finally {
      packScope.exit();
    }
  }
View Full Code Here

Examples of com.google.gwt.query.client.Promise.fail()

    }
    if (onSuccess != null) {
      ret.done(onSuccess);
    }
    if (onError != null) {
      ret.fail(onError);
    }
    return ret;
  }
 
  private static void resolveSettings(Settings settings) {
View Full Code Here

Examples of com.jada.util.IdSecurity.fail()

      }
     
      Site site = getContentBean(request).getSiteDomain().getSite();
      IdSecurity idSecurity = new IdSecurity(site, form.getCustEmail(), true);
      if (idSecurity.isSuspened()) {
        idSecurity.fail();
        form.setCustPassword("");
          messages.add("login", new ActionMessage("content.error.login.suspended.temporary", String.valueOf(Constants.ID_SUSPEND_TIME / 1000 / 60)));
      saveMessages(request, messages);
            ActionForward actionForward = actionMapping.findForward("error");
            return actionForward;
View Full Code Here

Examples of com.jada.util.IdSecurity.fail()

        }
        query.setParameter("custEmail", form.getCustEmail());
       
        List<?> list = query.getResultList();
        if (list.size() == 0) {
          idSecurity.fail();
          form.setCustPassword("");
          messages.add("login", new ActionMessage("content.error.login.invalid"));
      saveMessages(request, messages);
            ActionForward actionForward = actionMapping.findForward("error");
            return actionForward;
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.