public final class MemoryThresholdAdvisory extends AdvisoryEvent
Title: Service Event Fabric Runtime
Description: Defines an advisory raised by the StatsMonitor
if a memory usage of the JVM
exceeds the specified threshold (in megabytes).
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EVENT_ID |
SEMANTIC_TYPE_NAME
DEFAULT_SERIAL_VERSION_ID
Constructor and Description |
---|
MemoryThresholdAdvisory() |
MemoryThresholdAdvisory(ThresholdAdvisoryType type,
Threshold threshold,
int currentValue,
java.util.List memoryPoolStats) |
Modifier and Type | Method and Description |
---|---|
java.util.List |
getMemoryPoolsStats()
Returns a stats of all memory pools currently used in the
JVM . |
int |
getMemoryUsage()
Returns the amount of used memory (in megabytes) that reached of the specified threshold.
|
int |
getThreshold()
Returns the specified memory usage threshold (in megabytes).
|
ThresholdAdvisoryType |
getType()
Returns a flag indicating if the specified threshold has been reached from below or from above.
|
equals, getCorrelationId, getCorrelationIdAsBytes, setCorrelationId, setCorrelationIdAsBytes, setEventGroupId, setEventKey
clone, getDurable, getEventGroupId, getEventId, getEventKey, getEventSource, getSerialVersionUID, getTimestamp, getTransmitAccess, isCoalesced, setDurable, setEventId
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getDurable, getEventGroupId, getEventId, getEventKey, getEventSource, getTimestamp, getTransmitAccess
getSerialVersionUID
public static final java.lang.String EVENT_ID
public MemoryThresholdAdvisory()
public MemoryThresholdAdvisory(ThresholdAdvisoryType type, Threshold threshold, int currentValue, java.util.List memoryPoolStats)
public ThresholdAdvisoryType getType()
public int getThreshold()
public int getMemoryUsage()
public java.util.List getMemoryPoolsStats()
JVM
.Copyright © 2015-2024 StreamScape Technologies. All rights reserved.