public class VolumeMirrorCommands
extends com.mapr.cliframework.base.CLIBaseClass
implements com.mapr.cliframework.base.CLIInterface
| Modifier and Type | Class and Description |
|---|---|
class |
VolumeMirrorCommands.MirrorPushThread |
class |
VolumeMirrorCommands.MirrorVolumeInfo |
| Modifier and Type | Field and Description |
|---|---|
static java.util.Map<java.lang.String,com.mapr.cliframework.base.inputparams.BaseInputParameter> |
baseParams |
static java.lang.String |
DEL_SRCSNAP |
static java.lang.String |
IS_FULL_MIRROR |
static java.lang.String |
MIRROR_VERBOSE_OUTPUT |
static java.lang.String |
MIRROR_VOLUME_PARAM_NAME |
static com.mapr.cliframework.base.CLICommand |
mirrorCommands |
static com.mapr.cliframework.base.CLICommand[] |
mirrorCommandsArray |
static com.mapr.cliframework.base.CLICommand |
mirrorPushCommand |
static com.mapr.cliframework.base.CLICommand |
mirrorStartCommand |
static com.mapr.cliframework.base.CLICommand |
mirrorStopCommand |
static java.lang.String |
MULTI_ARG_SEP |
static java.lang.String |
pushMirrorUsage |
static java.lang.String |
ROLLFWD_POST_MIRROR |
static java.lang.String |
startMirrorUsage |
static java.lang.String |
stopMirrorUsage |
| Constructor and Description |
|---|
VolumeMirrorCommands(com.mapr.cliframework.base.ProcessedInput input,
com.mapr.cliframework.base.CLICommand cliCommand) |
| Modifier and Type | Method and 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) |
executeCommand, executeSimpleSHHCommand, executeSimpleSHHCommand, getCLICommand, getCommandUsage, getGIds, getInput, getKeyType, getParamBooleanValue, getParamDateValue, getParamIntValue, getParamLongValue, getParamObjectValue, getParamTextValue, getUserCredentials, getUserId, getUserLoginId, getVersion, isParamPresent, isParamValueEmpty, setServerCall, setUserCredentials, setVersion, validateInputpublic static final java.lang.String MIRROR_VOLUME_PARAM_NAME
public static final java.lang.String ROLLFWD_POST_MIRROR
public static final java.lang.String DEL_SRCSNAP
public static final java.lang.String MIRROR_VERBOSE_OUTPUT
public static final java.lang.String IS_FULL_MIRROR
public static final java.lang.String MULTI_ARG_SEP
public static final java.lang.String startMirrorUsage
public static final java.lang.String stopMirrorUsage
public static final java.lang.String pushMirrorUsage
public static java.util.Map<java.lang.String,com.mapr.cliframework.base.inputparams.BaseInputParameter> baseParams
public static final com.mapr.cliframework.base.CLICommand mirrorStartCommand
public static final com.mapr.cliframework.base.CLICommand mirrorStopCommand
public static final com.mapr.cliframework.base.CLICommand mirrorPushCommand
public static com.mapr.cliframework.base.CLICommand[] mirrorCommandsArray
public static com.mapr.cliframework.base.CLICommand mirrorCommands
public VolumeMirrorCommands(com.mapr.cliframework.base.ProcessedInput input,
com.mapr.cliframework.base.CLICommand cliCommand)
public com.mapr.cliframework.base.CommandOutput executeRealCommand()
throws com.mapr.cliframework.base.CLIProcessingException
executeRealCommand in class com.mapr.cliframework.base.CLIBaseClasscom.mapr.cliframework.base.CLIProcessingExceptionpublic static boolean ValidateClusterName(java.lang.String clusterName)
public static int ValidateMirrorVolume(VolumeMirrorCommands.MirrorVolumeInfo mInfo, com.mapr.fs.proto.Security.CredentialsMsg creds) throws com.mapr.cliframework.base.CLIProcessingException
com.mapr.cliframework.base.CLIProcessingExceptionpublic static int ValidateSourceVolume(VolumeMirrorCommands.MirrorVolumeInfo mInfo, com.mapr.fs.proto.Security.CredentialsMsg creds) throws com.mapr.cliframework.base.CLIProcessingException
com.mapr.cliframework.base.CLIProcessingExceptionpublic 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
com.mapr.cliframework.base.CLIProcessingExceptionpublic 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
java.lang.Exception