Examples of checkingPeriod()


Examples of com.arjuna.ats.arjuna.coordinator.TransactionReaper.checkingPeriod()

    info.numberOfHeuristics = com.arjuna.ats.arjuna.coordinator.TxStats.numberOfHeuristics();

    TransactionReaper reaper = TransactionReaper.transactionReaper();

    if (reaper.checkingPeriod() == Long.MAX_VALUE)
      info.reaperTimeout = 0;
    else
      info.reaperTimeout = (int) reaper.checkingPeriod();

    info.defaultTimeout = TxControl.getDefaultTimeout();
View Full Code Here

Examples of com.arjuna.ats.arjuna.coordinator.TransactionReaper.checkingPeriod()

    TransactionReaper reaper = TransactionReaper.transactionReaper();

    if (reaper.checkingPeriod() == Long.MAX_VALUE)
      info.reaperTimeout = 0;
    else
      info.reaperTimeout = (int) reaper.checkingPeriod();

    info.defaultTimeout = TxControl.getDefaultTimeout();

    return info;
  }
View Full Code Here

Examples of com.arjuna.ats.arjuna.coordinator.TransactionReaper.checkingPeriod()

    // test set+readback of interval
    TransactionReaper.create(100);
    TransactionReaper reaper = TransactionReaper.transactionReaper();
        // set value is ignored in default DYNAMIC mode, it uses max long instead.
        assertEquals(Long.MAX_VALUE, reaper.checkingPeriod());


    Reapable reapable = new MockReapable(new Uid());
    Reapable reapable2 = new MockReapable(new Uid());
    Reapable reapable3 = new MockReapable(new Uid());
View Full Code Here

Examples of com.arjuna.ats.arjuna.coordinator.TransactionReaper.checkingPeriod()

    TransactionReaper reaper = TransactionReaper.transactionReaper();

    if (reaper == null)
      info.reaperTimeout = 0;
    else
      info.reaperTimeout = (int) reaper.checkingPeriod();

    info.defaultTimeout = TxControl.getDefaultTimeout();

    return info;
  }
View Full Code Here

Examples of com.arjuna.ats.arjuna.coordinator.TransactionReaper.checkingPeriod()

    info.numberOfHeuristics = (int)com.arjuna.ats.arjuna.coordinator.TxStats.getInstance().getNumberOfHeuristics();

    TransactionReaper reaper = TransactionReaper.transactionReaper();

    if (reaper.checkingPeriod() == Long.MAX_VALUE)
      info.reaperTimeout = 0;
    else
      info.reaperTimeout = (int) reaper.checkingPeriod();

    info.defaultTimeout = TxControl.getDefaultTimeout();
View Full Code Here

Examples of com.arjuna.ats.arjuna.coordinator.TransactionReaper.checkingPeriod()

    TransactionReaper reaper = TransactionReaper.transactionReaper();

    if (reaper.checkingPeriod() == Long.MAX_VALUE)
      info.reaperTimeout = 0;
    else
      info.reaperTimeout = (int) reaper.checkingPeriod();

    info.defaultTimeout = TxControl.getDefaultTimeout();

    return info;
  }
View Full Code Here

Examples of com.arjuna.ats.arjuna.coordinator.TransactionReaper.checkingPeriod()

    TransactionReaper reaper = TransactionReaper.transactionReaper();

    if (reaper == null)
      info.reaperTimeout = 0;
    else
      info.reaperTimeout = (int) reaper.checkingPeriod();

    info.defaultTimeout = TransactionFactoryImple._defaultTimeout;

    return info;
  }
View Full Code Here

Examples of com.arjuna.ats.arjuna.coordinator.TransactionReaper.checkingPeriod()

  public void testReaper() throws Exception {

    // test set+readback of interval
    TransactionReaper.create(100);
    TransactionReaper reaper = TransactionReaper.transactionReaper();
    assertEquals(100, reaper.checkingPeriod());


    Reapable reapable = new MockReapable(new Uid());
    Reapable reapable2 = new MockReapable(new Uid());
    Reapable reapable3 = new MockReapable(new Uid());
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.