Class MirrorPersistenceFailureAlert

java.lang.Object
org.openspaces.admin.alert.alerts.AbstractAlert
org.openspaces.admin.alert.alerts.MirrorPersistenceFailureAlert
All Implemented Interfaces:
Externalizable, Serializable, Alert

public class MirrorPersistenceFailureAlert extends AbstractAlert
A Mirror persistency failure alert, triggered upon a failed replication from primary Space to Mirror Space, due to an error (e.g. a DB error). The alert is raised when the replication channel has encountered an exception reported by the Mirror target. The alert is resolved when the Mirror manages to persist to the DB for first time after the alert has been triggered.

This alert will be received on the call to AlertTriggeredEventListener.alertTriggered(Alert) for registered listeners.

Since:
8.0
Author:
Moran Avigdor
See Also:
  • Field Details

  • Constructor Details

    • MirrorPersistenceFailureAlert

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

      public MirrorPersistenceFailureAlert(Alert alert)
  • Method Details

    • getComponentUid

      public String getComponentUid()
      The component UID is equivalent to GridComponent.getUid()
      Specified by:
      getComponentUid in interface Alert
      Overrides:
      getComponentUid in class AbstractAlert
      Returns:
      Component UID - the unique identifier of the component associated with the alert.
    • getHostAddress

      public String getHostAddress()
      The host address of the machine that this alert corresponds to.
      Returns:
      the host address; may be null.
    • getHostName

      public String getHostName()
      The host name of the machine that this alert corresponds to.
      Returns:
      the host name; may be null.
    • getVirtualMachineUid

      public String getVirtualMachineUid()
      The uid of the virtual machine that this alert corresponds to.
      Returns:
      the virtual machine uid; may be null.
    • getInconsistencyReason

      public String getInconsistencyReason()
      The reason why a source (primary Space) could not replicate to a target (Mirror Space). This reason could be failure to persist to a database, a failure to replicate to due memory shortage, failure to connect to target, etc. The failure is given as a full stack trace of the original exception.
      Returns:
      the inconsistency reason; may be null.
      See Also:
    • getRootCauseMessage

      public String getRootCauseMessage()
      The last cause message in the reason given by getInconsistencyReason().
      Returns:
      the root cause message; may be null.
    • getRootCauseTrace

      public String getRootCauseTrace()
      The last cause stack trace in the reason given by getInconsistencyReason().
      Returns:
      the root cause trace; may be null.
    • getReplicationStatus

      public String getReplicationStatus()
      The replication status from source to target Space.
      Returns:
      the replication status; may be null.
    • getRedoLogSize

      public Integer getRedoLogSize()
      The total redo-log size (for all channels) for both memory and swap.
      Returns:
      the redo-log size; may be null.
    • getRedoLogRetainedSize

      public Integer getRedoLogRetainedSize()
      The redo-log size for replication packets outgoing to the Mirror (both memory and swap).
      Returns:
      the redo-log size; may be null.
    • getFailedOperationCount

      public Integer getFailedOperationCount()
      The failed operation count reported by the Mirror.
      Returns:
      the failed operation count; may be null.
    • getInProgressOperationCount

      public Integer getInProgressOperationCount()
      The in-progress operation count reported by the Mirror.
      Returns:
      the in-progress operation count; may be null.
    • getDiscardedOperationCount

      public Integer getDiscardedOperationCount()
      The discarded operation count reported by the Mirror.
      Returns:
      the discarded operation count; may be null.