Class BlockSizeParam

java.lang.Object
org.apache.hadoop.hdfs.web.resources.Param<Long,org.apache.hadoop.hdfs.web.resources.LongParam.Domain>
org.apache.hadoop.hdfs.web.resources.BlockSizeParam

public class BlockSizeParam extends Param<Long,org.apache.hadoop.hdfs.web.resources.LongParam.Domain>
Block size parameter.
  • Field Details

  • Constructor Details

    • BlockSizeParam

      public BlockSizeParam(Long value)
      Constructor.
      Parameters:
      value - the parameter value.
    • BlockSizeParam

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

    • getName

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

      public long 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<Long,org.apache.hadoop.hdfs.web.resources.LongParam.Domain>
    • getValueString

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