org.apache.hadoop.hdfs.web.resources
Class UserParam
java.lang.Object
org.apache.hadoop.hdfs.web.resources.Param<String,org.apache.hadoop.hdfs.web.resources.StringParam.Domain>
org.apache.hadoop.hdfs.web.resources.UserParam
public class UserParam
- extends Param<String,org.apache.hadoop.hdfs.web.resources.StringParam.Domain>
User parameter.
Constructor Summary |
UserParam(String str)
Constructor. |
UserParam(org.apache.hadoop.security.UserGroupInformation ugi)
Construct an object from a UGI. |
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
UserParam
public UserParam(String str)
- Constructor.
- Parameters:
str
- a string representation of the parameter value.
UserParam
public UserParam(org.apache.hadoop.security.UserGroupInformation ugi)
- Construct an object from a UGI.
getName
public String getName()
- Specified by:
getName
in class Param<String,org.apache.hadoop.hdfs.web.resources.StringParam.Domain>
- Returns:
- the parameter name.
getValueString
public String getValueString()
- Specified by:
getValueString
in class Param<String,org.apache.hadoop.hdfs.web.resources.StringParam.Domain>
- Returns:
- the parameter value as a string
Copyright © 2012 Apache Software Foundation. All Rights Reserved.