Lines Matching defs:counter
47 private static Counter counter = new Counter();
56 log = new ReliableLog(".", new TestLogHandler(counter), false);
77 counter.increment();
78 log.update(counter);
92 ((counter.value() + 1 == expectedCount) ? "" : "not ") +
94 counter.increment();
95 log.update(counter);
110 counter = (Counter) log.recover();
111 System.err.println("recovered counter value: " + counter.value());
112 if (counter.value() != expectedCount) {
113 throw new RuntimeException("unexpected counter value " +
114 counter.value());