Package com.mapr.cli

Class VolumeMirrorCommands

  • All Implemented Interfaces:
    com.mapr.cliframework.base.CLIInterface

    public class VolumeMirrorCommands
    extends com.mapr.cliframework.base.CLIBaseClass
    implements com.mapr.cliframework.base.CLIInterface
    • Constructor Summary

      Constructors 
      Constructor Description
      VolumeMirrorCommands​(com.mapr.cliframework.base.ProcessedInput input, com.mapr.cliframework.base.CLICommand cliCommand)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static int CheckMirrorPermission​(int volumeId, com.mapr.fs.proto.Common.VolumeType vt, java.lang.String clusterName, boolean isRestore, com.mapr.fs.proto.Security.CredentialsMsg creds)  
      com.mapr.cliframework.base.CommandOutput executeRealCommand()  
      static byte[] sendRequest​(java.lang.String clusterName, int programId, int procedureId, com.google.protobuf.MessageLite request, java.lang.Class<? extends com.google.protobuf.MessageLite> responseClass, boolean isHardMount)  
      static boolean ValidateClusterName​(java.lang.String clusterName)  
      static int ValidateMirrorVolume​(VolumeMirrorCommands.MirrorVolumeInfo mInfo, com.mapr.fs.proto.Security.CredentialsMsg creds)  
      static int ValidateSourceVolume​(VolumeMirrorCommands.MirrorVolumeInfo mInfo, com.mapr.fs.proto.Security.CredentialsMsg creds)  
      • Methods inherited from class com.mapr.cliframework.base.CLIBaseClass

        executeCommand, executeSimpleSHHCommand, executeSimpleSHHCommand, getCLICommand, getCommandUsage, getGIds, getInput, getKeyType, getParamBooleanValue, getParamDateValue, getParamIntValue, getParamLongValue, getParamObjectValue, getParamTextValue, getUserClusterOps, getUserCredentials, getUserId, getUserLoginId, getVersion, isParamPresent, isParamValueEmpty, setServerCall, setUserClusterOps, setUserCredentials, setUserCredentialsByJwt, setVersion, skipValidation, validateInput
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.mapr.cliframework.base.CLIInterface

        executeCommand, getCLICommand, getGIds, getUserId, getUserLoginId, setServerCall, setUserCredentials, setUserCredentialsByJwt, setVersion, validateInput
    • Field Detail

      • MIRROR_VOLUME_PARAM_NAME

        public static final java.lang.String MIRROR_VOLUME_PARAM_NAME
        See Also:
        Constant Field Values
      • ROLLFWD_POST_MIRROR

        public static final java.lang.String ROLLFWD_POST_MIRROR
        See Also:
        Constant Field Values
      • MIRROR_VERBOSE_OUTPUT

        public static final java.lang.String MIRROR_VERBOSE_OUTPUT
        See Also:
        Constant Field Values
      • START_PARAM_NAME

        public static final java.lang.String START_PARAM_NAME
        See Also:
        Constant Field Values
      • LIMIT_PARAM_NAME

        public static final java.lang.String LIMIT_PARAM_NAME
        See Also:
        Constant Field Values
      • SRC_SNAPSHOT_NAME

        public static final java.lang.String SRC_SNAPSHOT_NAME
        See Also:
        Constant Field Values
      • SRC_SNAPSHOT_FORCE_MIRROR_START

        public static final java.lang.String SRC_SNAPSHOT_FORCE_MIRROR_START
        See Also:
        Constant Field Values
      • startMirrorUsage

        public static final java.lang.String startMirrorUsage
        See Also:
        Constant Field Values
      • mirrorStatusUsage

        public static final java.lang.String mirrorStatusUsage
        See Also:
        Constant Field Values
      • baseParams

        public static java.util.Map<java.lang.String,​com.mapr.cliframework.base.inputparams.BaseInputParameter> 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 Detail

      • VolumeMirrorCommands

        public VolumeMirrorCommands​(com.mapr.cliframework.base.ProcessedInput input,
                                    com.mapr.cliframework.base.CLICommand cliCommand)
    • Method Detail

      • 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
      • ValidateClusterName

        public static boolean ValidateClusterName​(java.lang.String clusterName)
      • 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,
                                                java.lang.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​(java.lang.String clusterName,
                                         int programId,
                                         int procedureId,
                                         com.google.protobuf.MessageLite request,
                                         java.lang.Class<? extends com.google.protobuf.MessageLite> responseClass,
                                         boolean isHardMount)
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception