Examples of cancel()


Examples of org.nasutekds.server.protocols.internal.InternalSearchOperation.cancel()

    };

    assertEquals(LDAPSearch.mainSearch(args, false,
                  true, null, System.err),11);
    //cancel the persisting persistent search.
    search.cancel(new CancelRequest(true,Message.EMPTY));
  }
}
View Full Code Here

Examples of org.olap4j.OlapStatement.cancel()

  @Override
  public void cancel() throws TranslatorException {
    try {
      OlapStatement olapStatement = this.stmt;
      if (olapStatement != null) {
        olapStatement.cancel();
      }
    } catch (SQLException e) {
      throw new TranslatorException(e);
    }   
  }
View Full Code Here

Examples of org.opennebula.client.vm.VirtualMachine.cancel()

                }
            }

            // We have also some useful helpers for the actions you can perform
            // on a virtual machine, like cancel:
            rc = vm.cancel();
            System.out.println("\nTrying to cancel the VM " + vm.getId() +
                                " (should fail)...");

            // This is all the information you can get from the OneResponse:
            System.out.println("\tOpenNebula response");
View Full Code Here

Examples of org.opentripplanner.routing.trippattern.TripTimes.cancel()

            TripTimes newTimes = new TripTimes(getTripTimes(tripIndex));

            if (tripDescriptor.hasScheduleRelationship() && tripDescriptor.getScheduleRelationship()
                    == TripDescriptor.ScheduleRelationship.CANCELED) {
                newTimes.cancel();
            } else {
                // The GTFS-RT reference specifies that StopTimeUpdates are sorted by stop_sequence.
                Iterator<StopTimeUpdate> updates = tripUpdate.getStopTimeUpdateList().iterator();
                if (!updates.hasNext()) {
                    LOG.warn("Won't apply zero-length trip update to trip {}.", tripId);
View Full Code Here

Examples of org.pushingpixels.trident.Timeline.cancel()

    this.stopButton = new JButton("stop");
    this.stopButton.setEnabled(false);
    this.stopButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        progressTimeline.cancel();
        stopButton.setEnabled(false);
        startButton.setEnabled(true);
      }
    });
View Full Code Here

Examples of org.qi4j.spi.entitystore.StateCommitter.cancel()

            catch( Exception e )
            {
                // Cancel all previously prepared stores
                for( StateCommitter committer : committers )
                {
                    committer.cancel();
                }

                if( e instanceof ConcurrentEntityStateModificationException )
                {
                    // If we cancelled due to concurrent modification, then create the proper exception for it!
View Full Code Here

Examples of org.rascalmpl.library.util.Eval.EvalTimer.cancel()

    if(!timer.hasExpired() && commands.length() > 0){
      for(IValue command : commands){
        result = evaluator.eval(null, ((IString) command).getValue(), URIUtil.rootScheme("stdin"));
      }
      timer.cancel();
      if (timer.hasExpired()) {
        throw RuntimeExceptionFactory.timeout(null, null);
      }

      if (expected != null) {
View Full Code Here

Examples of org.reactivestreams.Subscription.cancel()

        final ManualSubscriber<T> sub = env.newManualSubscriber(pub);

        // leak the Subscription
        final Subscription subs = sub.subscription.value();

        subs.cancel();
        subs.cancel();
        subs.cancel();

        sub.expectNone();
        env.verifyNoAsyncErrors();
View Full Code Here

Examples of org.saiku.olap.query.IQuery.cancel()

  public void cancel(String queryName) {
    try {
      //System.out.println("Cancel: ID " + Thread.currentThread().getId() + " Name: " +
      // Thread.currentThread().getName());
      IQuery q = getIQuery(queryName);
      q.cancel();
    } catch (Exception e) {
      throw new SaikuServiceException("Error cancelling query: " + queryName, e);
    }
  }
View Full Code Here

Examples of org.snmp4j.agent.mo.snmp4j.example.Snmp4jHeartbeatMib.HeartbeatTask.cancel()

    else if (event.isRowDeactivated()) {
      Snmp4jAgentHBCtrlEntryRow row =
          (Snmp4jAgentHBCtrlEntryRow) event.getRow();
      HeartbeatTask task = (HeartbeatTask) row.getUserObject();
      if (task != null) {
        task.cancel();
      }
    }
  }

  public void rowChanged(MOTableRowEvent event) {
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.