public class AlarmCommands extends ListCommand implements com.mapr.cliframework.base.CLIInterface
| Modifier and Type | Class and Description |
|---|---|
static class |
AlarmCommands.AlarmEntryField |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
addGroupAlarmUsage |
static java.lang.String |
addGroupEmailUsage |
static java.lang.String |
ALARM_BASE_SERVICE_NAME |
static java.lang.String |
ALARM_DISPLAY_NAME_PARAM_NAME |
static java.lang.String |
ALARM_GROUP_ALARMS_PARAM |
static java.lang.String |
ALARM_GROUP_DISPLAY_NAME |
static java.lang.String |
ALARM_GROUP_EMAILS_PARAM |
static java.lang.String |
ALARM_GROUP_LIST_CMD |
static java.lang.String |
ALARM_GROUP_NAME_PARAM |
static java.lang.String |
ALARM_NAME_PARAM_NAME |
static java.lang.String |
ALARM_NEWNAME_PARAM_NAME |
static java.lang.String |
ALARM_SERVICE_DISPLAY_NAME |
static java.lang.String |
ALARM_SERVICE_KEY_NAME |
static java.lang.String |
ALARM_TERSE_NAME_PARAM_NAME |
static java.lang.String |
ALARM_TOOLTIP_NAME |
static java.lang.String |
ALARM_TYPE_PARAM_NAME |
static java.lang.String |
ALARM_UI_DISPLAY_NAME |
static com.mapr.cliframework.base.CLICommand |
alarmCmds |
static java.lang.String[] |
AlarmEntryFieldLongName |
static com.mapr.cliframework.base.CLICommand |
alarmGroupCmds |
static com.mapr.cliframework.base.CLICommand[] |
alarmGroupCmdsArray |
static java.util.Map<java.lang.String,com.mapr.fs.proto.Common.AlarmType> |
alarmNameMap |
static java.lang.String |
ALL_ALARMS_PARAM_NAME |
static java.lang.String |
ASCENDING_SORTING_ORDER_PARAM_NAME |
static java.util.Map<java.lang.String,com.mapr.cliframework.base.inputparams.BaseInputParameter> |
baseParams |
static java.lang.String |
CLEARED_ALARMS_PARAM_NAME |
static com.mapr.cliframework.base.CLICommand |
configCmds |
static com.mapr.cliframework.base.CLICommand[] |
configCmdsArray |
static java.lang.String |
deleteGroupAlarmUsage |
static java.lang.String |
deleteGroupEmailUsage |
static java.lang.String |
DESC_PARAM_NAME |
static java.lang.String |
DESCENDING_SORTING_ORDER_PARAM_NAME |
static java.lang.String |
ENTITY_PARAM_NAME |
static java.util.Map<AlarmCommands.AlarmEntryField,com.mapr.cliframework.util.FieldInfo> |
fieldTable |
static java.lang.String |
FILTER_PARAM_NAME |
static java.lang.String |
LIMIT_PARAM_NAME |
static java.lang.String |
MULTI_ARG_SEP |
static java.lang.String |
MUTE_DURATION_CONFIG_PARAM_NAME |
static java.lang.String |
MUTED_ALARMS_PARAM_NAME |
static java.lang.String |
OUTPUT_PARAM_NAME |
static java.lang.String |
SORTBY_PARAM_NAME |
static java.lang.String |
SORTING_ORDER_PARAM_NAME |
static java.lang.String |
START_PARAM_NAME |
static java.lang.String |
SUMMARY_PARAM_NAME |
static java.lang.String |
TIME_FRAME_FROM_PARAM_NAME |
static java.lang.String |
TIME_FRAME_TILL_PARAM_NAME |
static java.lang.String |
VALUES_PARAM_NAME |
| Constructor and Description |
|---|
AlarmCommands(com.mapr.cliframework.base.ProcessedInput input,
com.mapr.cliframework.base.CLICommand cliCommand) |
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.MessageLite |
buildNextGroupListRequest(com.google.protobuf.MessageLite prevReq,
com.google.protobuf.MessageLite prevResp) |
com.google.protobuf.MessageLite |
buildNextRequest(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.CommandOutput |
executeRealCommand() |
boolean |
hasMore(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 boolean |
isValidAlarmTypeName(java.lang.String alarmTypeName) |
void |
processGroupListResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out,
com.google.protobuf.MessageLite response) |
void |
processMutedAlarmListResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out,
com.google.protobuf.MessageLite response) |
void |
processMutedAndRaisedAlarmListResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out,
com.google.protobuf.MessageLite response) |
void |
processResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out,
com.google.protobuf.MessageLite response)
Parse the response and populate the output hierarchy.
|
com.google.protobuf.MessageLite |
sendGroupListRequest(com.google.protobuf.MessageLite request) |
com.google.protobuf.MessageLite |
sendRequest(com.google.protobuf.MessageLite request)
Send the request using RPC and fetch the response.
|
boolean |
validateInputParams(com.mapr.cliframework.base.CommandOutput output) |
getFilters, getNextLimiter, hasMore, listexecuteCommand, 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 ALARM_NAME_PARAM_NAME
public static final java.lang.String ALARM_NEWNAME_PARAM_NAME
public static final java.lang.String ALARM_TERSE_NAME_PARAM_NAME
public static final java.lang.String ALARM_TYPE_PARAM_NAME
public static final java.lang.String ALARM_DISPLAY_NAME_PARAM_NAME
public static final java.lang.String ALARM_SERVICE_DISPLAY_NAME
public static final java.lang.String ALARM_SERVICE_KEY_NAME
public static final java.lang.String ALARM_BASE_SERVICE_NAME
public static final java.lang.String ALARM_UI_DISPLAY_NAME
public static final java.lang.String ALARM_GROUP_DISPLAY_NAME
public static final java.lang.String ALARM_TOOLTIP_NAME
public static final java.lang.String SUMMARY_PARAM_NAME
public static final java.lang.String CLEARED_ALARMS_PARAM_NAME
public static final java.lang.String ENTITY_PARAM_NAME
public static final java.lang.String VALUES_PARAM_NAME
public static final java.lang.String DESC_PARAM_NAME
public static final java.lang.String START_PARAM_NAME
public static final java.lang.String LIMIT_PARAM_NAME
public static final java.lang.String FILTER_PARAM_NAME
public static final java.lang.String OUTPUT_PARAM_NAME
public static final java.lang.String ALARM_GROUP_NAME_PARAM
public static final java.lang.String ALARM_GROUP_EMAILS_PARAM
public static final java.lang.String ALARM_GROUP_ALARMS_PARAM
public static final java.lang.String ALARM_GROUP_LIST_CMD
public static final java.lang.String MULTI_ARG_SEP
public static final java.lang.String SORTBY_PARAM_NAME
public static final java.lang.String MUTED_ALARMS_PARAM_NAME
public static final java.lang.String ALL_ALARMS_PARAM_NAME
public static final java.lang.String MUTE_DURATION_CONFIG_PARAM_NAME
public static final java.lang.String TIME_FRAME_FROM_PARAM_NAME
public static final java.lang.String TIME_FRAME_TILL_PARAM_NAME
public static final java.lang.String SORTING_ORDER_PARAM_NAME
public static final java.lang.String ASCENDING_SORTING_ORDER_PARAM_NAME
public static final java.lang.String DESCENDING_SORTING_ORDER_PARAM_NAME
public static final java.util.Map<java.lang.String,com.mapr.fs.proto.Common.AlarmType> alarmNameMap
public static java.util.Map<java.lang.String,com.mapr.cliframework.base.inputparams.BaseInputParameter> baseParams
public static final com.mapr.cliframework.base.CLICommand[] configCmdsArray
public static com.mapr.cliframework.base.CLICommand configCmds
public static final java.lang.String addGroupEmailUsage
public static final java.lang.String deleteGroupEmailUsage
public static final java.lang.String addGroupAlarmUsage
public static final java.lang.String deleteGroupAlarmUsage
public static final com.mapr.cliframework.base.CLICommand[] alarmGroupCmdsArray
public static com.mapr.cliframework.base.CLICommand alarmGroupCmds
public static final com.mapr.cliframework.base.CLICommand alarmCmds
public static java.lang.String[] AlarmEntryFieldLongName
public static java.util.Map<AlarmCommands.AlarmEntryField,com.mapr.cliframework.util.FieldInfo> fieldTable
public AlarmCommands(com.mapr.cliframework.base.ProcessedInput input,
com.mapr.cliframework.base.CLICommand cliCommand)
public static boolean isValidAlarmTypeName(java.lang.String alarmTypeName)
public boolean validateInputParams(com.mapr.cliframework.base.CommandOutput output)
throws com.mapr.cliframework.base.CLIProcessingException
com.mapr.cliframework.base.CLIProcessingExceptionpublic com.mapr.cliframework.base.CommandOutput executeRealCommand()
throws com.mapr.cliframework.base.CLIProcessingException
executeRealCommand in class com.mapr.cliframework.base.CLIBaseClasscom.mapr.cliframework.base.CLIProcessingExceptionpublic com.google.protobuf.MessageLite buildNextRequest(com.google.protobuf.MessageLite prevReq,
com.google.protobuf.MessageLite prevResp)
throws com.mapr.cliframework.base.CLIProcessingException
ListIteratorbuildNextRequest in interface ListIteratorbuildNextRequest in class ListCommandcom.mapr.cliframework.base.CLIProcessingExceptionpublic boolean hasMore(com.google.protobuf.MessageLite prevReq,
com.google.protobuf.MessageLite prevResp)
throws com.mapr.cliframework.base.CLIProcessingException
ListIteratorhasMore in interface ListIteratorhasMore in class ListCommandcom.mapr.cliframework.base.CLIProcessingExceptionpublic void processResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out,
com.google.protobuf.MessageLite response)
throws com.mapr.cliframework.base.CLIProcessingException
ListIteratorprocessResponse in interface ListIteratorprocessResponse in class ListCommandout - - CommandOutput.OutputHierarchyresponse - - response objectcom.mapr.cliframework.base.CLIProcessingExceptionpublic com.google.protobuf.MessageLite sendRequest(com.google.protobuf.MessageLite request)
throws com.mapr.cliframework.base.CLIProcessingException
ListIteratorsendRequest in interface ListIteratorsendRequest in class ListCommandrequest - - request object.com.mapr.cliframework.base.CLIProcessingExceptionpublic com.google.protobuf.MessageLite sendGroupListRequest(com.google.protobuf.MessageLite request)
throws com.mapr.cliframework.base.CLIProcessingException
com.mapr.cliframework.base.CLIProcessingExceptionpublic com.google.protobuf.MessageLite buildNextGroupListRequest(com.google.protobuf.MessageLite prevReq,
com.google.protobuf.MessageLite prevResp)
throws com.mapr.cliframework.base.CLIProcessingException
com.mapr.cliframework.base.CLIProcessingExceptionpublic void processGroupListResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out,
com.google.protobuf.MessageLite response)
throws com.mapr.cliframework.base.CLIProcessingException
com.mapr.cliframework.base.CLIProcessingExceptionpublic void processMutedAlarmListResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out,
com.google.protobuf.MessageLite response)
throws com.mapr.cliframework.base.CLIProcessingException
com.mapr.cliframework.base.CLIProcessingExceptionpublic void processMutedAndRaisedAlarmListResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out,
com.google.protobuf.MessageLite response)
throws com.mapr.cliframework.base.CLIProcessingException
com.mapr.cliframework.base.CLIProcessingException