Package com.mapr.cli
Class AlarmCommands
java.lang.Object
com.mapr.cliframework.base.CLIBaseClass
com.mapr.cli.common.ListCommand
com.mapr.cli.AlarmCommands
- 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 Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final com.mapr.cliframework.base.CLICommandstatic com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommand[]static final Stringstatic final Stringstatic final Stringstatic com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommand[]static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic Map<com.mapr.fs.cldb.proto.CLDBProto.AlarmInfoFields,com.mapr.cliframework.util.FieldInfo> static 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 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
ConstructorsConstructorDescriptionAlarmCommands(com.mapr.cliframework.base.ProcessedInput input, com.mapr.cliframework.base.CLICommand cliCommand) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.MessageLitebuildNextGroupListRequest(com.google.protobuf.MessageLite prevReq, com.google.protobuf.MessageLite prevResp) com.google.protobuf.MessageLitebuildNextRequest(com.google.protobuf.MessageLite prevReq, com.google.protobuf.MessageLite prevResp) Builds the next request object by inspecting the previous request and previous response.com.mapr.cliframework.base.CommandOutputbooleanhasMore(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.static booleanisValidAlarmTypeName(String alarmTypeName) voidprocessGroupListResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, com.google.protobuf.MessageLite response) voidprocessMutedAlarmListResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, com.google.protobuf.MessageLite response) voidprocessMutedAndRaisedAlarmListResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, com.google.protobuf.MessageLite response) voidprocessResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, com.google.protobuf.MessageLite response) Parse the response and populate the output hierarchy.com.google.protobuf.MessageLitesendGroupListRequest(com.google.protobuf.MessageLite request) com.google.protobuf.MessageLitesendRequest(com.google.protobuf.MessageLite request) Send the request using RPC and fetch the response.booleanvalidateInputParams(com.mapr.cliframework.base.CommandOutput output) 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
-
ALARM_NAME_PARAM_NAME
- See Also:
-
ALARM_NEWNAME_PARAM_NAME
- See Also:
-
ALARM_TERSE_NAME_PARAM_NAME
- See Also:
-
ALARM_TYPE_PARAM_NAME
- See Also:
-
ALARM_DISPLAY_NAME_PARAM_NAME
- See Also:
-
ALARM_SERVICE_DISPLAY_NAME
- See Also:
-
ALARM_SERVICE_KEY_NAME
- See Also:
-
ALARM_BASE_SERVICE_NAME
- See Also:
-
ALARM_UI_DISPLAY_NAME
- See Also:
-
ALARM_GROUP_DISPLAY_NAME
- See Also:
-
ALARM_TOOLTIP_NAME
- See Also:
-
SUMMARY_PARAM_NAME
- See Also:
-
ENTITY_LIMIT_PARAM_NAME
- See Also:
-
CLEARED_ALARMS_PARAM_NAME
- See Also:
-
ENTITY_PARAM_NAME
- See Also:
-
VALUES_PARAM_NAME
- See Also:
-
DESC_PARAM_NAME
- See Also:
-
START_PARAM_NAME
- See Also:
-
LIMIT_PARAM_NAME
- See Also:
-
FILTER_PARAM_NAME
- See Also:
-
OUTPUT_PARAM_NAME
- See Also:
-
ALARM_GROUP_NAME_PARAM
- See Also:
-
ALARM_GROUP_EMAILS_PARAM
- See Also:
-
ALARM_GROUP_ALARMS_PARAM
- See Also:
-
ALARM_GROUP_LIST_CMD
- See Also:
-
MULTI_ARG_SEP
- See Also:
-
SORTBY_PARAM_NAME
- See Also:
-
MUTED_ALARMS_PARAM_NAME
- See Also:
-
ALL_ALARMS_PARAM_NAME
- See Also:
-
MUTE_DURATION_CONFIG_PARAM_NAME
- See Also:
-
TIME_FRAME_FROM_PARAM_NAME
- See Also:
-
TIME_FRAME_TILL_PARAM_NAME
- See Also:
-
SORTING_ORDER_PARAM_NAME
- See Also:
-
ASCENDING_SORTING_ORDER_PARAM_NAME
- See Also:
-
DESCENDING_SORTING_ORDER_PARAM_NAME
- See Also:
-
NEED_ALARMS_COUNT
- See Also:
-
S3_ACCOUNT_NAME
- See Also:
-
S3_CLUSTER_ALARM
- See Also:
-
ALARM_GROUP_INFO
- See Also:
-
ALARM_GROUP_WARN
- See Also:
-
ALARM_GROUP_ERROR
- See Also:
-
alarmNameMap
-
baseParams
-
configCmdsArray
public static final com.mapr.cliframework.base.CLICommand[] configCmdsArray -
configCmds
public static com.mapr.cliframework.base.CLICommand configCmds -
addGroupEmailUsage
- See Also:
-
deleteGroupEmailUsage
- See Also:
-
addGroupAlarmUsage
- See Also:
-
deleteGroupAlarmUsage
- See Also:
-
alarmGroupCmdsArray
public static final com.mapr.cliframework.base.CLICommand[] alarmGroupCmdsArray -
alarmGroupCmds
public static com.mapr.cliframework.base.CLICommand alarmGroupCmds -
alarmCmds
public static final com.mapr.cliframework.base.CLICommand alarmCmds -
fieldTable
public static Map<com.mapr.fs.cldb.proto.CLDBProto.AlarmInfoFields,com.mapr.cliframework.util.FieldInfo> fieldTable
-
-
Constructor Details
-
AlarmCommands
public AlarmCommands(com.mapr.cliframework.base.ProcessedInput input, com.mapr.cliframework.base.CLICommand cliCommand)
-
-
Method Details
-
isValidAlarmTypeName
-
validateInputParams
public boolean validateInputParams(com.mapr.cliframework.base.CommandOutput output) throws com.mapr.cliframework.base.CLIProcessingException - Throws:
com.mapr.cliframework.base.CLIProcessingException
-
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
-
buildNextRequest
public com.google.protobuf.MessageLite 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
-
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.google.protobuf.MessageLite 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
-
sendGroupListRequest
public com.google.protobuf.MessageLite sendGroupListRequest(com.google.protobuf.MessageLite request) throws com.mapr.cliframework.base.CLIProcessingException - Throws:
com.mapr.cliframework.base.CLIProcessingException
-
buildNextGroupListRequest
public com.google.protobuf.MessageLite buildNextGroupListRequest(com.google.protobuf.MessageLite prevReq, com.google.protobuf.MessageLite prevResp) throws com.mapr.cliframework.base.CLIProcessingException - Throws:
com.mapr.cliframework.base.CLIProcessingException
-
processGroupListResponse
public void processGroupListResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, com.google.protobuf.MessageLite response) throws com.mapr.cliframework.base.CLIProcessingException - Throws:
com.mapr.cliframework.base.CLIProcessingException
-
processMutedAlarmListResponse
public void processMutedAlarmListResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, com.google.protobuf.MessageLite response) throws com.mapr.cliframework.base.CLIProcessingException - Throws:
com.mapr.cliframework.base.CLIProcessingException
-
processMutedAndRaisedAlarmListResponse
public void processMutedAndRaisedAlarmListResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, com.google.protobuf.MessageLite response) throws com.mapr.cliframework.base.CLIProcessingException - Throws:
com.mapr.cliframework.base.CLIProcessingException
-