Examples of cancel()


Examples of nexj.core.util.Cancellable.cancel()

         cancellable = m_cancellable;
      }

      if (cancellable != null)
      {
         cancellable.cancel();
      }
   }

   /**
    * @return The current user privilege set.
View Full Code Here

Examples of org.apache.archiva.redback.components.taskqueue.BuildProjectTask.cancel()

            }
            catch ( InterruptedException e )
            {
                if ( !task.ignoreInterrupts() )
                {
                    task.cancel();

                    logger.info( "Task cancelled: {} cancelled: {} ; done: {}", task, task.isCancelled(),
                                 task.isDone() );

                    throw new TaskExecutionException( "Never interrupt sleeping threads! :)", e );
View Full Code Here

Examples of org.apache.aries.samples.ariestrader.api.persistence.OrderDataBean.cancel()

        catch (Exception e) {
            Log.error("TradeJpaCm:buy(" + userID + "," + symbol + "," + quantity + ") --> failed", e);
            /* On exception - cancel the order */
            // TODO figure out how to do this with JPA
            if (order != null)
                order.cancel();

            throw new RuntimeException(e);
        }

        // after the purchase or sale of a stock, update the stocks volume and
View Full Code Here

Examples of org.apache.aries.samples.ariestrader.entities.OrderDataBeanImpl.cancel()

                 * Complete a Sell operation - remove the Holding from the Account -
                 * deposit the Order proceeds to the Account balance
                 */
                if (holding == null) {
                    Log.error("TradeJpaCm:completeOrder -- Unable to sell order " + order.getOrderID() + " holding already sold");
                    order.cancel();
                    return order;
                }
                else {
                    entityManager.remove(holding);
                    order.setHolding(null);
View Full Code Here

Examples of org.apache.commons.scxml.invoke.Invoker.cancel()

            }
            // check if invoke is active in this state
            if (invokers.containsKey(tt)) {
                Invoker toCancel = (Invoker) invokers.get(tt);
                try {
                    toCancel.cancel();
                } catch (InvokerException ie) {
                    TriggerEvent te = new TriggerEvent(tt.getId()
                        + ".invoke.cancel.failed", TriggerEvent.ERROR_EVENT);
                    internalEvents.add(te);
                }
View Full Code Here

Examples of org.apache.directory.ldap.client.api.future.ResponseFuture.cancel()

        // send cancel signal on future, sending so will leave a dangling poision object in the corresponding queue
        // this is a sync operation send cancel signal to the corresponding ResponseFuture
        if ( rf != null )
        {
            LOG.debug( "sending cancel signal to future" );
            rf.cancel( true );
        }
        else
        {
            // this shouldn't happen
            LOG
View Full Code Here

Examples of org.apache.directory.ldap.client.api.future.SearchFuture.cancel()

            searchResponse = searchFuture.get();
            count++;
           
            if ( count > 10 )
            {
                searchFuture.cancel( true );
                break;
            }
        }
        while ( !(searchResponse instanceof SearchResultDone ) );
       
View Full Code Here

Examples of org.apache.drill.exec.work.FragmentRunner.cancel()

      // try remote fragment cancel.
      handler.cancel();
    }else{
      // then try local cancel.
      FragmentRunner runner = bee.getFragmentRunner(handle);
      if(runner != null) runner.cancel();
    }
   
    return Acks.OK;
  }
 
View Full Code Here

Examples of org.apache.drill.exec.work.foreman.Foreman.cancel()

  }

  public Ack cancelQuery(QueryId query){
    Foreman foreman = bee.getForemanForQueryId(query);
    if(foreman != null){
      foreman.cancel();
    }
    return Acks.OK;
  }
 
  public Ack cancelFragment(FragmentHandle handle){
View Full Code Here

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

    return Acks.OK;
  }

  public Ack cancelFragment(FragmentHandle handle){
    FragmentExecutor runner = bee.getFragmentRunner(handle);
    if(runner != null) runner.cancel();
    return Acks.OK;
  }

  public SchemaFactory getSchemaFactory(){
    return bee.getContext().getSchemaFactory();
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.