com.sleepycat.je.dbi
Class StartupTracker

java.lang.Object
  extended by com.sleepycat.je.dbi.StartupTracker

public class StartupTracker
extends Object

Store and calculate elapsed time, counts, and other statistics about environment open. No synchronization is used, which generally works because with the exception of replication, environment startup is currently a serial, single threaded event. Replicated environments must be sure to record startup times only at thread safe points.


Nested Class Summary
static class StartupTracker.Counter
          Record number of log entries processed during a given recovery phase.
static class StartupTracker.Phase
           
 
Constructor Summary
StartupTracker(EnvironmentImpl envImpl)
           
 
Method Summary
 void displayStats(PrintStream stream, StartupTracker.Phase root)
          Display all information that has been tracked for this family of phases.
 StartupTracker.Counter getCounter(StartupTracker.Phase phase)
          Return the counter for this phase so we can update one of the detail values stored there.
 void setProgress(RecoveryProgress progress)
          Record new progress states for any registered environment progress listener.
 void setRecoveryInfo(RecoveryInfo rInfo)
           
 void setStats(StartupTracker.Phase phase, StatGroup sg)
          Save stats for a given phase.
 void start(StartupTracker.Phase phase)
          Note that a particular phase is starting.
 void stop(StartupTracker.Phase phase)
          Note that a particular phase is ending.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartupTracker

public StartupTracker(EnvironmentImpl envImpl)
Method Detail

setRecoveryInfo

public void setRecoveryInfo(RecoveryInfo rInfo)

start

public void start(StartupTracker.Phase phase)
Note that a particular phase is starting.


stop

public void stop(StartupTracker.Phase phase)
Note that a particular phase is ending.


setProgress

public void setProgress(RecoveryProgress progress)
Record new progress states for any registered environment progress listener.


getCounter

public StartupTracker.Counter getCounter(StartupTracker.Phase phase)
Return the counter for this phase so we can update one of the detail values stored there.


setStats

public void setStats(StartupTracker.Phase phase,
                     StatGroup sg)
Save stats for a given phase.


displayStats

public void displayStats(PrintStream stream,
                         StartupTracker.Phase root)
Display all information that has been tracked for this family of phases.



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