Package com.mapr.cli
Class UserSessionCommands
- java.lang.Object
-
- com.mapr.cliframework.base.CLIBaseClass
-
- com.mapr.cli.common.ListCommand
-
- com.mapr.cli.UserSessionCommands
-
- All Implemented Interfaces:
ListIterator,com.mapr.cliframework.base.CLIInterface
public class UserSessionCommands extends ListCommand implements com.mapr.cliframework.base.CLIInterface
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAPIS_USERSESSION_CMD_USAGEstatic java.lang.StringCOMMAND_APIS_USERSESSION_ADDstatic java.lang.StringCOMMAND_APIS_USERSESSION_GETstatic java.lang.StringCOMMAND_APIS_USERSESSION_LISTstatic java.lang.StringCOMMAND_APIS_USERSESSION_REMOVEstatic java.lang.StringCOMMAND_APIS_USERSESSION_REMOVEALLstatic java.lang.StringCOMMAND_APIS_USERSESSION_UPDATEstatic java.util.Map<com.mapr.fs.cldb.proto.CLDBProto.ApisUserSessionInfoFields,com.mapr.cliframework.util.FieldInfo>fieldTablestatic java.lang.StringPARAM_APISERVERstatic java.lang.StringPARAM_COLUMNSstatic java.lang.StringPARAM_FILTERstatic java.lang.StringPARAM_LIMITstatic java.lang.StringPARAM_OUTPUTstatic java.lang.StringPARAM_SESSIONIDstatic java.lang.StringPARAM_STARTstatic java.lang.StringPARAM_TTLstatic java.lang.StringPARAM_UIDstatic com.mapr.cliframework.base.CLICommandUserSessionAddCommandstatic java.lang.StringUserSessionAddUsagestatic com.mapr.cliframework.base.CLICommanduserSessionCommandsstatic com.mapr.cliframework.base.CLICommandUserSessionGetCommandstatic java.lang.StringUserSessionGetUsagestatic com.mapr.cliframework.base.CLICommandUserSessionListCommandstatic java.lang.StringUserSessionListUsagestatic com.mapr.cliframework.base.CLICommandUserSessionRemoveAllCommandstatic java.lang.StringUserSessionRemoveAllUsagestatic com.mapr.cliframework.base.CLICommandUserSessionRemoveCommandstatic java.lang.StringUserSessionRemoveUsagestatic com.mapr.cliframework.base.CLICommandUserSessionUpdateCommandstatic java.lang.StringUserSessionUpdateUsage
-
Constructor Summary
Constructors Constructor Description UserSessionCommands(com.mapr.cliframework.base.ProcessedInput input, com.mapr.cliframework.base.CLICommand cliCommand)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.protobuf.MessageLitebuildNextRequest(com.google.protobuf.MessageLite prevReq, com.google.protobuf.MessageLite prevResp)Builds the next request object by inspecting the previous request and previous response.com.mapr.cliframework.base.CommandOutputexecuteRealCommand()booleanhasMore(com.google.protobuf.MessageLite prevReq, com.google.protobuf.MessageLite prevResp)Inspect the last request and last response to see if there are more records to be fetched.voidprocessResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, com.google.protobuf.MessageLite response)Parse the response and populate the output hierarchy.com.google.protobuf.MessageLitesendRequest(com.google.protobuf.MessageLite request)Send the request using RPC and fetch the response.-
Methods inherited from class com.mapr.cli.common.ListCommand
getFilters, getNextLimiter, hasMore, list
-
Methods inherited from class com.mapr.cliframework.base.CLIBaseClass
executeCommand, executeSimpleSHHCommand, executeSimpleSHHCommand, getCLICommand, getCommandUsage, getGIds, getInput, getKeyType, getParamBooleanValue, getParamDateValue, getParamIntValue, getParamLongValue, getParamObjectValue, getParamTextValue, getUserCredentials, getUserId, getUserLoginId, getVersion, isParamPresent, isParamValueEmpty, setServerCall, setUserCredentials, setVersion, validateInput
-
-
-
-
Field Detail
-
COMMAND_APIS_USERSESSION_GET
public static final java.lang.String COMMAND_APIS_USERSESSION_GET
- See Also:
- Constant Field Values
-
COMMAND_APIS_USERSESSION_ADD
public static final java.lang.String COMMAND_APIS_USERSESSION_ADD
- See Also:
- Constant Field Values
-
COMMAND_APIS_USERSESSION_UPDATE
public static final java.lang.String COMMAND_APIS_USERSESSION_UPDATE
- See Also:
- Constant Field Values
-
COMMAND_APIS_USERSESSION_REMOVE
public static final java.lang.String COMMAND_APIS_USERSESSION_REMOVE
- See Also:
- Constant Field Values
-
COMMAND_APIS_USERSESSION_REMOVEALL
public static final java.lang.String COMMAND_APIS_USERSESSION_REMOVEALL
- See Also:
- Constant Field Values
-
COMMAND_APIS_USERSESSION_LIST
public static final java.lang.String COMMAND_APIS_USERSESSION_LIST
- See Also:
- Constant Field Values
-
PARAM_UID
public static final java.lang.String PARAM_UID
- See Also:
- Constant Field Values
-
PARAM_SESSIONID
public static final java.lang.String PARAM_SESSIONID
- See Also:
- Constant Field Values
-
PARAM_APISERVER
public static final java.lang.String PARAM_APISERVER
- See Also:
- Constant Field Values
-
PARAM_TTL
public static final java.lang.String PARAM_TTL
- See Also:
- Constant Field Values
-
PARAM_COLUMNS
public static final java.lang.String PARAM_COLUMNS
- See Also:
- Constant Field Values
-
PARAM_OUTPUT
public static final java.lang.String PARAM_OUTPUT
- See Also:
- Constant Field Values
-
PARAM_START
public static final java.lang.String PARAM_START
- See Also:
- Constant Field Values
-
PARAM_LIMIT
public static final java.lang.String PARAM_LIMIT
- See Also:
- Constant Field Values
-
PARAM_FILTER
public static final java.lang.String PARAM_FILTER
- See Also:
- Constant Field Values
-
APIS_USERSESSION_CMD_USAGE
public static final java.lang.String APIS_USERSESSION_CMD_USAGE
- See Also:
- Constant Field Values
-
UserSessionGetUsage
public static final java.lang.String UserSessionGetUsage
- See Also:
- Constant Field Values
-
UserSessionAddUsage
public static final java.lang.String UserSessionAddUsage
- See Also:
- Constant Field Values
-
UserSessionUpdateUsage
public static final java.lang.String UserSessionUpdateUsage
- See Also:
- Constant Field Values
-
UserSessionRemoveUsage
public static final java.lang.String UserSessionRemoveUsage
- See Also:
- Constant Field Values
-
UserSessionRemoveAllUsage
public static final java.lang.String UserSessionRemoveAllUsage
- See Also:
- Constant Field Values
-
UserSessionListUsage
public static final java.lang.String UserSessionListUsage
- See Also:
- Constant Field Values
-
UserSessionGetCommand
public static final com.mapr.cliframework.base.CLICommand UserSessionGetCommand
-
UserSessionAddCommand
public static final com.mapr.cliframework.base.CLICommand UserSessionAddCommand
-
UserSessionUpdateCommand
public static final com.mapr.cliframework.base.CLICommand UserSessionUpdateCommand
-
UserSessionRemoveCommand
public static final com.mapr.cliframework.base.CLICommand UserSessionRemoveCommand
-
UserSessionRemoveAllCommand
public static final com.mapr.cliframework.base.CLICommand UserSessionRemoveAllCommand
-
UserSessionListCommand
public static final com.mapr.cliframework.base.CLICommand UserSessionListCommand
-
userSessionCommands
public static final com.mapr.cliframework.base.CLICommand userSessionCommands
-
fieldTable
public static java.util.Map<com.mapr.fs.cldb.proto.CLDBProto.ApisUserSessionInfoFields,com.mapr.cliframework.util.FieldInfo> fieldTable
-
-
Method Detail
-
executeRealCommand
public com.mapr.cliframework.base.CommandOutput executeRealCommand() throws com.mapr.cliframework.base.CLIProcessingException- Specified by:
executeRealCommandin classcom.mapr.cliframework.base.CLIBaseClass- Throws:
com.mapr.cliframework.base.CLIProcessingException
-
processResponse
public void processResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, com.google.protobuf.MessageLite response) throws com.mapr.cliframework.base.CLIProcessingExceptionDescription copied from interface:ListIteratorParse the response and populate the output hierarchy.- Specified by:
processResponsein interfaceListIterator- Specified by:
processResponsein classListCommand- Parameters:
out- -CommandOutput.OutputHierarchyresponse- - response object- Throws:
com.mapr.cliframework.base.CLIProcessingException
-
sendRequest
public com.google.protobuf.MessageLite sendRequest(com.google.protobuf.MessageLite request) throws com.mapr.cliframework.base.CLIProcessingExceptionDescription copied from interface:ListIteratorSend the request using RPC and fetch the response.- Specified by:
sendRequestin interfaceListIterator- Specified by:
sendRequestin classListCommand- Parameters:
request- - request object.- Returns:
- - the response object.
- Throws:
com.mapr.cliframework.base.CLIProcessingException
-
buildNextRequest
public com.google.protobuf.MessageLite buildNextRequest(com.google.protobuf.MessageLite prevReq, com.google.protobuf.MessageLite prevResp) throws com.mapr.cliframework.base.CLIProcessingExceptionDescription copied from interface:ListIteratorBuilds the next request object by inspecting the previous request and previous response.- Specified by:
buildNextRequestin interfaceListIterator- Specified by:
buildNextRequestin classListCommand- Returns:
- - new request object
- Throws:
com.mapr.cliframework.base.CLIProcessingException
-
hasMore
public boolean hasMore(com.google.protobuf.MessageLite prevReq, com.google.protobuf.MessageLite prevResp) throws com.mapr.cliframework.base.CLIProcessingExceptionDescription copied from interface:ListIteratorInspect the last request and last response to see if there are more records to be fetched.- Specified by:
hasMorein interfaceListIterator- Specified by:
hasMorein classListCommand- Returns:
- - true, if there are more records. false, if no more.
- Throws:
com.mapr.cliframework.base.CLIProcessingException
-
-