Examples of Kill()


Examples of abstrasy.InterpreterSemaphore.kill()

        if (amie != null) {
            if (!amie.isInterThread()) {
                throw new InterpreterException(StdErrors.An_actor_can_not_kill_supervisor);
            }
            sema.kill(amie);
        }
        /*
         * Correctif: rev6261 du 21/02/2011:
         *
         * Ne plus envoyer d'exception en cas où l'acteur serait déjà supprimé.
View Full Code Here

Examples of ch.fusun.baron.player.Player.kill()

   * dead
   */
  @Test
  public void testSimpleDead() {
    Player person = new Player(0, "Albert", Gender.MALE);
    person.kill();
    Country country = new Country(0, "Country");
    propertyService.setOwnership(person, country);
    reinject();
    turntask.execute();
    Object owner = propertyService.getOwnership(country);
View Full Code Here

Examples of ch.fusun.baron.unit.Unit.kill()

              "Attacking unit of " //$NON-NLS-1$
                  + ((Dynasty) propertyService
                      .getOwnership(unit)).getName()
                  + " exploded in a fireball"); //$NON-NLS-1$
        }
        otherUnit.kill(otherCasualties);
        if (otherUnit.isDead()) {
          messagingService.addMessage(
              userService.getUser(),
              "Defending unit of " //$NON-NLS-1$
                  + ((Dynasty) propertyService
View Full Code Here

Examples of com.google.collide.client.xhrmonitor.XhrWarden.WardenXhrRequest.kill()

  }

  public void testErrorsAreIssuedWhenRequestHitRequestLimit() {
    List<WardenXhrRequest> requests = createMultipleRequests(TEST_ERROR_LIMIT, 2, 2);
    WardenXhrRequest killedRequest = createRequest(1, 1);
    killedRequest.kill();
    replay(killedRequest);

    // Mock up listener behavior
    listener.onWarning(warden);
    listener.onEmergency(warden, killedRequest);
View Full Code Here

Examples of com.google.gwt.dev.jjs.impl.gflow.copy.CopyAssumption.Updater.kill()

    node.accept(new CfgVisitor() {
      @Override
      public void visitReadWriteNode(CfgReadWriteNode node) {
        JVariable targetVariable = node.getTargetVariable();
        if (isSupportedVar(targetVariable)) {
          result.kill(targetVariable);
        }
      }

      @Override
      public void visitWriteNode(CfgWriteNode node) {
View Full Code Here

Examples of com.google.gwt.dev.jjs.impl.gflow.liveness.LivenessAssumption.Updater.kill()

      @Override
      public void visitWriteNode(CfgWriteNode node) {
        JVariable target = node.getTargetVariable();
        if (target instanceof JLocal || target instanceof JParameter) {
          result.kill(target);
        }
      }
    });

    AssumptionUtil.setAssumptions(g.getInEdges(node), result.unwrap(), assumptionMap);
View Full Code Here

Examples of com.hubspot.singularity.mesos.SingularityDriver.kill()

          public void configure(Binder binder) {
            SingularityLogSupport logSupport = mock(SingularityLogSupport.class);
            binder.bind(SingularityLogSupport.class).toInstance(logSupport);

            SingularityDriver mock = mock(SingularityDriver.class);
            when(mock.kill((SingularityTaskId) Matchers.any())).thenReturn(Status.DRIVER_RUNNING);
            when(mock.getMaster()).thenReturn(Optional.<MasterInfo> absent());
            when(mock.start()).thenReturn(Status.DRIVER_RUNNING);
            when(mock.getLastOfferTimestamp()).thenReturn(Optional.<Long>absent());
            binder.bind(SingularityDriver.class).toInstance(mock);
View Full Code Here

Examples of com.quantcomponents.algo.ITradingAgentExecution.kill()

  public void removeExecution(TradingAgentExecutionHandle executionHandle) {
    ITradingAgentExecution execution = hierarchyContainer.removeTradingAgentExecution(executionHandle);
    if (execution == null) {
      throw new IllegalArgumentException("Handle: " + executionHandle + " does not correspont to an object");
    }
    execution.kill();
  }

  @Override
  public void removeBinding(TradingAgentBindingHandle bindingHandle) {
    hierarchyContainer.removeTradingAgentBinding(bindingHandle);
View Full Code Here

Examples of com.sun.faban.harness.agent.OracleAgent.kill()

        if((serverMachines != null) &&(serverMachines.length > 0)) {
            for (int i = 0; i < serverMachines.length; i++) {
                OracleAgent oracleAgent = (OracleAgent) allAgents.get(serverMachines[i]);
                try {
                    if(oracleAgent != null) {
                        oracleAgent.kill();
                        logger.fine("killed OracleAgent on " + serverMachines[i] );
                    }
                    else {
                        logger.severe("Unable to kill OracleAgent on " + serverMachines[i] + " OracleAgent is null");
                    }
View Full Code Here

Examples of com.sun.star.ucb.XSimpleFileAccess.kill()

            conn.close() ;
            XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF ();
            Object sfa = xMSF.createInstance ("com.sun.star.comp.ucb.SimpleFileAccess");
            XSimpleFileAccess xSFA = (XSimpleFileAccess) UnoRuntime.queryInterface (XSimpleFileAccess.class, sfa);
            log.println ("deleting database file");
            xSFA.kill (aFile);
            log.println ("Could delete file "+aFile+": "+!xSFA.exists (aFile));           
        } catch (com.sun.star.uno.Exception e) {
            log.println("Can't close the connection") ;
            e.printStackTrace(log) ;
        } catch (com.sun.star.lang.DisposedException e) {
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.