Class DefaultAlert

java.lang.Object
org.openspaces.admin.internal.alert.DefaultAlert
All Implemented Interfaces:
Externalizable, Serializable, Alert, InternalAlert

public class DefaultAlert extends Object implements 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 Details

    • DefaultAlert

      public DefaultAlert()
      See Also:
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Alert
      Returns:
      Alert Name - the name assigned to the alert.
    • setName

      public void setName(String name)
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface Alert
      Returns:
      Description - a description of the alert.
    • setDescription

      public void setDescription(String description)
    • getTimestamp

      public long getTimestamp()
      Specified by:
      getTimestamp in interface Alert
      Returns:
      Timestamp - the date and time the alert occurred.
    • setTimestamp

      public void setTimestamp(long timestamp)
    • getSeverity

      public AlertSeverity getSeverity()
      Specified by:
      getSeverity in interface Alert
      Returns:
      Severity - the defined severity of the alert.
    • setSeverity

      public void setSeverity(AlertSeverity severity)
    • getStatus

      public AlertStatus getStatus()
      Specified by:
      getStatus in interface Alert
      Returns:
      Status - the status of the alert.
    • setStatus

      public void setStatus(AlertStatus status)
    • getAlertUid

      public String getAlertUid()
      Specified by:
      getAlertUid in interface Alert
      Returns:
      Alert UID - the unique identification for this alert.
    • setAlertUid

      public void setAlertUid(String alertUid)
      Specified by:
      setAlertUid in interface InternalAlert
    • getGroupUid

      public String getGroupUid()
      Specified by:
      getGroupUid in interface Alert
      Returns:
      Group UID - the unique identification of the group this alert belongs to.
    • setGroupUid

      public void setGroupUid(String groupUid)
    • getComponentUid

      public String getComponentUid()
      Specified by:
      getComponentUid in interface Alert
      Returns:
      Component UID - the unique identifier of the component associated with the alert.
    • setComponentUid

      public void setComponentUid(String componentUid)
    • getComponentDescription

      public String getComponentDescription()
      Description copied from interface: Alert
      Description 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:
      getComponentDescription in interface Alert
      Returns:
      Component Description - the description of the component specified by the Alert.getComponentUid().
    • setComponentDescription

      public void setComponentDescription(String componentDescription)
    • getConfig

      public Map<String,String> getConfig()
      Specified by:
      getConfig in interface Alert
      Returns:
      A map of String key-value property pairs of the configuration properties used to configure the alert bean.
    • setConfig

      public void setConfig(Map<String,String> properties)
    • getProperties

      public Map<String,String> getProperties()
      Specified by:
      getProperties in interface Alert
      Returns:
      A map of String key-value property pairs of any runtime properties exposed by the alert bean.
    • setProperties

      public void setProperties(Map<String,String> properties)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • readExternal

      public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
      Specified by:
      readExternal in interface Externalizable
      Throws:
      IOException
      ClassNotFoundException
    • writeExternal

      public void writeExternal(ObjectOutput out) throws IOException
      Specified by:
      writeExternal in interface Externalizable
      Throws:
      IOException