public class AlertStatus extends Object implements Serializable
The levels in descending order are:
Modifier and Type | Field and Description |
---|---|
static AlertStatus |
ESCALATED
ESCALATED is an alert status indicating that a raised alert has been escalated.
|
static AlertStatus |
NA
NA is an alert status indicating that a component for which an alert has been raised
is no longer available.
|
static AlertStatus |
RAISED
RAISED is an alert status indicating an alert has been raised.
|
static AlertStatus |
RESOLVED
RESOLVED is an alert status indicating that a raised alert has been resolved.
|
static AlertStatus |
SUPPRESSED
SUPPRESSED is an alert status indicating that a raised alert has been suppressed.
|
Modifier | Constructor and Description |
---|---|
protected |
AlertStatus(String name,
int value)
Create a named alert status with a given integer value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compare two objects for value equality.
|
String |
getName()
Return the string name of the alert status.
|
int |
getValue()
Get the integer value for this alert status.
|
int |
hashCode()
Generate a hashcode.
|
boolean |
isEscalated() |
boolean |
isNotAvailable() |
boolean |
isRaised() |
boolean |
isResolved() |
boolean |
isSuppressed() |
boolean |
isUnresolved() |
static AlertStatus |
parse(int value)
Returns an AlertStatus by it's value (see
getValue() ). |
static AlertStatus |
parse(String name)
Returns an AlertStatus by it's value (see
getName() ). |
String |
toString() |
public static final AlertStatus ESCALATED
ESCALATED alert status is intended to inform of a situation that is in need of attention, and has gone worse.
This status is initialized to 1000
.
public static final AlertStatus RAISED
RAISED alerts are intended to inform of a situation that is in need of attention.
This status is
initialized to 900
.
public static final AlertStatus SUPPRESSED
SUPPRESSED alert status is intended to inform of a situation that has been attended, but will not be resolved.
This status is initialized to 800
.
public static final AlertStatus RESOLVED
RESOLVED alert status is intended to inform of a situation that has been attended and has been resolved.
This status is initialized to 700
.
public static final AlertStatus NA
NA (NOT AVAILABLE) alert status is intended to inform of a situation that is in need of attention, but it's status can't be currently determined. This alert status can be considered as a 'resolution' depending on the system involved.
This
status is initialized to 600
.
protected AlertStatus(String name, int value)
Note that this constructor is
"protected" to allow subclassing. In general it is sufficient to use one of the constant
Level objects such as RESOLVED
or RAISED
. However, if there is a need to
add a new alert status, this call may be subclassed and new constants can be defined.
name
- the name of the alert status, for example "RAISED".value
- an integer value for the status.public String getName()
public int getValue()
public boolean isEscalated()
true
if this is an ESCALATED
alert status.public boolean isRaised()
true
if this is a RAISED
alert status.public boolean isSuppressed()
true
if this is a SUPPRESSED
alert status.public boolean isResolved()
true
if this is a RESOLVED
alert status.public boolean isUnresolved()
true
if this is *not* a RESOLVED
alert status; e.g. SUPPRESSED
, RAISED
, or ESCALATED
public boolean isNotAvailable()
true
if this is a NA
alert status.public static AlertStatus parse(String name)
getName()
).name
- representing this statusIllegalArgumentException
- if an unknown status was requested.public static AlertStatus parse(int value)
getValue()
).value
- representing this statusIllegalArgumentException
- if an unknown status was requested.public boolean equals(Object obj)
public int hashCode()
Copyright © GigaSpaces.