Examples of shutdown()


Examples of org.springsource.loaded.agent.FileSystemWatcher.shutdown()

    pause(1000);
    create(dir, "abc.txt");
    pause(1100);
    create(dir, "abcd.txt");
    pause(1100);
    watcher.shutdown();
    Assert.assertTrue(listener.changesDetected.contains("abc.txt"));
    Assert.assertTrue(listener.changesDetected.contains("abcd.txt"));
  }

  @Test
View Full Code Here

Examples of org.syncany.database.dao.ApplicationSqlDao.shutdown()

    applicationDao.writeKnownRemoteDatabases(expectedKnownDatabases);

    // Run & Test
    assertTrue(new File(testConfig.getDatabaseFile() + ".lck").exists());
    applicationDao.shutdown();
    assertFalse(new File(testConfig.getDatabaseFile() + ".lck").exists());

    // Tear down
    databaseConnection.close();
    TestConfigUtil.deleteTestLocalConfigAndData(testConfig);
View Full Code Here

Examples of org.teiid.dqp.internal.process.ThreadReuseExecutor.shutdown()

       
        for(int i=0; i<WORK_ITEMS; i++) {
            pool.execute(new FakeWorkItem(SINGLE_WAIT));
        }
       
        pool.shutdown();       
        pool.awaitTermination(1000, TimeUnit.MILLISECONDS);
        assertTrue(pool.isTerminated());
        WorkerPoolStatisticsMetadata stats = pool.getStats();
        assertEquals(10, stats.getTotalCompleted());
        assertEquals("Expected threads to be maxed out", MAX_THREADS, stats.getHighestActiveThreads()); //$NON-NLS-1$
View Full Code Here

Examples of org.terasology.engine.GameEngine.shutdown()

    @Override
    public void onStateChange() {
        GameEngine engine = CoreRegistry.get(GameEngine.class);
        GameState state = engine.getState();
        if (state instanceof StateMainMenu) {
            engine.shutdown();
        }
    }

}
View Full Code Here

Examples of org.terasology.engine.subsystem.EngineSubsystem.shutdown()

        try {
            Iterator<EngineSubsystem> iter = subsystems.descendingIterator();
            while (iter.hasNext()) {
                EngineSubsystem subsystem = iter.next();
                subsystem.shutdown(config);
            }

            config.save();
            if (currentState != null) {
                currentState.dispose();
View Full Code Here

Examples of org.terasology.network.internal.NetworkSystemImpl.shutdown()

        client.join("localhost", 7777);

        Thread.sleep(500);

        server.shutdown();
        client.shutdown();
    }


    @Test
    public void entityNetworkIdChangedOnServerStart() throws HostingFailedException {
View Full Code Here

Examples of org.testng.internal.thread.IExecutor.shutdown()

//    IThreadFactory factory= ThreadUtil.createFactory();
    IExecutor exec= ThreadUtil.createExecutor(1, tm.getMethod().getName());
 
    InvokeMethodRunnable imr = new InvokeMethodRunnable(tm, instance, parameterValues);
    IFutureResult future= exec.submitRunnable(imr);
    exec.shutdown();
    boolean finished= exec.awaitTermination(tm.getTimeOut());
 
    if(!finished) {
      exec.stopNow();
      testResult.setThrowable(new ThreadTimeoutException("Method "
View Full Code Here

Examples of org.testng.remote.strprotocol.MessageHub.shutDown()

    catch(Throwable cause) {
      cause.printStackTrace(System.err);
    }
    finally {
//      System.out.println("RemoteTestNG finishing: " + (getEnd() - getStart()) + " ms");
      msh.shutDown();
      if (! m_debug && ! m_dontExit) {
        System.exit(0);
      }
    }
  }
View Full Code Here

Examples of org.testng.remote.strprotocol.StringMessageSenderHelper.shutDown()

    }
    catch(Throwable cause) {
      cause.printStackTrace(System.err);
    }
    finally {
      msh.shutDown();
      System.exit(0);
    }
  }

  /**
 
View Full Code Here

Examples of org.voltcore.zk.BabySitter.shutdown()

            m_removedPartitionsAtPromotionTime.add(pid);
            tmLog.info("Partition " + pid + " was cleaned up during LeaderAppointer promotion and should be skipped");
        }
        BabySitter sitter = m_partitionWatchers.remove(pid);
        if (sitter != null) {
            sitter.shutdown();
        }
        m_callbacks.remove(pid);
        try {
            ZKUtil.asyncDeleteRecursively(m_zk, ZKUtil.joinZKPath(VoltZK.iv2masters, String.valueOf(pid)));
            ZKUtil.asyncDeleteRecursively(m_zk, ZKUtil.joinZKPath(VoltZK.iv2appointees, String.valueOf(pid)));
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.