org.apache.hadoop.hdfs.web.resources
Class BlockSizeParam

java.lang.Object
  extended by org.apache.hadoop.hdfs.web.resources.Param<Long,org.apache.hadoop.hdfs.web.resources.LongParam.Domain>
      extended by 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 Summary
static String DEFAULT
          Default parameter value.
static String NAME
          Parameter name.
 
Constructor Summary
BlockSizeParam(Long value)
          Constructor.
BlockSizeParam(String str)
          Constructor.
 
Method Summary
 String getName()
           
 long getValue(org.apache.hadoop.conf.Configuration conf)
           
 String getValueString()
           
 String toString()
           
 
Methods inherited from class org.apache.hadoop.hdfs.web.resources.Param
getValue, toSortedString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
Parameter name.

See Also:
Constant Field Values

DEFAULT

public static final String DEFAULT
Default parameter value.

See Also:
Constant Field Values
Constructor Detail

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 Detail

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


Copyright © 2014 Apache Software Foundation. All Rights Reserved.