Package com.mapr.cli
Class VolumeMirrorCommands
java.lang.Object
com.mapr.cliframework.base.CLIBaseClass
com.mapr.cli.VolumeMirrorCommands
- All Implemented Interfaces:
com.mapr.cliframework.base.CLIInterface
public class VolumeMirrorCommands
extends com.mapr.cliframework.base.CLIBaseClass
implements com.mapr.cliframework.base.CLIInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclass -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic com.mapr.cliframework.base.CLICommandstatic com.mapr.cliframework.base.CLICommand[]static final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final Stringstatic final com.mapr.cliframework.base.CLICommandstatic 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
ConstructorsConstructorDescriptionVolumeMirrorCommands(com.mapr.cliframework.base.ProcessedInput input, com.mapr.cliframework.base.CLICommand cliCommand) -
Method Summary
Modifier and TypeMethodDescriptionstatic intCheckMirrorPermission(int volumeId, com.mapr.fs.proto.Common.VolumeType vt, String clusterName, boolean isRestore, com.mapr.fs.proto.Security.CredentialsMsg creds) com.mapr.cliframework.base.CommandOutputstatic byte[]sendRequest(String clusterName, int programId, int procedureId, com.google.protobuf.MessageLite request, Class<? extends com.google.protobuf.MessageLite> responseClass, boolean isHardMount) static booleanValidateClusterName(String clusterName) static intValidateMirrorVolume(VolumeMirrorCommands.MirrorVolumeInfo mInfo, com.mapr.fs.proto.Security.CredentialsMsg creds) static intValidateSourceVolume(VolumeMirrorCommands.MirrorVolumeInfo mInfo, com.mapr.fs.proto.Security.CredentialsMsg creds) Methods 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
-
MIRROR_VOLUME_PARAM_NAME
- See Also:
-
ROLLFWD_POST_MIRROR
- See Also:
-
DEL_SRCSNAP
- See Also:
-
MIRROR_VERBOSE_OUTPUT
- See Also:
-
IS_FULL_MIRROR
- See Also:
-
MULTI_ARG_SEP
- See Also:
-
START_PARAM_NAME
- See Also:
-
LIMIT_PARAM_NAME
- See Also:
-
SRC_SNAPSHOT_NAME
- See Also:
-
SRC_SNAPSHOT_FORCE_MIRROR_START
- See Also:
-
startMirrorUsage
- See Also:
-
stopMirrorUsage
- See Also:
-
pushMirrorUsage
- See Also:
-
mirrorStatusUsage
- See Also:
-
baseParams
-
mirrorStartCommand
public static final com.mapr.cliframework.base.CLICommand mirrorStartCommand -
mirrorStopCommand
public static final com.mapr.cliframework.base.CLICommand mirrorStopCommand -
mirrorStatusCommand
public static final com.mapr.cliframework.base.CLICommand mirrorStatusCommand -
mirrorPushCommand
public static final com.mapr.cliframework.base.CLICommand mirrorPushCommand -
mirrorCommandsArray
public static com.mapr.cliframework.base.CLICommand[] mirrorCommandsArray -
mirrorCommands
public static com.mapr.cliframework.base.CLICommand mirrorCommands
-
-
Constructor Details
-
VolumeMirrorCommands
public VolumeMirrorCommands(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
-
ValidateClusterName
-
ValidateMirrorVolume
public static int ValidateMirrorVolume(VolumeMirrorCommands.MirrorVolumeInfo mInfo, com.mapr.fs.proto.Security.CredentialsMsg creds) throws com.mapr.cliframework.base.CLIProcessingException - Throws:
com.mapr.cliframework.base.CLIProcessingException
-
ValidateSourceVolume
public static int ValidateSourceVolume(VolumeMirrorCommands.MirrorVolumeInfo mInfo, com.mapr.fs.proto.Security.CredentialsMsg creds) throws com.mapr.cliframework.base.CLIProcessingException - Throws:
com.mapr.cliframework.base.CLIProcessingException
-
CheckMirrorPermission
public static int CheckMirrorPermission(int volumeId, com.mapr.fs.proto.Common.VolumeType vt, String clusterName, boolean isRestore, com.mapr.fs.proto.Security.CredentialsMsg creds) throws com.mapr.cliframework.base.CLIProcessingException - Throws:
com.mapr.cliframework.base.CLIProcessingException
-
sendRequest
public static byte[] sendRequest(String clusterName, int programId, int procedureId, com.google.protobuf.MessageLite request, Class<? extends com.google.protobuf.MessageLite> responseClass, boolean isHardMount) throws Exception - Throws:
Exception
-