Examples of stop()


Examples of cz.mp.util.Stopwatch.stop()

                Stopwatch startupTime = new Stopwatch();
                startupTime.start();

                MainFrame.getInstance().setVisible(true);

                startupTime.stop();

                logger.config("startup in  " +
                        startupTime.getTimeSec() + " s");
               
                if (splash != null && splash.isVisible()) {
View Full Code Here

Examples of dclong.util.Timer.stop()

public class TestTimer {
  public static void main(String[] args) throws InterruptedException{
    Timer timer = new Timer();
    timer.start();
    Thread.sleep(1000);
    timer.stop();
    timer.printSeconds("sleeping");
  }
}
View Full Code Here

Examples of de.codolith.Cinema.CinemaPlayer.stop()

  @Override
  public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
    if(args.length == 1){
      if(cinema.containsPlayer(args[0])){
        CinemaPlayer cp = cinema.getPlayer(args[0]);
        cp.stop();
        cinema.removePlayer(cp);
        sender.sendMessage("Player \""+args[0]+"\" stopped");
        return true;
      }else{
        sender.sendMessage("Player \""+args[0]+"\" doesn't exist");
View Full Code Here

Examples of de.dfki.owlsmx.gui.util.tasks.AddServicesToMatchmakerTask.stop()

                e.printStackTrace();
            }
            System.out.println(addServicesTask.getMessage());
            if(addServicesTask.isDone()){
                // Stop the thread
                addServicesTask.stop();
                System.out.println(". done :)");
                wait = false;
            }
        }
        // Now the queries can be started
View Full Code Here

Examples of de.dfki.owlsmx.gui.util.tasks.RunQueriesTask.stop()

                e.printStackTrace();
            }
            System.out.println(runQueriesTask.getMessage());
            if(runQueriesTask.isDone()){
                // Stop the thread
                runQueriesTask.stop();
                System.out.println(". done :)");
                wait = false;
            }
        }
    }
View Full Code Here

Examples of de.flapdoodle.embed.mongo.MongodExecutable.stop()

        base.evaluate();

        mongoClient.close();
        _mongod.stop();
        _mongodExe.stop();
      }
    };
  }

}
View Full Code Here

Examples of de.flapdoodle.embed.mongo.MongodProcess.stop()

       
        MongodProcess mongod = (MongodProcess)getPluginContext().get(StartEmbeddedMongoMojo
            .MONGOD_CONTEXT_PROPERTY_NAME);

        if (mongod != null) {
            mongod.stop();
        } else {
            throw new MojoFailureException("No mongod process found, it appears embedmongo:start was not called");
        }
    }
View Full Code Here

Examples of de.fu_berlin.inf.dpp.project.internal.SarosSession.stop()

            this.transmitter.sendLeaveMessage(sarosSession);
            log.debug("Leave message sent."); //$NON-NLS-1$
            if (!sarosSession.isStopped()) {
                try {
                    sarosSession.stop();
                } catch (RuntimeException e) {
                    log.error("Error stopping project: ", e); //$NON-NLS-1$
                }
            }
            sarosSession.dispose();
View Full Code Here

Examples of de.fu_berlin.inf.dpp.util.StopWatch.stop()

                    if (response != null)
                        break;
                    progress.worked(1);
                }

                result.transferTime = watch.stop().getTime();

                if (response == null)
                    throw new XMPPException("Timeout after 15s");

                if (response.errorMessage != null)
View Full Code Here

Examples of de.jetwick.util.StopWatch.stop()

                    if (user != null) {
                        StopWatch sw = new StopWatch().start();
                        update(getTweetSearch().updateSavedSearches(user.getSavedSearches()));
                        if (target != null)
                            target.addComponent(ssPanel);
                        logger.info("Updated saved search counts for " + user.getScreenName() + " " + sw.stop().getSeconds());
                    }
                } catch (Exception ex) {
                    logger.error("Error while searching in savedSearches", ex);
                }
            }
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.