public final class CpuThresholdAdvisory extends AdvisoryEvent
Title: Service Event Fabric Runtime
Description: Defines an advisory raised by the StatsMonitor
if a CPU load of the JVM
exceeds the specified threshold (in percents).
Copyright: Copyright (c) 2014
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 |
---|
CpuThresholdAdvisory() |
CpuThresholdAdvisory(ThresholdAdvisoryType type,
Threshold threshold,
int currentValue) |
Modifier and Type | Method and Description |
---|---|
int |
getCpuUsage()
Returns the CPU load (in percents) that reached of the specified threshold.
|
int |
getThreshold()
Returns the specified CPU usage threshold (in percents).
|
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 CpuThresholdAdvisory()
public CpuThresholdAdvisory(ThresholdAdvisoryType type, Threshold threshold, int currentValue)
public ThresholdAdvisoryType getType()
public int getThreshold()
public int getCpuUsage()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.