Examples of SystemClock


Examples of org.apache.hadoop.yarn.util.SystemClock

  public MRAppMaster(ApplicationAttemptId applicationAttemptId,
      ContainerId containerId, String nmHost, int nmPort, int nmHttpPort,
      long appSubmitTime, int maxAppAttempts) {
    this(applicationAttemptId, containerId, nmHost, nmPort, nmHttpPort,
        new SystemClock(), appSubmitTime, maxAppAttempts);
  }
View Full Code Here

Examples of org.apache.logging.log4j.core.async.SystemClock

public class SystemClockTest {

    @Test
    public void testLessThan2Millis() {
        long millis1 = new SystemClock().currentTimeMillis();
        long sysMillis = System.currentTimeMillis();

        long diff = sysMillis - millis1;

        assertTrue("diff too large: " + diff, diff <= 1);
View Full Code Here

Examples of org.apache.logging.log4j.core.helpers.SystemClock

public class SystemClockTest {

    @Test
    public void testLessThan2Millis() {
        final long millis1 = new SystemClock().currentTimeMillis();
        final long sysMillis = System.currentTimeMillis();

        final long diff = sysMillis - millis1;

        assertTrue("diff too large: " + diff, diff <= 1);
View Full Code Here

Examples of org.openqa.selenium.support.ui.SystemClock

  /**
   * Callback with a fresh clock and a the system's default thread sleeper.
   */
  public CallbackWait() {
    this(new SystemClock(), Sleeper.SYSTEM_SLEEPER);
  }
View Full Code Here

Examples of sw_digitalworks.Model.SystemClock

    /**
     * SystemClock létrehozása a clk parancs hatására ezzel a függvénnyel történik
     */
    private void createSystemClock() {
        if (!param1.equals("") && param2.equals("")) {
            SystemClock clk = SystemClock.getInstance();
            //Main.controller.getDisplayView().addComponentView(new SystemClockView(getPosX(param1), getPosY(param1), clk));


            if (clk.getTryCreatingCount() > 1) {
                System.out.println("SystemClock already exists.");
                output += "SystemClock already exists.\n";


            } else {
                System.out.println(clk.getName() + " CREATED.");
                Main.controller.getDisplayView().addComponentView(new SystemClockView(getPosX(param1), getPosY(param1), clk));
                output += clk.getName() + " CREATED.\n";
                //Prototype.PrintStateAfterUpdate(clk);


            }
        } else {
View Full Code Here

Examples of uk.org.woodcraft.bookings.utils.SystemClock

  public String upgradeData()
  {
    SecurityModel.checkIsAdminUser();
   
    upgradeData(new SystemClock());
    return SUCCESS;
  }
View Full Code Here

Examples of uk.org.woodcraft.bookings.utils.SystemClock

  public static final Booking create(Unit unit, Event event, Clock clock) {
    return create(null, unit, event, clock);
  }
 
  public static final Booking create(Unit unit, Event event) {
    return create(unit, event, new SystemClock());
  }
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.