Class AbstractAlert

java.lang.Object
org.openspaces.admin.alert.alerts.AbstractAlert
All Implemented Interfaces:
Externalizable, Serializable, Alert
Direct Known Subclasses:
CpuUtilizationAlert, GarbageCollectionAlert, HeapMemoryUtilizationAlert, MirrorPersistenceFailureAlert, PhysicalMemoryUtilizationAlert, ProcessingUnitInstanceMemberAliveIndicatorAlert, ProvisionFailureAlert, ReplicationChannelDisconnectedAlert, ReplicationRedoLogOverflowToDiskAlert, ReplicationRedoLogSizeAlert, SpacePartitionSplitBrainAlert

public class AbstractAlert extends Object implements Alert
An abstraction over a fired alert, exposing the Alert API. Subclass to introduce a new type of alert, with strongly typed getter methods over runtime properties specified by Alert.getProperties().
Since:
8.0
Author:
Moran Avigdor
See Also:
  • Constructor Details

    • AbstractAlert

      public AbstractAlert()
      required by java.io.Externalizable
    • AbstractAlert

      public AbstractAlert(Alert alert)
  • Method Details

    • getAlert

      public Alert getAlert()
      The alert set upon construction
    • getAlertUid

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

      public String getComponentUid()
      Specified by:
      getComponentUid in interface Alert
      Returns:
      Component UID - the unique identifier of the component associated with the alert.
    • 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().
    • getDescription

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

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

      public String getName()
      Specified by:
      getName in interface Alert
      Returns:
      Alert Name - the name assigned to the alert.
    • 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.
    • 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.
    • getSeverity

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

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

      public long getTimestamp()
      Specified by:
      getTimestamp in interface Alert
      Returns:
      Timestamp - the date and time the alert occurred.
    • 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