Examples of LongProperty


Examples of javafx.beans.property.LongProperty

    public static void main(String[] args) {
        int n = 40;

        FibTest eagerTest = new FibTest(n);
        LongProperty eagerResult = new SimpleLongProperty();
        eagerTest.setupFor(eagerResult);

        FibTest lazyTest = new FibTest(n);
        org.reactfx.inhibeans.property.SimpleLongProperty lazyResult =
                new org.reactfx.inhibeans.property.SimpleLongProperty();
        lazyTest.setupFor(lazyResult);

        long t1 = System.currentTimeMillis();
        eagerTest.run();
        long t2 = System.currentTimeMillis();
        double eagerTime = (t2-t1)/1000.0;

        t1 = System.currentTimeMillis();
        Guard g = lazyResult.block();
        lazyTest.run();
        g.close();
        t2 = System.currentTimeMillis();
        double lazyTime = (t2-t1)/1000.0;

        System.out.println("EAGER TEST:");
        System.out.println("    fib_" + n + " = " + eagerResult.get());
        System.out.println("    result invalidations: " + eagerTest.invalidationCount);
        System.out.println("    duration: " + eagerTime + " seconds");
        System.out.println();
        System.out.println("LAZY TEST:");
        System.out.println("    fib_" + n + " = " + lazyResult.get());
View Full Code Here

Examples of org.apache.jmeter.testelement.property.LongProperty

    /**
     * set the expiry time for the cookie
     * @param expires - expiry time in seconds since the Java epoch
     */
    public synchronized void setExpires(long expires) {
        setProperty(new LongProperty(EXPIRES, expires));
    }
View Full Code Here

Examples of org.apache.jmeter.testelement.property.LongProperty

     *
     * @param val
     *            the new lowest possible parameter value
     */
    public void setLowerBound(long val) {
        setProperty(new LongProperty(LOWER_BOUND, val));
    }
View Full Code Here

Examples of org.apache.jmeter.testelement.property.LongProperty

     *
     * @param val
     *            the new highest possible parameter value
     */
    public void setUpperBound(long val) {
        setProperty(new LongProperty(UPPER_BOUND, val));
    }
View Full Code Here

Examples of org.apache.jmeter.testelement.property.LongProperty

     *
     * @param incr
     *            the new increment for the parameter value
     */
    public void setIncrement(long incr) {
        setProperty(new LongProperty(INCREMENT, incr));
    }
View Full Code Here

Examples of org.apache.jmeter.testelement.property.LongProperty

    public RunTime() {
    }

    public void setRuntime(long seconds) {
        setProperty(new LongProperty(SECONDS, seconds));
    }
View Full Code Here

Examples of org.apache.jmeter.testelement.property.LongProperty

        throw new IllegalArgumentException(
            JMeterUtils.getResString("argument_must_not_be_negative"));
      }
      if (duration == Long.MAX_VALUE)
      {
         setProperty(new LongProperty(DURATION_KEY,0));
      }
      else
      {
         setProperty(new LongProperty(DURATION_KEY,duration));
      }
   }
View Full Code Here

Examples of org.apache.jmeter.testelement.property.LongProperty

  public void setErrorThreshold(long inErrorThreshold) {
    if (inErrorThreshold < 0L) {
      throw new IllegalArgumentException(JMeterUtils.getResString("argument_must_not_be_negative"));
    }
    if (inErrorThreshold == Long.MAX_VALUE) {
      setProperty(new LongProperty(ERROR_THRESHOLD_KEY, 0));
    } else {
      setProperty(new LongProperty(ERROR_THRESHOLD_KEY, inErrorThreshold));
    }
  }
View Full Code Here

Examples of org.apache.jmeter.testelement.property.LongProperty

  public void setWarningThreshold(long inWarningThreshold) {
    if (inWarningThreshold < 0L) {
      throw new IllegalArgumentException(JMeterUtils.getResString("argument_must_not_be_negative"));
    }
    if (inWarningThreshold == Long.MAX_VALUE) {
      setProperty(new LongProperty(WARNING_THRESHOLD_KEY, 0));
    } else {
      setProperty(new LongProperty(WARNING_THRESHOLD_KEY, inWarningThreshold));
    }
  }
View Full Code Here

Examples of org.apache.jmeter.testelement.property.LongProperty

  /**
   * Enables html validation mode
   */
  public void setHTML() {
    setProperty(new LongProperty(FORMAT_KEY, 0));
  }
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.