public class MemoryPoolMailingListener extends AbstractFlapListener implements org.springframework.context.MessageSourceAware, org.springframework.beans.factory.InitializingBean
addMemoryPoolMailingListener
method. When the memoryPoolMailing event occurs, that object's appropriate method is invoked.DEFAULT_THRESHOLD, DEFAULT_VALUElogger| Constructor and Description |
|---|
MemoryPoolMailingListener() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
aboveThresholdFlappingStopped(StatsCollectionEvent sce)
Above threshold flapping stopped.
|
protected void |
aboveThresholdNotFlapping(StatsCollectionEvent sce)
Above threshold not flapping.
|
void |
afterPropertiesSet() |
protected void |
belowThresholdFlappingStopped(StatsCollectionEvent sce)
Below threshold flapping stopped.
|
protected void |
belowThresholdNotFlapping(StatsCollectionEvent sce)
Below threshold not flapping.
|
protected void |
flappingStarted(StatsCollectionEvent sce)
Flapping started.
|
Mailer |
getMailer()
Gets the mailer.
|
org.springframework.context.support.MessageSourceAccessor |
getMessageSourceAccessor()
Gets the message source accessor.
|
protected void |
sendMail(StatsCollectionEvent sce,
String message,
boolean flappingStop)
Send mail.
|
void |
setDefaultFlapHighWeight(float defaultFlapHighWeight)
Sets the default flap high weight.
|
void |
setDefaultFlapInterval(int defaultFlapInterval)
Sets the default flap interval.
|
void |
setDefaultFlapLowWeight(float defaultFlapLowWeight)
Sets the default flap low weight.
|
void |
setDefaultFlapStartThreshold(float defaultFlapStartThreshold)
Sets the default flap start threshold.
|
void |
setDefaultFlapStopThreshold(float defaultFlapStopThreshold)
Sets the default flap stop threshold.
|
void |
setMailer(Mailer mailer)
Sets the mailer.
|
void |
setMessageSource(org.springframework.context.MessageSource messageSource) |
addFlap, calculateStateTransitionPercentage, checkFlappingStateChanged, crossedAboveThreshold, crossedBelowThreshold, getDefaultFlapHighWeight, getDefaultFlapInterval, getDefaultFlapLowWeight, getDefaultFlapStartThreshold, getDefaultFlapStopThreshold, getFlapHighWeight, getFlapInterval, getFlapLowWeight, getFlappingState, getFlaps, getFlapStartThreshold, getFlapStopThreshold, remainedAboveThreshold, remainedBelowThreshold, reset, setFlappingState, statsCollectedgetPreviousValue, getThreshold, isPreviousValueAboveThreshold, isSeriesDisabled, isValueAboveThreshold, setPreviousValue, setSeriesDisabled, statsCollectedgetPropertyCategory, getPropertyKey, getPropertyValue, getPropertyValue, isEnabled, setEnabled, setPropertyCategorypublic org.springframework.context.support.MessageSourceAccessor getMessageSourceAccessor()
public void setMessageSource(org.springframework.context.MessageSource messageSource)
setMessageSource in interface org.springframework.context.MessageSourceAwarepublic Mailer getMailer()
public void setMailer(Mailer mailer)
mailer - the new mailerpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionprotected void flappingStarted(StatsCollectionEvent sce)
AbstractFlapListenerflappingStarted in class AbstractFlapListenersce - the sceprotected void aboveThresholdFlappingStopped(StatsCollectionEvent sce)
AbstractFlapListeneraboveThresholdFlappingStopped in class AbstractFlapListenersce - the sceprotected void belowThresholdFlappingStopped(StatsCollectionEvent sce)
AbstractFlapListenerbelowThresholdFlappingStopped in class AbstractFlapListenersce - the sceprotected void aboveThresholdNotFlapping(StatsCollectionEvent sce)
AbstractFlapListeneraboveThresholdNotFlapping in class AbstractFlapListenersce - the sceprotected void belowThresholdNotFlapping(StatsCollectionEvent sce)
AbstractFlapListenerbelowThresholdNotFlapping in class AbstractFlapListenersce - the sceprotected void sendMail(StatsCollectionEvent sce, String message, boolean flappingStop)
sce - the scemessage - the messageflappingStop - the flapping stop@Value(value="${psiprobe.beans.stats.listeners.flapInterval}")
public void setDefaultFlapInterval(int defaultFlapInterval)
AbstractFlapListenersetDefaultFlapInterval in class AbstractFlapListenerdefaultFlapInterval - the new default flap interval@Value(value="${psiprobe.beans.stats.listeners.flapStartThreshold}")
public void setDefaultFlapStartThreshold(float defaultFlapStartThreshold)
AbstractFlapListenersetDefaultFlapStartThreshold in class AbstractFlapListenerdefaultFlapStartThreshold - the new default flap start threshold@Value(value="${psiprobe.beans.stats.listeners.flapStopThreshold}")
public void setDefaultFlapStopThreshold(float defaultFlapStopThreshold)
AbstractFlapListenersetDefaultFlapStopThreshold in class AbstractFlapListenerdefaultFlapStopThreshold - the new default flap stop threshold@Value(value="${psiprobe.beans.stats.listeners.flapLowWeight}")
public void setDefaultFlapLowWeight(float defaultFlapLowWeight)
AbstractFlapListenersetDefaultFlapLowWeight in class AbstractFlapListenerdefaultFlapLowWeight - the new default flap low weight@Value(value="${psiprobe.beans.stats.listeners.flapHighWeight}")
public void setDefaultFlapHighWeight(float defaultFlapHighWeight)
AbstractFlapListenersetDefaultFlapHighWeight in class AbstractFlapListenerdefaultFlapHighWeight - the new default flap high weightCopyright © 2009–2020 psi-probe. All rights reserved.