Package | Description |
---|---|
org.apache.hadoop.hdfs.server.namenode.startupprogress |
This package provides a mechanism for tracking
NameNode startup
progress. |
Modifier and Type | Method and Description |
---|---|
Iterable<Step> |
StartupProgressView.getSteps(Phase phase)
Returns all steps within a phase.
|
Modifier and Type | Method and Description |
---|---|
void |
StartupProgress.beginStep(Phase phase,
Step step)
Begins execution of the specified step within the specified phase.
|
int |
Step.compareTo(Step other) |
void |
StartupProgress.endStep(Phase phase,
Step step)
Ends execution of the specified step within the specified phase.
|
long |
StartupProgressView.getCount(Phase phase,
Step step)
Returns the counter value for the specified phase and step.
|
StartupProgress.Counter |
StartupProgress.getCounter(Phase phase,
Step step)
Returns a counter associated with the specified phase and step.
|
long |
StartupProgressView.getElapsedTime(Phase phase,
Step step)
Returns elapsed time for the specified phase and step, calculated as
(end - begin) if step is complete or (now - begin) if step is running or 0
if the step is still pending.
|
float |
StartupProgressView.getPercentComplete(Phase phase,
Step step)
Returns percent complete for the specified phase and step, calculated as
counter value divided by total.
|
long |
StartupProgressView.getTotal(Phase phase,
Step step)
Returns the total for the specified phase and step.
|
void |
StartupProgress.setCount(Phase phase,
Step step,
long count)
Sets counter to the specified value.
|
void |
StartupProgress.setTotal(Phase phase,
Step step,
long total)
Sets the total associated with the specified phase and step.
|
Copyright © 2013 Apache Software Foundation. All rights reserved.