org.apache.hadoop.hdfs.web.resources
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.
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
BufferSizeParam
public BufferSizeParam(Integer value)
- Constructor.
- Parameters:
value - the parameter value.
BufferSizeParam
public BufferSizeParam(String str)
- Constructor.
- Parameters:
str - a string representation of the parameter value.
getName
public String getName()
- Specified by:
getName in class Param<Integer,org.apache.hadoop.hdfs.web.resources.IntegerParam.Domain>
- Returns:
- the parameter name.
getValue
public int 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<Integer,org.apache.hadoop.hdfs.web.resources.IntegerParam.Domain>
getValueString
public String getValueString()
- Specified by:
getValueString in class Param<Integer,org.apache.hadoop.hdfs.web.resources.IntegerParam.Domain>
- Returns:
- the parameter value as a string
Copyright © 2014 Apache Software Foundation. All Rights Reserved.