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
  • Field Details

    • MIRROR_VOLUME_PARAM_NAME

      public static final String MIRROR_VOLUME_PARAM_NAME
      See Also:
    • ROLLFWD_POST_MIRROR

      public static final String ROLLFWD_POST_MIRROR
      See Also:
    • DEL_SRCSNAP

      public static final String DEL_SRCSNAP
      See Also:
    • MIRROR_VERBOSE_OUTPUT

      public static final String MIRROR_VERBOSE_OUTPUT
      See Also:
    • IS_FULL_MIRROR

      public static final String IS_FULL_MIRROR
      See Also:
    • MULTI_ARG_SEP

      public static final String MULTI_ARG_SEP
      See Also:
    • START_PARAM_NAME

      public static final String START_PARAM_NAME
      See Also:
    • LIMIT_PARAM_NAME

      public static final String LIMIT_PARAM_NAME
      See Also:
    • SRC_SNAPSHOT_NAME

      public static final String SRC_SNAPSHOT_NAME
      See Also:
    • SRC_SNAPSHOT_FORCE_MIRROR_START

      public static final String SRC_SNAPSHOT_FORCE_MIRROR_START
      See Also:
    • startMirrorUsage

      public static final String startMirrorUsage
      See Also:
    • stopMirrorUsage

      public static final String stopMirrorUsage
      See Also:
    • pushMirrorUsage

      public static final String pushMirrorUsage
      See Also:
    • mirrorStatusUsage

      public static final String mirrorStatusUsage
      See Also:
    • baseParams

      public static Map<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 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:
      executeRealCommand in class com.mapr.cliframework.base.CLIBaseClass
      Throws:
      com.mapr.cliframework.base.CLIProcessingException
    • ValidateClusterName

      public static boolean ValidateClusterName(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, 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