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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBlockSizeParam(Long value) Constructor.BlockSizeParam(String str) Constructor. -
Method Summary
Methods inherited from class org.apache.hadoop.hdfs.web.resources.Param
getValue, toSortedString
-
Field Details
-
NAME
Parameter name.- See Also:
-
DEFAULT
Default parameter value.- See Also:
-
-
Constructor Details
-
BlockSizeParam
Constructor.- Parameters:
value- the parameter value.
-
BlockSizeParam
Constructor.- Parameters:
str- a string representation of the parameter value.
-
-
Method Details
-
getName
-
getValue
public long getValue(org.apache.hadoop.conf.Configuration conf) - Returns:
- the value or, if it is null, return the default from conf.
-
toString
-
getValueString
- Specified by:
getValueStringin classParam<Long,org.apache.hadoop.hdfs.web.resources.LongParam.Domain> - Returns:
- the parameter value as a string
-