Package com.mapr.cli
Class TierCommands
java.lang.Object
com.mapr.cliframework.base.CLIBaseClass
com.mapr.cli.common.ListCommand
com.mapr.cli.TierCommands
- All Implemented Interfaces:
ListIterator,com.mapr.cliframework.base.CLIInterface
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intstatic 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 final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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
ConstructorsConstructorDescriptionTierCommands(com.mapr.cliframework.base.ProcessedInput input, com.mapr.cliframework.base.CLICommand cliCommand) -
Method Summary
Modifier and TypeMethodDescriptioncom.mapr.fs.cldb.proto.CLDBProto.TierListRequestbuildNextRequest(com.google.protobuf.MessageLite prevReq, com.google.protobuf.MessageLite prevResp) Builds the next request object by inspecting the previous request and previous response.static com.mapr.fs.cldb.proto.CLDBProto.TierRemoveResponsedeleteTierFromCLDB(String tierName, com.mapr.fs.proto.Security.CredentialsMsg creds, String cluster) static com.mapr.fs.cldb.proto.CLDBProto.TierCreateResponseEcTierCreate(String cluster, com.mapr.fs.proto.Security.CredentialsMsg creds, String userLoginId, String tierName) com.mapr.cliframework.base.CommandOutputstatic StringgenerateTierNameForAutoCreate(String ecVolumeName) getMetaVolumeTopology(String metaVolumeName) com.mapr.fs.cldb.proto.CLDBProto.ObjectStoreTypegetObjectStoreType(String objectStoreType) getObjectTypeString(com.mapr.fs.cldb.proto.CLDBProto.ObjectStoreType objStore) 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.mapr.fs.cldb.proto.CLDBProto.TierListResponsesendRequest(com.google.protobuf.MessageLite request) Send the request using RPC and fetch the response.static com.mapr.fs.cldb.proto.CLDBProto.TierLookupResponsetierLookup(String cluster, com.mapr.fs.proto.Security.CredentialsMsg creds, int tierId) static com.mapr.fs.cldb.proto.CLDBProto.TierLookupResponsetierLookup(String cluster, com.mapr.fs.proto.Security.CredentialsMsg creds, String tierName) static com.mapr.fs.cldb.proto.CLDBProto.TierLookupResponsetierLookup(String cluster, com.mapr.fs.proto.Security.CredentialsMsg creds, String tierName, int tierId) static inttierRemove(String tierName, String cluster, String userId, com.mapr.fs.proto.Security.CredentialsMsg creds, boolean isServerCall) 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
-
S3_AWS
- See Also:
-
S3_GCS
- See Also:
-
S3_HDS
- See Also:
-
S3_IBM
- See Also:
-
Azure_Blobs
- See Also:
-
S3_Others
- See Also:
-
MAX_OBJ_SIZE
public static final int MAX_OBJ_SIZE- See Also:
-
TIERNAME_PARAM_NAME
- See Also:
-
TYPE_PARAM_NAME
- See Also:
-
AUTH_PARAM_NAME
- See Also:
-
URL_PARAM_NAME
- See Also:
-
OBJSIZE_PARAM_NAME
- See Also:
-
THROTTLING_PARAM_NAME
- See Also:
-
OUTPUT_PARAM_NAME
- See Also:
-
OBJECT_STORE_TYPE_PARAM_NAME
- See Also:
-
CRED_STR_PARAM_NAME
- See Also:
-
DB_TOPOLOGY_PARAM_NAME
- See Also:
-
MAX_CREDENTIALS_FILE_SIZE
public static final int MAX_CREDENTIALS_FILE_SIZE- See Also:
-
BUCKET_NAME
- See Also:
-
REGION
- See Also:
-
CREDENTIALS_ACCESS_KEY
- See Also:
-
CREDENTIALS_SECRET_KEY
- See Also:
-
DEFAULT_REGION
- See Also:
-
SORTBY_PARAM_NAME
- See Also:
-
SORTING_ORDER_PARAM_NAME
- See Also:
-
ASCENDING_SORTING_ORDER_PARAM_NAME
- See Also:
-
DESCENDING_SORTING_ORDER_PARAM_NAME
- See Also:
-
RW_TIER_PARAM_FORCE
- See Also:
-
tierCreateUsage
- See Also:
-
tierModifyUsage
- See Also:
-
tierListUsage
- See Also:
-
tierInfoUsage
- See Also:
-
tierRemoveUsage
- See Also:
-
tierMoveUsage
- See Also:
-
metaVolumePrefix
- See Also:
-
metaVolumeParentDir
- See Also:
-
autoECMetaVolumeParentDir
- See Also:
-
baseParams
-
tierCreateParams
-
tierModifyParams
-
tierCommands
public static final com.mapr.cliframework.base.CLICommand tierCommands
-
-
Constructor Details
-
TierCommands
public TierCommands(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:
executeRealCommandin classcom.mapr.cliframework.base.CLIBaseClass- Throws:
com.mapr.cliframework.base.CLIProcessingException
-
generateTierNameForAutoCreate
-
tierLookup
public static com.mapr.fs.cldb.proto.CLDBProto.TierLookupResponse tierLookup(String cluster, com.mapr.fs.proto.Security.CredentialsMsg creds, int tierId) throws com.mapr.cliframework.base.CLIProcessingException - Throws:
com.mapr.cliframework.base.CLIProcessingException
-
tierLookup
public static com.mapr.fs.cldb.proto.CLDBProto.TierLookupResponse tierLookup(String cluster, com.mapr.fs.proto.Security.CredentialsMsg creds, String tierName) throws com.mapr.cliframework.base.CLIProcessingException - Throws:
com.mapr.cliframework.base.CLIProcessingException
-
tierLookup
public static com.mapr.fs.cldb.proto.CLDBProto.TierLookupResponse tierLookup(String cluster, com.mapr.fs.proto.Security.CredentialsMsg creds, String tierName, int tierId) throws com.mapr.cliframework.base.CLIProcessingException - Throws:
com.mapr.cliframework.base.CLIProcessingException
-
EcTierCreate
public static com.mapr.fs.cldb.proto.CLDBProto.TierCreateResponse EcTierCreate(String cluster, com.mapr.fs.proto.Security.CredentialsMsg creds, String userLoginId, String tierName) throws com.mapr.cliframework.base.CLIProcessingException - Throws:
com.mapr.cliframework.base.CLIProcessingException
-
tierRemove
public static int tierRemove(String tierName, String cluster, String userId, com.mapr.fs.proto.Security.CredentialsMsg creds, boolean isServerCall) throws com.mapr.cliframework.base.CLIProcessingException - Throws:
com.mapr.cliframework.base.CLIProcessingException
-
deleteTierFromCLDB
public static com.mapr.fs.cldb.proto.CLDBProto.TierRemoveResponse deleteTierFromCLDB(String tierName, com.mapr.fs.proto.Security.CredentialsMsg creds, String cluster) throws Exception - Throws:
Exception
-
buildNextRequest
public com.mapr.fs.cldb.proto.CLDBProto.TierListRequest 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
-
getMetaVolumeTopology
-
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
-
sendRequest
public com.mapr.fs.cldb.proto.CLDBProto.TierListResponse sendRequest(com.google.protobuf.MessageLite request) 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:
request- - request object.- Returns:
- - the response object.
- Throws:
com.mapr.cliframework.base.CLIProcessingException
-
getObjectTypeString
-
getObjectStoreType
-