Package com.mapr.cli
Class GlobalNSCommands
- java.lang.Object
-
- com.mapr.cliframework.base.CLIBaseClass
-
- com.mapr.cli.common.ListCommand
-
- com.mapr.cli.GlobalNSCommands
-
- All Implemented Interfaces:
ListIterator,com.mapr.cliframework.base.CLIInterface
public class GlobalNSCommands extends ListCommand implements com.mapr.cliframework.base.CLIInterface
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCLDBIPS_PARAMstatic java.lang.StringCLUSTERNAME_PARAMstatic java.lang.StringCONF_FILEstatic java.lang.StringGLOBALNS_COMMAND_ADDstatic java.lang.StringGLOBALNS_COMMAND_GET_SERVER_TICKETstatic java.lang.StringGLOBALNS_COMMAND_REMOVEstatic com.mapr.cliframework.base.CLICommandGlobalNSAddCommandstatic java.lang.StringGlobalNSAddUsagestatic com.mapr.cliframework.base.CLICommand[]globalNSCommandsstatic java.lang.StringglobalNsCommandsUsagestatic com.mapr.cliframework.base.CLICommandGlobalNSGetServerTicketCommandstatic java.lang.StringGlobalNSGetServerTicketUsagestatic com.mapr.cliframework.base.CLICommandGlobalNSRemoveCommandstatic java.lang.StringGlobalNSRemoveUsagestatic java.lang.StringNFS_EXPORT_FILEstatic java.lang.StringSECURE_PARAMstatic java.lang.StringSERVERTICKET_PARAMstatic java.lang.StringTICKET_FILEstatic java.lang.StringTMP_CONF_FILEstatic java.lang.StringTMP_TICKET_FILE
-
Constructor Summary
Constructors Constructor Description GlobalNSCommands(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 req)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
-
CONF_FILE
public static final java.lang.String CONF_FILE
- See Also:
- Constant Field Values
-
TICKET_FILE
public static final java.lang.String TICKET_FILE
- See Also:
- Constant Field Values
-
TMP_CONF_FILE
public static final java.lang.String TMP_CONF_FILE
- See Also:
- Constant Field Values
-
TMP_TICKET_FILE
public static final java.lang.String TMP_TICKET_FILE
- See Also:
- Constant Field Values
-
NFS_EXPORT_FILE
public static final java.lang.String NFS_EXPORT_FILE
- See Also:
- Constant Field Values
-
GLOBALNS_COMMAND_ADD
public static final java.lang.String GLOBALNS_COMMAND_ADD
- See Also:
- Constant Field Values
-
GLOBALNS_COMMAND_REMOVE
public static final java.lang.String GLOBALNS_COMMAND_REMOVE
- See Also:
- Constant Field Values
-
GLOBALNS_COMMAND_GET_SERVER_TICKET
public static final java.lang.String GLOBALNS_COMMAND_GET_SERVER_TICKET
- See Also:
- Constant Field Values
-
CLUSTERNAME_PARAM
public static final java.lang.String CLUSTERNAME_PARAM
- See Also:
- Constant Field Values
-
CLDBIPS_PARAM
public static final java.lang.String CLDBIPS_PARAM
- See Also:
- Constant Field Values
-
SECURE_PARAM
public static final java.lang.String SECURE_PARAM
- See Also:
- Constant Field Values
-
SERVERTICKET_PARAM
public static final java.lang.String SERVERTICKET_PARAM
- See Also:
- Constant Field Values
-
globalNsCommandsUsage
public static final java.lang.String globalNsCommandsUsage
- See Also:
- Constant Field Values
-
GlobalNSAddUsage
public static final java.lang.String GlobalNSAddUsage
- See Also:
- Constant Field Values
-
GlobalNSRemoveUsage
public static final java.lang.String GlobalNSRemoveUsage
- See Also:
- Constant Field Values
-
GlobalNSGetServerTicketUsage
public static final java.lang.String GlobalNSGetServerTicketUsage
- See Also:
- Constant Field Values
-
GlobalNSAddCommand
public static final com.mapr.cliframework.base.CLICommand GlobalNSAddCommand
-
GlobalNSRemoveCommand
public static final com.mapr.cliframework.base.CLICommand GlobalNSRemoveCommand
-
GlobalNSGetServerTicketCommand
public static final com.mapr.cliframework.base.CLICommand GlobalNSGetServerTicketCommand
-
globalNSCommands
public static final com.mapr.cliframework.base.CLICommand[] globalNSCommands
-
-
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 req) 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:
req- - 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
-
-