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 Details

    • COMMAND_APIS_USERSESSION_GET

      public static final String COMMAND_APIS_USERSESSION_GET
      See Also:
    • COMMAND_APIS_USERSESSION_ADD

      public static final String COMMAND_APIS_USERSESSION_ADD
      See Also:
    • COMMAND_APIS_USERSESSION_UPDATE

      public static final String COMMAND_APIS_USERSESSION_UPDATE
      See Also:
    • COMMAND_APIS_USERSESSION_REMOVE

      public static final String COMMAND_APIS_USERSESSION_REMOVE
      See Also:
    • COMMAND_APIS_USERSESSION_REMOVEALL

      public static final String COMMAND_APIS_USERSESSION_REMOVEALL
      See Also:
    • COMMAND_APIS_USERSESSION_LIST

      public static final String COMMAND_APIS_USERSESSION_LIST
      See Also:
    • PARAM_UID

      public static final String PARAM_UID
      See Also:
    • PARAM_SESSIONID

      public static final String PARAM_SESSIONID
      See Also:
    • PARAM_APISERVER

      public static final String PARAM_APISERVER
      See Also:
    • PARAM_TTL

      public static final String PARAM_TTL
      See Also:
    • PARAM_COLUMNS

      public static final String PARAM_COLUMNS
      See Also:
    • PARAM_OUTPUT

      public static final String PARAM_OUTPUT
      See Also:
    • PARAM_START

      public static final String PARAM_START
      See Also:
    • PARAM_LIMIT

      public static final String PARAM_LIMIT
      See Also:
    • PARAM_FILTER

      public static final String PARAM_FILTER
      See Also:
    • APIS_USERSESSION_CMD_USAGE

      public static final String APIS_USERSESSION_CMD_USAGE
      See Also:
    • UserSessionGetUsage

      public static final String UserSessionGetUsage
      See Also:
    • UserSessionAddUsage

      public static final String UserSessionAddUsage
      See Also:
    • UserSessionUpdateUsage

      public static final String UserSessionUpdateUsage
      See Also:
    • UserSessionRemoveUsage

      public static final String UserSessionRemoveUsage
      See Also:
    • UserSessionRemoveAllUsage

      public static final String UserSessionRemoveAllUsage
      See Also:
    • UserSessionListUsage

      public static final String UserSessionListUsage
      See Also:
    • 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 Map<com.mapr.fs.cldb.proto.CLDBProto.ApisUserSessionInfoFields,com.mapr.cliframework.util.FieldInfo> fieldTable
  • Constructor Details

    • UserSessionCommands

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

    • 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