public abstract class AbstractFlapListener extends AbstractThresholdListener
addFlapListener method. When the flap event occurs, that
object's appropriate method is invoked.DEFAULT_THRESHOLD, DEFAULT_VALUElogger| Constructor and Description |
|---|
AbstractFlapListener() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
aboveThresholdFlappingStopped(StatsCollectionEvent sce)
Above threshold flapping stopped.
|
protected abstract void |
aboveThresholdNotFlapping(StatsCollectionEvent sce)
Above threshold not flapping.
|
protected void |
addFlap(String name,
boolean flap)
Adds the flap.
|
protected abstract void |
belowThresholdFlappingStopped(StatsCollectionEvent sce)
Below threshold flapping stopped.
|
protected abstract void |
belowThresholdNotFlapping(StatsCollectionEvent sce)
Below threshold not flapping.
|
protected float |
calculateStateTransitionPercentage(String name,
boolean flapping)
Calculate state transition percentage.
|
protected boolean |
checkFlappingStateChanged(String name,
boolean crossedThreshold)
Check flapping state changed.
|
protected void |
crossedAboveThreshold(StatsCollectionEvent sce)
Crossed above threshold.
|
protected void |
crossedBelowThreshold(StatsCollectionEvent sce)
Crossed below threshold.
|
protected abstract void |
flappingStarted(StatsCollectionEvent sce)
Flapping started.
|
float |
getDefaultFlapHighWeight()
Gets the default flap high weight.
|
int |
getDefaultFlapInterval()
Gets the default flap interval.
|
float |
getDefaultFlapLowWeight()
Gets the default flap low weight.
|
float |
getDefaultFlapStartThreshold()
Gets the default flap start threshold.
|
float |
getDefaultFlapStopThreshold()
Gets the default flap stop threshold.
|
protected float |
getFlapHighWeight(String name)
Gets the flap high weight.
|
protected int |
getFlapInterval(String name)
Gets the flap interval.
|
protected float |
getFlapLowWeight(String name)
Gets the flap low weight.
|
protected boolean |
getFlappingState(String name)
Gets the flapping state.
|
protected LinkedList<Boolean> |
getFlaps(String name)
Gets the flaps.
|
protected float |
getFlapStartThreshold(String name)
Gets the flap start threshold.
|
protected float |
getFlapStopThreshold(String name)
Gets the flap stop threshold.
|
protected void |
remainedAboveThreshold(StatsCollectionEvent sce)
Remained above threshold.
|
protected void |
remainedBelowThreshold(StatsCollectionEvent sce)
Remained below threshold.
|
void |
reset()
Reset.
|
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.
|
protected void |
setFlappingState(String name,
boolean flapping)
Sets the flapping state.
|
protected void |
statsCollected(StatsCollectionEvent sce,
boolean crossedThreshold,
boolean above)
Stats collected.
|
getPreviousValue, getThreshold, isPreviousValueAboveThreshold, isSeriesDisabled, isValueAboveThreshold, setPreviousValue, setSeriesDisabled, statsCollectedgetPropertyCategory, getPropertyKey, getPropertyValue, getPropertyValue, isEnabled, setEnabled, setPropertyCategoryprotected abstract void flappingStarted(StatsCollectionEvent sce)
sce - the sceprotected abstract void aboveThresholdFlappingStopped(StatsCollectionEvent sce)
sce - the sceprotected abstract void belowThresholdFlappingStopped(StatsCollectionEvent sce)
sce - the sceprotected abstract void aboveThresholdNotFlapping(StatsCollectionEvent sce)
sce - the sceprotected abstract void belowThresholdNotFlapping(StatsCollectionEvent sce)
sce - the sceprotected void crossedAboveThreshold(StatsCollectionEvent sce)
AbstractThresholdListenercrossedAboveThreshold in class AbstractThresholdListenersce - the sceprotected void crossedBelowThreshold(StatsCollectionEvent sce)
AbstractThresholdListenercrossedBelowThreshold in class AbstractThresholdListenersce - the sceprotected void remainedAboveThreshold(StatsCollectionEvent sce)
AbstractThresholdListenerremainedAboveThreshold in class AbstractThresholdListenersce - the sceprotected void remainedBelowThreshold(StatsCollectionEvent sce)
AbstractThresholdListenerremainedBelowThreshold in class AbstractThresholdListenersce - the scepublic void reset()
AbstractStatsCollectionListenerreset in class AbstractThresholdListenerprotected void statsCollected(StatsCollectionEvent sce, boolean crossedThreshold, boolean above)
sce - the scecrossedThreshold - the crossed thresholdabove - the aboveprotected boolean checkFlappingStateChanged(String name, boolean crossedThreshold)
name - the namecrossedThreshold - the crossed thresholdprotected float calculateStateTransitionPercentage(String name, boolean flapping)
name - the nameflapping - the flappingprotected void addFlap(String name, boolean flap)
name - the nameflap - the flapprotected boolean getFlappingState(String name)
name - the nameprotected void setFlappingState(String name, boolean flapping)
name - the nameflapping - the flappingprotected LinkedList<Boolean> getFlaps(String name)
name - the nameprotected int getFlapInterval(String name)
name - the nameprotected float getFlapStartThreshold(String name)
name - the nameprotected float getFlapStopThreshold(String name)
name - the nameprotected float getFlapLowWeight(String name)
name - the nameprotected float getFlapHighWeight(String name)
name - the namepublic int getDefaultFlapInterval()
public void setDefaultFlapInterval(int defaultFlapInterval)
defaultFlapInterval - the new default flap intervalpublic float getDefaultFlapStartThreshold()
public void setDefaultFlapStartThreshold(float defaultFlapStartThreshold)
defaultFlapStartThreshold - the new default flap start thresholdpublic float getDefaultFlapStopThreshold()
public void setDefaultFlapStopThreshold(float defaultFlapStopThreshold)
defaultFlapStopThreshold - the new default flap stop thresholdpublic float getDefaultFlapLowWeight()
public void setDefaultFlapLowWeight(float defaultFlapLowWeight)
defaultFlapLowWeight - the new default flap low weightpublic float getDefaultFlapHighWeight()
public void setDefaultFlapHighWeight(float defaultFlapHighWeight)
defaultFlapHighWeight - the new default flap high weightCopyright © 2009–2020 psi-probe. All rights reserved.