Package com.mapr.cli
Class ShareTemplateCommands
java.lang.Object
com.mapr.cliframework.base.CLIBaseClass
com.mapr.cli.common.ListCommand
com.mapr.cli.ShareTemplateCommands
- All Implemented Interfaces:
ListIterator,com.mapr.cliframework.base.CLIInterface
public class ShareTemplateCommands
extends ListCommand
implements com.mapr.cliframework.base.CLIInterface
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String[]static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final com.mapr.cliframework.base.CLICommandstatic Map<ShareTemplateField,com.mapr.cliframework.util.FieldInfo> static com.google.common.collect.ImmutableMap.Builder<ShareTemplateField,com.mapr.cliframework.util.FieldInfo> static final com.mapr.cliframework.base.CLICommand[]static final String[]static final Stringstatic final String[]Fields inherited from class com.mapr.cliframework.base.CLIBaseClass
cliCommand, CLUSTER_NAME_PARAM, clusterParams, HELP_PARAM, input, isServerCall, NOT_REQUIRED, output, REQUIRED, userInfo, versionFields inherited from interface com.mapr.cliframework.base.CLIInterface
KEY_PREFIX, PASSWORD_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionShareTemplateCommands(com.mapr.cliframework.base.ProcessedInput input, com.mapr.cliframework.base.CLICommand command) -
Method Summary
Modifier and TypeMethodDescriptioncom.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.CommandOutputcom.mapr.cliframework.base.CommandOutput.OutputHierarchy.OutputNodeformatShareTemplate(com.mapr.fs.cldb.proto.CLDBProto.ShareTemplate template, boolean terse, BitSet columns) com.mapr.cliframework.base.CommandOutput.OutputHierarchy.OutputNodeformatShareTemplateClients(com.mapr.fs.cldb.proto.CLDBProto.ShareTemplate template) 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.com.mapr.fs.cldb.proto.CLDBProto.ClientSpecparseClientSpec(String entry, com.mapr.cliframework.base.CommandOutput.OutputHierarchy out) 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, listMethods inherited from class com.mapr.cliframework.base.CLIBaseClass
executeCommand, executeSimpleSHHCommand, executeSimpleSHHCommand, getBooleanParam, getCLICommand, getCommandUsage, getGIds, getInput, getKeyType, getParamBooleanValue, getParamDateValue, getParamIntValue, getParamLongValue, getParamObjectValue, getParamTextValue, getUserClusterOps, getUserCredentials, getUserId, getUserLoginId, getVersion, isParamPresent, isParamValueEmpty, setServerCall, setUserClusterOps, setUserCredentials, setUserCredentialsByJwt, setVersion, skipValidation, validateInputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mapr.cliframework.base.CLIInterface
executeCommand, getCLICommand, getGIds, getUserId, getUserLoginId, setServerCall, setUserCredentials, setUserCredentialsByJwt, setVersion, validateInput
-
Field Details
-
SHARE_MOUNT_DIR
- See Also:
-
CLUSTER_NAME
-
MAPR_MANAGED_PATH_PREFIX
-
SHARE_TEMPLATE_PARAM_NAME
- See Also:
-
SHARE_TEMPLATE_PARAM_TYPE
- See Also:
-
SHARE_TEMPLATE_PARAM_QUOTA
- See Also:
-
SHARE_TEMPLATE_PARAM_ADVISORY_QUOTA
- See Also:
-
SHARE_TEMPLATE_PARAM_ACCESS_TYPE
- See Also:
-
SHARE_TEMPLATE_PARAM_SCHEDULING_POLICY
- See Also:
-
SHARE_TEMPLATE_PARAM_WIRE_SECURITY_ENABLED
- See Also:
-
SHARE_TEMPLATE_PARAM_VOLUME_ACES
- See Also:
-
SHARE_TEMPLATE_PARAM_SECURITY_TYPE
- See Also:
-
SHARE_TEMPLATE_PARAM_SQUASH
- See Also:
-
SHARE_TEMPLATE_CLIENT_SPECS
- See Also:
-
SHARE_TEMPLATE_PARAM_PBS_SECURITY_POLICY
- See Also:
-
SHARE_TEMPLATE_READACE_PARAM
- See Also:
-
SHARE_TEMPLATE_WRITEACE_PARAM
- See Also:
-
START_PARAM_NAME
- See Also:
-
LIMIT_PARAM_NAME
- See Also:
-
FILTER_PARAM_NAME
- See Also:
-
OUTPUT_PARAM_NAME
- See Also:
-
MULTI_ARG_SEP
- See Also:
-
COLUMNS_PARAM_NAME
- See Also:
-
TYPE_SET_VALUES
-
SUPPORTED_SHARE_TYPES
-
SEC_TYPE_SET_VALUES
-
SUPPORTED_SEC_TYPES
-
ACCESS_TYPE_SET_VALUES
-
SUPPORTED_ACCESS_TYPES
-
SQUASH_TYPE_SET_VALUES
-
SUPPORTED_SQUASH_TYPES
-
baseParams
-
-
Constructor Details
-
ShareTemplateCommands
public ShareTemplateCommands(com.mapr.cliframework.base.ProcessedInput input, com.mapr.cliframework.base.CLICommand command)
-
-
Method Details
-
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
-
getColumns
- Throws:
com.mapr.cliframework.base.CLIProcessingException
-
sendRequest
public com.google.protobuf.MessageLite sendRequest(com.google.protobuf.MessageLite req) throws com.mapr.cliframework.base.CLIProcessingException Description 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.CLIProcessingException Description 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.CLIProcessingException Description 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
-
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: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
-
parseClientSpec
public com.mapr.fs.cldb.proto.CLDBProto.ClientSpec parseClientSpec(String entry, com.mapr.cliframework.base.CommandOutput.OutputHierarchy out)
-