Class BufferSizeParam
java.lang.Object
org.apache.hadoop.hdfs.web.resources.Param<Integer,org.apache.hadoop.hdfs.web.resources.IntegerParam.Domain>
org.apache.hadoop.hdfs.web.resources.BufferSizeParam
public class BufferSizeParam
extends Param<Integer,org.apache.hadoop.hdfs.web.resources.IntegerParam.Domain>
Buffer size parameter.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBufferSizeParam(Integer value) Constructor.BufferSizeParam(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
-
BufferSizeParam
Constructor.- Parameters:
value- the parameter value.
-
BufferSizeParam
Constructor.- Parameters:
str- a string representation of the parameter value.
-
-
Method Details
-
getName
-
getValue
public int 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<Integer,org.apache.hadoop.hdfs.web.resources.IntegerParam.Domain> - Returns:
- the parameter value as a string
-