Examples of shutdown()


Examples of net.grinder.AgentDaemon.shutdown()

    // Shutdown console
    sleep(3000);
    assertThat(console1.getAllAttachedAgentsCount(), is(1));

    // shutdown twice
    agent.shutdown();
    sleep(5000);
    assertThat(console1.getAllAttachedAgentsCount(), is(0));
    agent.shutdown();
    sleep(5000);
    assertThat(console1.getAllAttachedAgentsCount(), is(0));
View Full Code Here

Examples of net.grinder.communication.FanOutStreamSender.shutdown()

    } finally {
      if (workerLauncher != null) {
        workerLauncher.shutdown();
      }
      if (fanOutStreamSender != null) {
        fanOutStreamSender.shutdown();
      }
      // To be safe, wait again..
      int waitingCount = 0;
      while (workerLauncher != null) {
        final int maximumWaitingCount = 10;
View Full Code Here

Examples of net.grinder.engine.agent.AgentDaemon.shutdown()

          new AgentDaemon(
              logger,
              getDaemonPeriod(),
               new AgentImplementation(logger, getFileProperties(), false));
        daemon_agent.run();
        daemon_agent.shutdown();
      }
      else
      {
        if(logger.isDebugEnabled()){
          logger.debug("");
View Full Code Here

Examples of net.grinder.engine.agent.AgentImplementation.shutdown()

          logger.debug("|   Create an AgentImplementation   |");
          logger.debug(" -----------------------------------");
        }               
        default_agent = new AgentImplementation(logger, getFileProperties(), true);
        default_agent.run();
        default_agent.shutdown();
      }
    } catch (GrinderException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of net.grinder.scriptengine.ScriptEngineService.ScriptEngine.shutdown()

      } finally {
        reportTimerTask.cancel();
        shutdownTimerTask.cancel();
      }

      scriptEngine.shutdown();

      // Final report to the console.
      reportTimerTask.run();

      if (!m_communicationShutdown) {
View Full Code Here

Examples of net.opentsdb.core.TSDB.shutdown()

    Plot plot = null;
    try {
      plot = doQuery(tsdb, args, basepath != null);
    } finally {
      try {
        tsdb.shutdown().joinUninterruptibly();
      } catch (Exception e) {
        LOG.error("Unexpected exception", e);
        System.exit(1);
      }
    }
View Full Code Here

Examples of net.pms.util.TaskRunner.shutdown()

        public void run() {
          c.incr();
        }
      });
    }
    tk.shutdown();
    tk.awaitTermination(1, TimeUnit.DAYS);
    assertEquals("all 3 task is executed", 3, c.x);
  }

  @Test
View Full Code Here

Examples of net.rubyeye.xmemcached.MemcachedClient.shutdown()

    // confirm
    Assert.assertNull(newClient.get("queue1/close"));
    // null
    Assert.assertNull(newClient.get("queue1"));

    newClient.shutdown();
  }

  public void testPerformance() throws Exception {
    long start = System.currentTimeMillis();
    for (int i = 0; i < 10000; i++) {
View Full Code Here

Examples of net.rubyeye.xmemcached.XMemcachedClient.shutdown()

  }

  public void testCreateClientWithEmptyServers() throws Exception {
    MemcachedClient client = new XMemcachedClient();
    assertFalse(client.isShutdown());
    client.shutdown();
    assertTrue(client.isShutdown());

    MemcachedClientBuilder builder = new XMemcachedClientBuilder();
    client = builder.build();
    assertFalse(client.isShutdown());
View Full Code Here

Examples of net.sf.agentopia.platform.IAgentopiaAgent.shutDown()

                        try {
                            transferQueue.remove(0);
                            writeInt(AgentopiaConstants.MESSAGE_AGENT_COMING);
                            transmitter.transferAgentToStream(agent, dataOut);
                            Logger.getLogger().info("Agent \"" + agent + "\" left the system (" + marketPlace.getHomeId() + ") per Sustainer.");
                            agent.shutDown();
                        }
                        catch (IOException exc) {
                            // Agent sending failed... But no problem here.
                            Logger.getLogger().info("Agent \"" + agent + "\" failed to leave to \"" + targetId + "\"... and died.");
                        }
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.