com.sleepycat.je
Class PreloadStats

java.lang.Object
  extended by com.sleepycat.je.PreloadStats
All Implemented Interfaces:
Serializable

public class PreloadStats
extends Object
implements Serializable

Statistics returned from Database.preload or Environment.preload(com.sleepycat.je.Database[], com.sleepycat.je.PreloadConfig).

See Also:
Serialized Form

Constructor Summary
PreloadStats()
           
PreloadStats(int nINsLoaded, int nBINsLoaded, int nLNsLoaded, int nDINsLoaded, int nDBINsLoaded, int nDupCountLNsLoaded, int nCountMemoryExceeded, PreloadStatus status)
           
 
Method Summary
 void addLNsLoaded(int newLNs)
           
 int getNBINsLoaded()
          Returns the number of BINs that were loaded into the cache during the preload() operation.
 int getNCountMemoryExceeded()
          Returns the count of the number of times that the internal memory budget specified by PreloadConfig.setInternalMemoryLimit() was exceeded.
 int getNDBINsLoaded()
          Deprecated. returns zero for data written using JE 5.0 and later, but may return non-zero values when reading older data.
 int getNDINsLoaded()
          Deprecated. returns zero for data written using JE 5.0 and later, but may return non-zero values when reading older data.
 int getNDupCountLNsLoaded()
          Deprecated. returns zero for data written using JE 5.0 and later, but may return non-zero values when reading older data.
 int getNINsLoaded()
          Returns the number of INs that were loaded into the cache during the preload() operation.
 int getNLNsLoaded()
          Returns the number of LNs that were loaded into the cache during the preload() operation.
 PreloadStatus getStatus()
          Returns the PreloadStatus value for the preload() operation.
 void incBINsLoaded()
           
 void incDBINsLoaded()
           
 void incDINsLoaded()
           
 void incDupCountLNsLoaded()
           
 void incINsLoaded()
           
 void incLNsLoaded()
           
 void incMemoryExceeded()
           
 void setStatus(PreloadStatus status)
           
 String toString()
          Returns a String representation of the stats in the form of <stat>=<value>
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PreloadStats

PreloadStats(int nINsLoaded,
             int nBINsLoaded,
             int nLNsLoaded,
             int nDINsLoaded,
             int nDBINsLoaded,
             int nDupCountLNsLoaded,
             int nCountMemoryExceeded,
             PreloadStatus status)

PreloadStats

public PreloadStats()
Method Detail

getNINsLoaded

public int getNINsLoaded()
Returns the number of INs that were loaded into the cache during the preload() operation.


getNBINsLoaded

public int getNBINsLoaded()
Returns the number of BINs that were loaded into the cache during the preload() operation.


getNLNsLoaded

public int getNLNsLoaded()
Returns the number of LNs that were loaded into the cache during the preload() operation.


getNDINsLoaded

public int getNDINsLoaded()
Deprecated. returns zero for data written using JE 5.0 and later, but may return non-zero values when reading older data.


getNDBINsLoaded

public int getNDBINsLoaded()
Deprecated. returns zero for data written using JE 5.0 and later, but may return non-zero values when reading older data.


getNDupCountLNsLoaded

public int getNDupCountLNsLoaded()
Deprecated. returns zero for data written using JE 5.0 and later, but may return non-zero values when reading older data.


getNCountMemoryExceeded

public int getNCountMemoryExceeded()
Returns the count of the number of times that the internal memory budget specified by PreloadConfig.setInternalMemoryLimit() was exceeded.


getStatus

public PreloadStatus getStatus()
Returns the PreloadStatus value for the preload() operation.


incINsLoaded

public void incINsLoaded()

incBINsLoaded

public void incBINsLoaded()

incLNsLoaded

public void incLNsLoaded()

addLNsLoaded

public void addLNsLoaded(int newLNs)

incDINsLoaded

public void incDINsLoaded()

incDBINsLoaded

public void incDBINsLoaded()

incDupCountLNsLoaded

public void incDupCountLNsLoaded()

incMemoryExceeded

public void incMemoryExceeded()

setStatus

public void setStatus(PreloadStatus status)

toString

public String toString()
Returns a String representation of the stats in the form of <stat>=<value>

Overrides:
toString in class Object


Copyright (c) 2004-2012 Oracle. All rights reserved.