public class PluggableAlarmUtil
extends java.lang.Object
| Constructor and Description |
|---|
PluggableAlarmUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<NodeField,com.mapr.cliframework.util.FieldInfo> |
appendNodeMap(com.mapr.fs.proto.Security.CredentialsMsg creds,
com.google.common.collect.ImmutableMap.Builder<NodeField,com.mapr.cliframework.util.FieldInfo> table) |
static java.util.Map<VolumeField,com.mapr.cliframework.util.FieldInfo> |
appendVolumeMap(com.mapr.fs.proto.Security.CredentialsMsg creds,
com.google.common.collect.ImmutableMap.Builder<VolumeField,com.mapr.cliframework.util.FieldInfo> table)
Map volume type alarms to the volume immutable map
|
static com.mapr.fs.proto.Common.PluggableAlarm |
getAlarmByName(com.mapr.fs.proto.Security.CredentialsMsg creds,
java.lang.String alarmName) |
static com.mapr.fs.proto.Common.AlarmId |
getAlarmId(java.lang.String alarmName)
NOTE: This method is in com.mapr.fs.cldb.alarms.PluggableAlarms as well
Static method to get the AlarmId object from a given alarm string
|
static java.util.List<com.mapr.fs.proto.Common.PluggableAlarm> |
getAlarms(com.mapr.fs.proto.Security.CredentialsMsg creds,
int start,
int end)
Method that calls getAlarms with the given values.
|
static java.util.List<com.mapr.fs.proto.Common.PluggableAlarm> |
getAlarms(com.mapr.fs.proto.Security.CredentialsMsg creds,
java.lang.String alarmName)
Method that calls getAlarms with the given values.
|
static java.util.List<com.mapr.fs.proto.Common.PluggableAlarm> |
getAlarms(com.mapr.fs.proto.Security.CredentialsMsg creds,
java.lang.String alarmName,
int start,
int limit)
Method to get all the pluggable alarms from the CLDB
|
static java.util.List<com.mapr.fs.proto.Common.PluggableAlarm> |
getAlarmsByType(com.mapr.fs.proto.Security.CredentialsMsg creds,
int start,
int end,
java.lang.String type) |
static int |
getMaxNumNodes(com.mapr.fs.proto.Security.CredentialsMsg creds,
int currentMax) |
static java.util.List<com.mapr.fs.proto.Common.PluggableAlarm> |
getNodeAlarms(com.mapr.fs.proto.Security.CredentialsMsg creds,
int start,
int end) |
static java.util.List<com.mapr.fs.proto.Common.PluggableAlarm> |
getVolumeAlarms(com.mapr.fs.proto.Security.CredentialsMsg creds,
int start,
int end) |
static void |
resetCache()
Method used to reset pluggableAlarms cache.
|
public static java.util.List<com.mapr.fs.proto.Common.PluggableAlarm> getAlarms(com.mapr.fs.proto.Security.CredentialsMsg creds,
java.lang.String alarmName,
int start,
int limit)
throws com.mapr.cliframework.base.CLIProcessingException
creds - The user credentials to usealarmName - The alarmName to get specifically. If null, then gets them allstart - The first record to start at. Default should be 0limit - The last record. Default should be 50. Uses NUM_ALARMS_PER_RPC if greater than it's valuecom.mapr.cliframework.base.CLIProcessingException - Throws exception on any error, such as connecting to CLDB.public static java.util.List<com.mapr.fs.proto.Common.PluggableAlarm> getAlarms(com.mapr.fs.proto.Security.CredentialsMsg creds,
int start,
int end)
throws com.mapr.cliframework.base.CLIProcessingException
creds - User credentials to usestart - The first record to start at. Default should be 0end - The last record. Default should be 50. Uses NUM_ALARMS_PER_RPC if greater than it's valuecom.mapr.cliframework.base.CLIProcessingException - Throws exception on any error, such as connecting to CLDB.public static java.util.List<com.mapr.fs.proto.Common.PluggableAlarm> getAlarmsByType(com.mapr.fs.proto.Security.CredentialsMsg creds,
int start,
int end,
java.lang.String type)
throws com.mapr.cliframework.base.CLIProcessingException
com.mapr.cliframework.base.CLIProcessingExceptionpublic static java.util.List<com.mapr.fs.proto.Common.PluggableAlarm> getVolumeAlarms(com.mapr.fs.proto.Security.CredentialsMsg creds,
int start,
int end)
throws com.mapr.cliframework.base.CLIProcessingException
com.mapr.cliframework.base.CLIProcessingExceptionpublic static java.util.List<com.mapr.fs.proto.Common.PluggableAlarm> getNodeAlarms(com.mapr.fs.proto.Security.CredentialsMsg creds,
int start,
int end)
throws com.mapr.cliframework.base.CLIProcessingException
com.mapr.cliframework.base.CLIProcessingExceptionpublic static java.util.List<com.mapr.fs.proto.Common.PluggableAlarm> getAlarms(com.mapr.fs.proto.Security.CredentialsMsg creds,
java.lang.String alarmName)
throws com.mapr.cliframework.base.CLIProcessingException
creds - User credentials to usealarmName - The alarmName to get specifically. If null, then gets them allcom.mapr.cliframework.base.CLIProcessingException - Throws exception on any error, such as connecting to CLDB.public static java.util.Map<VolumeField,com.mapr.cliframework.util.FieldInfo> appendVolumeMap(com.mapr.fs.proto.Security.CredentialsMsg creds, com.google.common.collect.ImmutableMap.Builder<VolumeField,com.mapr.cliframework.util.FieldInfo> table)
creds - table - public static java.util.Map<NodeField,com.mapr.cliframework.util.FieldInfo> appendNodeMap(com.mapr.fs.proto.Security.CredentialsMsg creds, com.google.common.collect.ImmutableMap.Builder<NodeField,com.mapr.cliframework.util.FieldInfo> table)
public static com.mapr.fs.proto.Common.AlarmId getAlarmId(java.lang.String alarmName)
alarmName - The alarm name to look up in AlarmId enum objectpublic static com.mapr.fs.proto.Common.PluggableAlarm getAlarmByName(com.mapr.fs.proto.Security.CredentialsMsg creds,
java.lang.String alarmName)
public static int getMaxNumNodes(com.mapr.fs.proto.Security.CredentialsMsg creds,
int currentMax)
public static void resetCache()