GridStatus gridStatus = grid.getGridStatus(false); int servers = gridStatus.getNumberOfServers(); while (servers > 0) { log.info("" + servers + " servers."); Util.sleep(1000); gridStatus = grid.getGridStatus(false); servers = gridStatus.getNumberOfServers(); }
    public void stop()    {        log.info("stop() : ENTER");        for (int i = 0; i < jvms.length; i++)        {            JavaProcess jvm = jvms[i];            jvm.kill();        }        log.info("stop() : LEAVE");    }