Examples of tick()


Examples of org.graylog2.plugin.InstantMillisProvider.tick()

        result = tenMinRotation.shouldRotate("ignored");
        assertFalse(result.shouldRotate(), "Did not cross rotation period");

        // advance time to 02:00:00
        clock.tick(minutes(4).withSeconds(59));

        result = tenMinRotation.shouldRotate("ignored");
        assertTrue(result.shouldRotate(), "Crossed rotation period");

        // advance time multiple rotation periods into the future
View Full Code Here

Examples of org.graylog2.plugin.InstantMillisProvider.tick()

        result = tenMinRotation.shouldRotate("ignored");
        assertTrue(result.shouldRotate(), "Crossed rotation period");

        // advance time multiple rotation periods into the future
        // to time 02:51:00
        clock.tick(minutes(51));

        result = tenMinRotation.shouldRotate("ignored");
        assertTrue(result.shouldRotate(), "Crossed multiple rotation periods");

        // move time to 2:52:00
View Full Code Here

Examples of org.graylog2.plugin.InstantMillisProvider.tick()

        result = tenMinRotation.shouldRotate("ignored");
        assertTrue(result.shouldRotate(), "Crossed multiple rotation periods");

        // move time to 2:52:00
        // this should not cycle again, because next valid rotation time is 3:00:00
        clock.tick(minutes(1));
        result = tenMinRotation.shouldRotate("ignored");
        assertFalse(result.shouldRotate(), "Should not cycle when we missed multiple periods");
    }

}
View Full Code Here

Examples of org.graylog2.plugin.InstantMillisProvider.tick()

            result = aggregator.addChunk(chunk);
            assertTrue(result.isValid());
            assertNull(result.getMessage(), "chunks not complete");
        }
        // move clock forward enough to evict all of the chunks
        clock.tick(Period.seconds(10));

        evictionTask.run();

        final CodecAggregator.Result result = aggregator.addChunk(chunks[0]);
View Full Code Here

Examples of org.jasig.portal.test.ThreadGroupRunner.tick()

                    @Override
                    protected void callWithoutResult() {
                        try {
                            final String mutexName = "testConcurrentCreation";
                           
                            threadGroupRunner.tick(1);
                            ClusterMutex mutex = clusterLockDao.getClusterMutex(mutexName);
                            assertNotNull(mutex);
                        }
                        catch (InterruptedException e) {
                            throw new RuntimeException(e);
View Full Code Here

Examples of org.jboss.as.console.client.widgets.progress.ProgressElement.tick()

        final long s0 = System.currentTimeMillis();

        // TOD: provide proper API
        final ProgressElement progressElement = Footer.PROGRESS_ELEMENT;
        progressElement.reset();
        progressElement.tick();

        dispatcher.execute(new DMRAction(operation), new SimpleCallback<DMRResponse>() {

            @Override
            public void onFailure(Throwable caught) {
View Full Code Here

Examples of org.jpos.util.TPS.tick()

        System.out.println ("\n--- pack/unpack performance test ---\n");
        Profiler prof = new Profiler();
        TPS tps = new TPS(true);
        for (int i=0; i<COUNT; i++) {
            pack (baseMsg, p);
            tps.tick();
        }
        prof.checkPoint ("PACK " + tps.toString());

        byte[] buf = baseMsg.pack();
        tps = new TPS(true);
View Full Code Here

Examples of org.linkedin.util.clock.Chronos.tick()

    if(_process == null)
      throw new IllegalStateException("you must call start first");

    Chronos c = new Chronos();
    _out.join(timeout);
    timeout -= c.tick();
    if (timeout <= 0)
      throw new TimeoutException("Wait timed out");
    _err.join(timeout);
    timeout -= c.tick();
    if (timeout <= 0)
View Full Code Here

Examples of org.rsbot.script.internal.BreakHandler.tick()

                } catch (final ThreadDeath td) {
                  break;
                }
                continue;
              } else {
                breakHandler.tick();
              }
            }
            if (checkForRandoms()) {
              continue;
            }
View Full Code Here

Examples of org.terasology.logic.behavior.tree.Interpreter.tick()

        Interpreter interpreter = new Interpreter(null);
        DebugNode debugNode = new DebugNode(0);
        RepeatNode repeatNode = new RepeatNode(debugNode);
        interpreter.start(repeatNode);

        Assert.assertTrue(interpreter.tick(0) > 0);
        DebugNode.DebugTask first = debugNode.lastTask2;
        Assert.assertTrue(first.updateCalled);
        Assert.assertTrue(first.initializeCalled);
        Assert.assertTrue(first.terminateCalled);
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.