|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.admin.alert.AlertStatus
public class AlertStatus
The alert status levels.
The levels in descending order are:
Field Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
protected |
AlertStatus(String name,
int value)
Create a named alert status with a given integer value. |
Method Summary | |
---|---|
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()
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
.
Constructor Detail |
---|
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.Method Detail |
---|
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 isNotAvailable()
true
if this is a NA
alert status.public static AlertStatus parse(String name)
getName()
).
name
- representing this status
IllegalArgumentException
- if an unknown status was requested.public static AlertStatus parse(int value)
getValue()
).
value
- representing this status
IllegalArgumentException
- if an unknown status was requested.public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public final String toString()
toString
in class Object
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |