GigaSpaces XAP 9.7.2 API

org.openspaces.admin.alert.alerts
Class MirrorPersistenceFailureAlert

java.lang.Object
  extended by org.openspaces.admin.alert.alerts.AbstractAlert
      extended by 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:
Serialized Form

Field Summary
static String DISCARDED_OPERATION_COUNT
           
static String FAILED_OPERATION_COUNT
           
static String HOST_ADDRESS
           
static String HOST_NAME
           
static String IN_PROGRESS_OPERATION_COUNT
           
static String INCONSISTENCY_REASON
           
static String REDO_LOG_RETAINED_SIZE
           
static String REDO_LOG_SIZE
           
static String REPLICATION_STATUS
           
static String ROOT_CAUSE_MESSAGE
           
static String ROOT_CAUSE_TRACE
           
static String VIRTUAL_MACHINE_UID
           
 
Constructor Summary
MirrorPersistenceFailureAlert()
          required by java.io.Externalizable
MirrorPersistenceFailureAlert(Alert alert)
           
 
Method Summary
 String getComponentUid()
           The component UID is equivalent to GridComponent.getUid()
 Integer getDiscardedOperationCount()
          The discarded operation count reported by the Mirror.
 Integer getFailedOperationCount()
          The failed operation count reported by the Mirror.
 String getHostAddress()
          The host address of the machine that this alert corresponds to.
 String getHostName()
          The host name of the machine that this alert corresponds to.
 String getInconsistencyReason()
          The reason why a source (primary Space) could not replicate to a target (Mirror Space).
 Integer getInProgressOperationCount()
          The in-progress operation count reported by the Mirror.
 Integer getRedoLogRetainedSize()
          The redo-log size for replication packets outgoing to the Mirror (both memory and swap).
 Integer getRedoLogSize()
          The total redo-log size (for all channels) for both memory and swap.
 String getReplicationStatus()
          The replication status from source to target Space.
 String getRootCauseMessage()
          The last cause message in the reason given by getInconsistencyReason().
 String getRootCauseTrace()
          The last cause stack trace in the reason given by getInconsistencyReason().
 String getVirtualMachineUid()
          The uid of the virtual machine that this alert corresponds to.
 
Methods inherited from class org.openspaces.admin.alert.alerts.AbstractAlert
getAlert, getAlertUid, getComponentDescription, getConfig, getDescription, getGroupUid, getName, getProperties, getSeverity, getStatus, getTimestamp, readExternal, toString, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HOST_ADDRESS

public static final String HOST_ADDRESS
See Also:
Constant Field Values

HOST_NAME

public static final String HOST_NAME
See Also:
Constant Field Values

VIRTUAL_MACHINE_UID

public static final String VIRTUAL_MACHINE_UID
See Also:
Constant Field Values

INCONSISTENCY_REASON

public static final String INCONSISTENCY_REASON
See Also:
Constant Field Values

ROOT_CAUSE_MESSAGE

public static final String ROOT_CAUSE_MESSAGE
See Also:
Constant Field Values

ROOT_CAUSE_TRACE

public static final String ROOT_CAUSE_TRACE
See Also:
Constant Field Values

REPLICATION_STATUS

public static final String REPLICATION_STATUS
See Also:
Constant Field Values

REDO_LOG_SIZE

public static final String REDO_LOG_SIZE
See Also:
Constant Field Values

REDO_LOG_RETAINED_SIZE

public static final String REDO_LOG_RETAINED_SIZE
See Also:
Constant Field Values

FAILED_OPERATION_COUNT

public static final String FAILED_OPERATION_COUNT
See Also:
Constant Field Values

IN_PROGRESS_OPERATION_COUNT

public static final String IN_PROGRESS_OPERATION_COUNT
See Also:
Constant Field Values

DISCARDED_OPERATION_COUNT

public static final String DISCARDED_OPERATION_COUNT
See Also:
Constant Field Values
Constructor Detail

MirrorPersistenceFailureAlert

public MirrorPersistenceFailureAlert()
required by java.io.Externalizable


MirrorPersistenceFailureAlert

public MirrorPersistenceFailureAlert(Alert alert)
Method Detail

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(), getRootCauseTrace()

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.

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.