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 |
---|---|
static Phase |
Phase.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Phase[] |
Phase.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Iterable<Phase> |
StartupProgressView.getPhases()
Returns all phases.
|
Modifier and Type | Method and Description |
---|---|
void |
StartupProgress.beginPhase(Phase phase)
Begins execution of the specified phase.
|
void |
StartupProgress.beginStep(Phase phase,
Step step)
Begins execution of the specified step within the specified phase.
|
void |
StartupProgress.endPhase(Phase phase)
Ends execution of the specified phase.
|
void |
StartupProgress.endStep(Phase phase,
Step step)
Ends execution of the specified step within the specified phase.
|
long |
StartupProgressView.getCount(Phase phase)
Returns the sum of the counter values for all steps in 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)
Returns elapsed time for the specified phase, calculated as (end - begin) if
phase is complete or (now - begin) if phase is running or 0 if the phase is
still pending.
|
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.
|
String |
StartupProgressView.getFile(Phase phase)
Returns the optional file name associated with the specified phase, possibly
null.
|
float |
StartupProgressView.getPercentComplete(Phase phase)
Returns percent complete for the specified phase, calculated by aggregating
the counter values and totals for all steps within the phase.
|
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.getSize(Phase phase)
Returns the optional size in bytes associated with the specified phase,
possibly Long.MIN_VALUE if undefined.
|
Status |
StartupProgressView.getStatus(Phase phase)
Returns the current run status of the specified phase.
|
Status |
StartupProgress.getStatus(Phase phase)
Returns the current run status of the specified phase.
|
Iterable<Step> |
StartupProgressView.getSteps(Phase phase)
Returns all steps within a phase.
|
long |
StartupProgressView.getTotal(Phase phase)
Returns the sum of the totals for all steps in the specified phase.
|
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.setFile(Phase phase,
String file)
Sets the optional file name associated with the specified phase.
|
void |
StartupProgress.setSize(Phase phase,
long size)
Sets the optional size in bytes associated with the specified phase.
|
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.