java.lang.Object
org.apache.hadoop.hdfs.server.namenode.startupprogress.Step
All Implemented Interfaces:
Comparable<Step>

@Private public class Step extends Object implements Comparable<Step>
A step performed by the namenode during a Phase of startup.
  • Constructor Details

    • Step

      public Step(StepType type)
      Creates a new Step.
      Parameters:
      type - StepType type of step
    • Step

      public Step(String file)
      Creates a new Step.
      Parameters:
      file - String file
    • Step

      public Step(String file, long size)
      Creates a new Step.
      Parameters:
      file - String file
      size - long size in bytes
    • Step

      public Step(StepType type, String file)
      Creates a new Step.
      Parameters:
      type - StepType type of step
      file - String file
    • Step

      public Step(StepType type, String file, long size)
      Creates a new Step.
      Parameters:
      type - StepType type of step
      file - String file
      size - long size in bytes
  • Method Details

    • compareTo

      public int compareTo(Step other)
      Specified by:
      compareTo in interface Comparable<Step>
    • equals

      public boolean equals(Object otherObj)
      Overrides:
      equals in class Object
    • getFile

      public String getFile()
      Returns the optional file name, possibly null.
      Returns:
      String optional file name, possibly null
    • getSize

      public long getSize()
      Returns the optional size in bytes, possibly Long.MIN_VALUE if undefined.
      Returns:
      long optional size in bytes, possibly Long.MIN_VALUE
    • getType

      public StepType getType()
      Returns the optional step type, possibly null.
      Returns:
      StepType optional step type, possibly null
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object