Examples of shutDown()


Examples of de.scoopgmbh.copper.wfrepo.FileBasedWorkflowRepository.shutdown()

      Workflow<?> wf = repo.createWorkflowFactory(WF_CLASSNAME).newInstance();
      String tpId = ticketPoolManager.obtainAndReturnTicketPoolId(wf);
      assertEquals(T_POOL_ID, tpId);
    }
    finally {
      repo.shutdown();
      ticketPoolManager.shutdown();
    }
  }

}
View Full Code Here

Examples of de.uniluebeck.itm.ncoap.application.server.webservice.Webservice.shutdown()

    public synchronized boolean shutdownService(String uriPath) {
        Webservice removedService = registeredServices.remove(uriPath);

        if(removedService != null){
            log.info("Service {} removed from server.", uriPath);
            removedService.shutdown();
        }

        else{
            log.error("Service {} could not be removed. Does not exist.", uriPath);
        }
View Full Code Here

Examples of edu.drexel.cs544.mcmuc.channels.Controller.shutdown()

        while (true) {
            try {
                CLICommand command = cli.getNextCommand();
                if (command.getCommand() == CLICommand.Command.EXIT) { // Stop and kill this program
                    System.err.println("Exit command received, shutting down...");
                    controller.shutdown();
                    System.exit(0);
                } else if (command.getCommand() == CLICommand.Command.USEROOM) {
                    controller.useRoom(command.getArg(1), command.getArg(0));
                } else if (command.getCommand() == CLICommand.Command.LEAVEROOM) {
                    controller.leaveRoom(command.getArg(0));
View Full Code Here

Examples of edu.emory.mathcs.backport.java.util.concurrent.ExecutorService.shutdown()

            {
                taskQueueExecutor.stop();
                ExecutorService service = getExecutorServiceForTTQE( taskQueueExecutor );
                if ( service != null )
                {
                    service.shutdown();
                }
            }
            catch ( StoppingException e )
            {
                log.error( "Unable to stop task queue executor.", e );
View Full Code Here

Examples of edu.emory.mathcs.backport.java.util.concurrent.ScheduledExecutorService.shutdown()

  }

  public void testShutdownIsPropagatedToTheExecutorOnDestroy() throws Exception {
    MockControl mockScheduledExecutorService = MockControl.createNiceControl(ScheduledExecutorService.class);
    final ScheduledExecutorService executor = (ScheduledExecutorService) mockScheduledExecutorService.getMock();
    executor.shutdown();
    mockScheduledExecutorService.setVoidCallable();
    mockScheduledExecutorService.replay();

    ScheduledExecutorFactoryBean factory = new ScheduledExecutorFactoryBean() {
      protected ScheduledExecutorService createExecutor(int poolSize, ThreadFactory threadFactory, RejectedExecutionHandler rejectedExecutionHandler) {
View Full Code Here

Examples of edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.shutdown()

                rejectedExecutionHandler);
    }

    protected void destroyInstance(Object o) throws Exception {
        ThreadPoolExecutor executor = (ThreadPoolExecutor) o;
        executor.shutdown();
    }

    public Class getObjectType() {
        return ThreadPoolExecutor.class;
    }
View Full Code Here

Examples of edu.isi.karma.kr2rml.planning.TriplesMapPlanExecutor.shutdown()

        }
        if (i++%2000 == 0)
          logger.info("Done processing " + i + " rows");

      }
      e.shutdown(errorReport);
      // Generate column provenance information if required
      if (addColumnContextInformation) {
        generateColumnProvenanceInformation();
      }
View Full Code Here

Examples of edu.uci.ics.crawler4j.crawler.CrawlController.Shutdown()

    // Wait for 30 seconds
    Thread.sleep(30 * 1000);

    // Send the shutdown request and then wait for finishing
    controller.Shutdown();
    controller.waitUntilFinish();
  }
}
View Full Code Here

Examples of edu.umd.cs.findbugs.cloud.Cloud.shutdown()

        if (args.length > 1) {
            origCollection.writeXML(args[1]);
        }
        cloud.waitUntilNewIssuesUploaded();
        cloud.shutdown();

    }
}
View Full Code Here

Examples of etch.util.core.nio.ByteBufferPool.shutdown()

    assertEquals( 1, p.bufferSize() );
    assertEquals( 2, p.min() );
    assertEquals( 3, p.limit() );
    assertEquals( 4, p.interval() );
    assertEquals( 5, p.length() );
    p.shutdown();
  }

  /** @throws Exception */
  @Test
  public void construct8() throws Exception
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.