Class ReplicationParam

java.lang.Object
org.apache.hadoop.hdfs.web.resources.Param<Short,org.apache.hadoop.hdfs.web.resources.ShortParam.Domain>
org.apache.hadoop.hdfs.web.resources.ReplicationParam

public class ReplicationParam extends Param<Short,org.apache.hadoop.hdfs.web.resources.ShortParam.Domain>
Replication parameter.
  • Field Details

  • Constructor Details

    • ReplicationParam

      public ReplicationParam(Short value)
      Constructor.
      Parameters:
      value - the parameter value.
    • ReplicationParam

      public ReplicationParam(String str)
      Constructor.
      Parameters:
      str - a string representation of the parameter value.
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in class Param<Short,org.apache.hadoop.hdfs.web.resources.ShortParam.Domain>
      Returns:
      the parameter name.
    • getValue

      public short getValue(org.apache.hadoop.conf.Configuration conf)
      Returns:
      the value or, if it is null, return the default from conf.
    • toString

      public String toString()
      Overrides:
      toString in class Param<Short,org.apache.hadoop.hdfs.web.resources.ShortParam.Domain>
    • getValueString

      public final String getValueString()
      Specified by:
      getValueString in class Param<Short,org.apache.hadoop.hdfs.web.resources.ShortParam.Domain>
      Returns:
      the parameter value as a string