Examples of Callback


Examples of at.bestsolution.efxclipse.tooling.jdt.ui.internal.editors.model.anttasks.parameters.Callback

        T result = caseTemplate(template);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case ParametersPackage.CALLBACK: {
        Callback callback = (Callback)theEObject;
        T result = caseCallback(callback);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case ParametersPackage.INFO: {
View Full Code Here

Examples of ca.eandb.jmist.framework.measurement.CollectorSphere.Callback

      }

      ScatteredRay sr = specimen.scatter(surfacePoint, in, false, lambda, ru, rv, rj);

      if (sr != null) {
        Callback f = sensorArray.createCallback(sr.getColor());
        collectorSphere.record(sr.getRay().direction(), f);
      }

    }
View Full Code Here

Examples of co.cask.cdap.api.flow.flowlet.Callback

  private Callback createCallback(Flowlet flowlet, FlowletSpecification flowletSpec) {
    if (flowlet instanceof Callback) {
      return (Callback) flowlet;
    }
    final FailurePolicy failurePolicy = flowletSpec.getFailurePolicy();
    return new Callback() {
      @Override
      public void onSuccess(Object input, InputContext inputContext) {
        // No-op
      }
View Full Code Here

Examples of co.cask.tigon.api.flow.flowlet.Callback

  private Callback createCallback(Flowlet flowlet, FlowletSpecification flowletSpec) {
    if (flowlet instanceof Callback) {
      return (Callback) flowlet;
    }
    final FailurePolicy failurePolicy = flowletSpec.getFailurePolicy();
    return new Callback() {
      @Override
      public void onSuccess(Object input, InputContext inputContext) {
        // No-op
      }
View Full Code Here

Examples of code.satyagraha.gfm.ui.api.Scheduler.Callback

        // when
        model.start(markdownView, browser);
        model.showMarkdownFile(iFile);
        if (scheduleCount > 0) {
            Callback callback = schedulerCallbackCaptor.getValue();
            if (errorCount == 0) {
                callback.onComplete(htFile);
            } else {
                callback.onError(htFile, exception);
            }
        }
        model.stop();

        // then
View Full Code Here

Examples of com.alibaba.jstorm.callback.Callback

        throw new RuntimeException(msg);
      }
      return;
    }

    Callback callback = changingCallbacks.get(changeStatus);

    Object obj = callback.execute(args);
    if (obj != null && obj instanceof StormStatus) {
      StormStatus newStatus = (StormStatus) obj;
      // update status to ZK
      data.getStormClusterState().update_storm(topologyid, newStatus);
      LOG.info("Successfully updated " + topologyid + " as status "
View Full Code Here

Examples of com.alipay.bluewhale.core.callback.Callback

        //��ȡ��ǰtopology״̬��ת����״̬����
        Map<StatusType, Callback> transition_map=rtn.get(topologyStatus.getStatusType());
       
        if(transition_map.containsKey(transition_status)){
          //��ȡת���¶���ִ�з�����ִ�С�
          Callback callback=transition_map.get(transition_status);
          //�����µ�״̬����StormStatus
          if(callback!=null){
            Object obj=callback.execute(args);
            if (obj != null && obj instanceof StormStatus) {
              StormStatus newStatus=(StormStatus)obj;
              //����״̬
                data.getStormClusterState().update_storm(topologyid, newStatus);
              LOG.info("Updated " + topologyid + " with status " + newStatus);
View Full Code Here

Examples of com.almende.eve.entity.Callback

      }
    }
   
    // the callback does not yet exist. create it and store it
    String subscriptionId = UUID.randomUUID().toString();
    Callback callback = new Callback(subscriptionId, callbackUrl, callbackMethod);
    subscriptions.add(callback);
   
    // store the subscriptions
    putSubscriptions(event, subscriptions);
   
View Full Code Here

Examples of com.asakusafw.testdriver.inprocess.MockHadoopJob.Callback

     * Test method for executing Hadoop job with errors.
     */
    @Test
    public void executeJob_error() {
        prepareJobflow();
        MockHadoopJob.callback(new Callback() {
            @Override
            public int run(String[] args, Configuration conf) throws Exception {
                throw new InterruptedException();
            }
        });
View Full Code Here

Examples of com.atlassian.jira.rest.client.Callback

  @Test
  public void testFetchingIssueWithWorklogWhenAuthorIsDeleted() {
    final String issueKey = "ANONEDIT-1";
    final String testUser = "testusertoremove";

    addUserThenExecuteCallbackAndRemoveUser(testUser, new Callback() {
      @Override
      public void execute() {
        navigation.issue().logWork(issueKey, "3m");
      }
    });
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.