GigaSpaces XAP 9.7.2 API

org.openspaces.admin.alert.alerts
Class GarbageCollectionAlert

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

public class GarbageCollectionAlert
extends AbstractAlert

A Garbage Collection duration alert, fired upon triggered GC thresholds. The alert is raised when the JVM spends more than a specified period of time on Garbage Collection. The alert is resolved when the JVM spends less then the specified time on Garbage Collection.

These thresholds can be configured by using the GarbageCollectionAlertConfigurer.

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 COMPONENT_NAME
           
static String CPU_UTILIZATION
           
static String GC_DURATION_MILLISECONDS
           
static String HEAP_UTILIZATION
           
static String HOST_ADDRESS
           
static String HOST_NAME
           
static String NON_HEAP_UTILIZATION
           
static String PROCESS_ID
           
 
Constructor Summary
GarbageCollectionAlert()
          required by java.io.Externalizable
GarbageCollectionAlert(Alert alert)
           
 
Method Summary
 String getComponentName()
          The name of the component for which the alert was fired (e.g.
 String getComponentUid()
           The component UID is equivalent to VirtualMachine.getUid()
 Double getCpuUtilization()
          The CPU utilization reading when this alert was fired.
 Long getGcDuration()
          The period of time the JVM has spent on GC which triggered the alert.
 Double getHeapUtilization()
          The Heap utilization reading when this alert was fired.
 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.
 Double getNonHeapUtilization()
          The non-Heap utilization reading when this alert was fired.
 String getProcessId()
          The process id of the component for which the alert was fired.
 
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

CPU_UTILIZATION

public static final String CPU_UTILIZATION
See Also:
Constant Field Values

PROCESS_ID

public static final String PROCESS_ID
See Also:
Constant Field Values

COMPONENT_NAME

public static final String COMPONENT_NAME
See Also:
Constant Field Values

GC_DURATION_MILLISECONDS

public static final String GC_DURATION_MILLISECONDS
See Also:
Constant Field Values

HEAP_UTILIZATION

public static final String HEAP_UTILIZATION
See Also:
Constant Field Values

NON_HEAP_UTILIZATION

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

GarbageCollectionAlert

public GarbageCollectionAlert()
required by java.io.Externalizable


GarbageCollectionAlert

public GarbageCollectionAlert(Alert alert)
Method Detail

getComponentUid

public String getComponentUid()
The component UID is equivalent to VirtualMachine.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.

getCpuUtilization

public Double getCpuUtilization()
The CPU utilization reading when this alert was fired.

Returns:
the CPU utilization; may be null.

getProcessId

public String getProcessId()
The process id of the component for which the alert was fired.

Returns:
the process id (pid); may be null.

getComponentName

public String getComponentName()
The name of the component for which the alert was fired (e.g. 'Grid Service Agent', 'Grid Service Manager', 'Grid Service Container', 'Lookup Service').

Returns:
the name of the component.

getHeapUtilization

public Double getHeapUtilization()
The Heap utilization reading when this alert was fired.

Returns:
the Heap utilization; may be null.

getNonHeapUtilization

public Double getNonHeapUtilization()
The non-Heap utilization reading when this alert was fired.

Returns:
the non-Heap utilization; may be null.

getGcDuration

public Long getGcDuration()
The period of time the JVM has spent on GC which triggered the alert.

Returns:
the GC duration in milliseconds.

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.