Package com.mapr.cli

Class UserSessionCommands

  • All Implemented Interfaces:
    ListIterator, com.mapr.cliframework.base.CLIInterface

    public class UserSessionCommands
    extends ListCommand
    implements com.mapr.cliframework.base.CLIInterface
    • 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.MessageLite buildNextRequest​(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.CommandOutput executeRealCommand()  
      boolean hasMore​(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.
      void processResponse​(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, com.google.protobuf.MessageLite response)
      Parse the response and populate the output hierarchy.
      com.google.protobuf.MessageLite sendRequest​(com.google.protobuf.MessageLite request)
      Send the request using RPC and fetch the response.
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.mapr.cliframework.base.CLIInterface

        executeCommand, getCLICommand, getGIds, getUserId, getUserLoginId, 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
      • 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
    • Constructor Detail

      • UserSessionCommands

        public UserSessionCommands​(com.mapr.cliframework.base.ProcessedInput input,
                                   com.mapr.cliframework.base.CLICommand cliCommand)
    • Method Detail

      • executeRealCommand

        public com.mapr.cliframework.base.CommandOutput executeRealCommand()
                                                                    throws com.mapr.cliframework.base.CLIProcessingException
        Specified by:
        executeRealCommand in class com.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.CLIProcessingException
        Description copied from interface: ListIterator
        Parse the response and populate the output hierarchy.
        Specified by:
        processResponse in interface ListIterator
        Specified by:
        processResponse in class ListCommand
        Parameters:
        out - - CommandOutput.OutputHierarchy
        response - - 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.CLIProcessingException
        Description copied from interface: ListIterator
        Send the request using RPC and fetch the response.
        Specified by:
        sendRequest in interface ListIterator
        Specified by:
        sendRequest in class ListCommand
        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.CLIProcessingException
        Description copied from interface: ListIterator
        Builds the next request object by inspecting the previous request and previous response.
        Specified by:
        buildNextRequest in interface ListIterator
        Specified by:
        buildNextRequest in class ListCommand
        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.CLIProcessingException
        Description copied from interface: ListIterator
        Inspect the last request and last response to see if there are more records to be fetched.
        Specified by:
        hasMore in interface ListIterator
        Specified by:
        hasMore in class ListCommand
        Returns:
        - true, if there are more records. false, if no more.
        Throws:
        com.mapr.cliframework.base.CLIProcessingException