Examples of cancel()


Examples of org.apache.drill.exec.work.fragment.FragmentManager.cancel()

  public Ack cancelFragment(FragmentHandle handle){
    FragmentManager manager = bee.getContext().getWorkBus().getFragmentManager(handle);

    if(manager != null){
      // try remote fragment cancel.
      manager.cancel();
    }else{
      // then try local cancel.
      FragmentExecutor runner = bee.getFragmentRunner(handle);
      if(runner != null) runner.cancel();
    }
View Full Code Here

Examples of org.apache.drill.exec.work.fragment.IncomingFragmentHandler.cancel()

  @Override
  public Ack cancelFragment(FragmentHandle handle){
    IncomingFragmentHandler handler = handlers.get(handle);
    if(handler != null){
      // try remote fragment cancel.
      handler.cancel();
    }else{
      // then try local cancel.
      FragmentRunner runner = bee.getFragmentRunner(handle);
      if(runner != null) runner.cancel();
    }
View Full Code Here

Examples of org.apache.excalibur.source.ModifiableSource.cancel()

                os.write(buffer, 0, len);
            }
            os.close();
        } catch(Exception e) {
            if (wdest.canCancel(os)) {
                wdest.cancel(os);
            }
        } finally {
            is.close();
        }
        // Success !
View Full Code Here

Examples of org.apache.felix.deploymentadmin.spi.DeploymentSessionImpl.cancel()

    }

    public boolean cancel() {
        DeploymentSessionImpl session = m_session;
        if (session != null) {
            session.cancel();
            return true;
        }
        return false;
    }
View Full Code Here

Examples of org.apache.flink.client.CliFrontend.cancel()

    try {
      // test unrecognized option
      {
        String[] parameters = {"-v", "-l"};
        CliFrontend testFrontend = new CliFrontend();
        int retCode = testFrontend.cancel(parameters);
        assertTrue(retCode == 2);
      }
     
      // test missing options
      {
View Full Code Here

Examples of org.apache.flink.runtime.executiongraph.ExecutionGraph.cancel()

    }

    final Runnable cancelJobRunnable = new Runnable() {
      @Override
      public void run() {
        eg.cancel();
      }
    };

    eg.execute(cancelJobRunnable);
View Full Code Here

Examples of org.apache.flink.runtime.instance.AllocatedSlot.cancel()

    try {
      // a slot than cannot be deployed to
      final TaskOperationProtocol taskManager = mock(TaskOperationProtocol.class);
      final Instance instance = getInstance(taskManager);
      final AllocatedSlot slot = instance.allocateSlot(new JobID());
      slot.cancel();
      assertFalse(slot.isReleased());
     
      final ExecutionJobVertex ejv = getJobVertexNotExecuting(new JobVertexID());
      final ExecutionVertex vertex = new ExecutionVertex(ejv, 0, new IntermediateResult[0]);
     
View Full Code Here

Examples of org.apache.hadoop.hdfs.util.Canceler.cancel()

        delayer.waitForCall();
        // then cancel the saveNamespace
        Future<Void> cancelFuture = pool.submit(new Callable<Void>() {
          @Override
          public Void call() throws Exception {
            canceler.cancel("cancelled");
            return null;
          }
        });
        // give the cancel call time to run
        Thread.sleep(500);
View Full Code Here

Examples of org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest.cancel()

          }
          totalRead += len;
        }
       
        if (curReadahead != null) {
          curReadahead.cancel();
        }

        // drop cache if possible
        if (tracker.manageOsCacheInShuffle && info.partLength > 0) {
          NativeIO.posixFadviseIfPossible(mapOutputIn.getFD(),
View Full Code Here

Examples of org.apache.http.concurrent.Cancellable.cancel()

    public void closed(final NHttpServerConnection conn) {
        HttpExchange httpExchange = ensureNotNull(getHttpExchange(conn));
        Cancellable asyncProcess = httpExchange.getAsyncProcess();
        httpExchange.clear();
        if (asyncProcess != null) {
            asyncProcess.cancel();
        }
    }

    public void exception(final NHttpServerConnection conn, final HttpException httpex) {
        if (conn.isResponseSubmitted()) {
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.