|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.dbi.StartupTracker
public class StartupTracker
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 |
---|
public StartupTracker(EnvironmentImpl envImpl)
Method Detail |
---|
public void setRecoveryInfo(RecoveryInfo rInfo)
public void start(StartupTracker.Phase phase)
public void stop(StartupTracker.Phase phase)
public void setProgress(RecoveryProgress progress)
public StartupTracker.Counter getCounter(StartupTracker.Phase phase)
public void setStats(StartupTracker.Phase phase, StatGroup sg)
public void displayStats(PrintStream stream, StartupTracker.Phase root)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |