Examples of run()


Examples of com.seyren.core.service.schedule.CheckRunner.run()

        for (final Check check : checks) {
            Iterator<Metric> metricByName = Iterables.filter(metrics, new FindByName(check.getName())).iterator();
            if (metricByName.hasNext()) {
                Metric found = metricByName.next();
                CheckRunner runner = checkRunnerFactory.create(check, found.getValue());
                runner.run();
            }
        }
    }

    private static class FindByName implements Predicate<Metric> {
View Full Code Here

Examples of com.sk89q.craftbook.access.Action.run()

            }
        }

        for (Action action : actionQueue) {
            try {
                action.run();
            } catch (Throwable t) {
                t.printStackTrace();
            }
        }
    }
View Full Code Here

Examples of com.sk89q.skmcl.install.ZipExtract.run()

                Extract extract = library.getExtract();
                if (extract != null) {
                    ZipExtract zipExtract = new ZipExtract(
                            new FileResource(path), extractDir);
                    zipExtract.setExclude(extract.getExclude());
                    zipExtract.run();
                } else {
                    builder.classPath(path);
                }
            }
        }
View Full Code Here

Examples of com.skcraft.launcher.install.ZipExtract.run()

            if (path.exists()) {
                Library.Extract extract = library.getExtract();
                if (extract != null) {
                    ZipExtract zipExtract = new ZipExtract(Files.asByteSource(path), extractDir);
                    zipExtract.setExclude(extract.getExclude());
                    zipExtract.run();
                } else {
                    builder.classPath(path);
                }
            } else {
                instance.setInstalled(false);
View Full Code Here

Examples of com.sketchingbits.mlearning.clustering.KMeans.run()

      {1.0, 1.0, 0.0, 1.0, 1.0, 0.0},
      {1.0, 1.0, 0.0, 1.0, 1.0, 0.0},
    };
   
    KMeans kMeansAnalysis = new KMeans(dataset);
    kMeansAnalysis.run();
    //Assert.
   
  }

}
View Full Code Here

Examples of com.sleepycat.bdb.TransactionRunner.run()

        final TransactionRunner runner = new TransactionRunner(env);

        assertNull(currentTxn.getTxn());

        runner.run(new TransactionWorker() {
            public void doWork() throws Exception {
                final DbTxn txn1 = currentTxn.getTxn();
                assertNotNull(txn1);
                assertNull(map.put(ONE, ONE));
                assertEquals(ONE, map.get(ONE));
View Full Code Here

Examples of com.sleepycat.collections.TransactionRunner.run()

        final CurrentTransaction currentTxn =
            CurrentTransaction.getInstance(env);

        TransactionRunner runner = new TransactionRunner(env);
        try {
            runner.run(new TransactionWorker() {
                public void doWork()
                    throws Exception {

                    insertUntilOutOfMemory(currentTxn.getTransaction());
                }
View Full Code Here

Examples of com.sleepycat.je.rep.impl.TextProtocol.MessageExchange.run()

            /* Send out a NodeState request message for this electable node. */
            MessageExchange me = stateProtocol.new MessageExchange
                (repNode.getSocketAddress(),
                 NodeStateService.SERVICE_NAME,
                 stateProtocol.new NodeStateRequest(repNode.getName()));
            me.run();
            ResponseMessage resp = me.getResponseMessage();
            if (resp instanceof NodeStateResponse) {
                NodeStateResponse response = (NodeStateResponse) resp;
                notifyJoin(new JoinGroupEvent(response.getNodeName(),
                                              response.getMasterName(),
View Full Code Here

Examples of com.socrata.datasync.job.IntegrationJob.run()

        // Uncommend to do replace via FTP (SmartUpdate)
        //jobToRun.setPublishViaFTP(true);
        //jobToRun.setPathToFTPControlFile("control.json");

        JobStatus status = jobToRun.run();
        if(status.isError()) {
            System.err.println("Job failed: " + status.getMessage());
        } else {
            System.out.println("Job ran successfully!");
        }
View Full Code Here

Examples of com.socrata.datasync.job.Job.run()

                job = new MetadataJob(jobFileToRun);
              }
              else {
                job = new IntegrationJob(jobFileToRun);
              }
                JobStatus status = job.run();
                if(status.isError()) {
                    System.err.print("Job completed with errors: ");
                    System.err.println(status.getMessage());
                    System.exit(1);
                } else {
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.