fabric.lang
Class DefaultStatistics

java.lang.Object
  extended by fabric.lang.DefaultStatistics
All Implemented Interfaces:
Statistics

public class DefaultStatistics
extends java.lang.Object
implements Statistics


Field Summary
static DefaultStatistics instance
           
 
Constructor Summary
DefaultStatistics()
           
 
Method Summary
 void commitRead()
          Called whenever a transaction that read the object is committed
 void commitWrote()
          Called whenever a transaction that wrote the object is committed
 int generatePromise()
          Determine the duration of a promise to issue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final DefaultStatistics instance
Constructor Detail

DefaultStatistics

public DefaultStatistics()
Method Detail

commitRead

public void commitRead()
Description copied from interface: Statistics
Called whenever a transaction that read the object is committed

Specified by:
commitRead in interface Statistics

commitWrote

public void commitWrote()
Description copied from interface: Statistics
Called whenever a transaction that wrote the object is committed

Specified by:
commitWrote in interface Statistics

generatePromise

public int generatePromise()
Description copied from interface: Statistics
Determine the duration of a promise to issue. While a promise is outstanding, the store will not permit updates to the object to commit. This allows read-only transactions to proceed without contacting the store.

Specified by:
generatePromise in interface Statistics
Returns:
the duration, in milliseconds, of the promise.