Class DefaultAlert
java.lang.Object
org.openspaces.admin.internal.alert.DefaultAlert
- All Implemented Interfaces:
Externalizable,Serializable,Alert,InternalAlert
A plain java object representing an alert issued by an alert bean or an alert provider.
- Since:
- 8.0
- Author:
- Moran Avigdor
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDescription of the component: host - [Host IP] GSC - [GSC Name] on [Host IP] LUS - LUS on [Host IP] GSM - GSM on [Host IP] PU instance - [PU name] [Partition number] [Primary or backup] on [Host IP] Mirror - Mirror on [Host IP] EDS - EDS on [Host IP]getName()longvoidvoidsetAlertUid(String alertUid) voidsetComponentDescription(String componentDescription) voidsetComponentUid(String componentUid) voidvoidsetDescription(String description) voidsetGroupUid(String groupUid) voidvoidsetProperties(Map<String, String> properties) voidsetSeverity(AlertSeverity severity) voidsetStatus(AlertStatus status) voidsetTimestamp(long timestamp) toString()void
-
Constructor Details
-
DefaultAlert
public DefaultAlert()- See Also:
-
-
Method Details
-
getName
-
setName
-
getDescription
- Specified by:
getDescriptionin interfaceAlert- Returns:
- Description - a description of the alert.
-
setDescription
-
getTimestamp
public long getTimestamp()- Specified by:
getTimestampin interfaceAlert- Returns:
- Timestamp - the date and time the alert occurred.
-
setTimestamp
public void setTimestamp(long timestamp) -
getSeverity
- Specified by:
getSeverityin interfaceAlert- Returns:
- Severity - the defined severity of the alert.
-
setSeverity
-
getStatus
-
setStatus
-
getAlertUid
- Specified by:
getAlertUidin interfaceAlert- Returns:
- Alert UID - the unique identification for this alert.
-
setAlertUid
- Specified by:
setAlertUidin interfaceInternalAlert
-
getGroupUid
- Specified by:
getGroupUidin interfaceAlert- Returns:
- Group UID - the unique identification of the group this alert belongs to.
-
setGroupUid
-
getComponentUid
- Specified by:
getComponentUidin interfaceAlert- Returns:
- Component UID - the unique identifier of the component associated with the alert.
-
setComponentUid
-
getComponentDescription
Description copied from interface:AlertDescription of the component:- host - [Host IP]
- GSC - [GSC Name] on [Host IP]
- LUS - LUS on [Host IP]
- GSM - GSM on [Host IP]
- PU instance - [PU name] [Partition number] [Primary or backup] on [Host IP]
- Mirror - Mirror on [Host IP]
- EDS - EDS on [Host IP]
- Specified by:
getComponentDescriptionin interfaceAlert- Returns:
- Component Description - the description of the component specified by the
Alert.getComponentUid().
-
setComponentDescription
-
getConfig
-
setConfig
-
getProperties
- Specified by:
getPropertiesin interfaceAlert- Returns:
- A map of String key-value property pairs of any runtime properties exposed by the alert bean.
-
setProperties
-
toString
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-