public abstract class LoadAverage extends Object implements Runnable
| Modifier and Type | Field and Description |
|---|---|
protected double |
fifteenMinuteLoad |
protected double |
fiveMinuteLoad |
protected org.slf4j.Logger |
logger |
protected double |
oneMinuteLoad |
| Constructor and Description |
|---|
LoadAverage(String threadName) |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
getCount() |
String |
getDisplayName() |
double |
getFifteenMinuteLoad() |
double |
getFiveMinuteLoad() |
String |
getInfo() |
double |
getLoggingTriggerValue() |
double |
getOneMinuteLoad() |
double |
getThreadDumpTriggerValue() |
boolean |
isThreadDumpOnHighLoad() |
void |
run() |
void |
setCalcFrequencyInMillisec(long millisec)
Sets the frequency, in milliseconds, at which the calculation of averages occurs.
|
void |
setDisplayName(String displayName) |
void |
setLoggingTriggerValue(double loggingTriggerValue)
Sets the value above which logging will be triggered for load averages.
|
void |
setThreadDumpOnHighLoad(boolean threadDumpOnHighLoad) |
void |
setThreadDumpTriggerValue(double threadDumpTriggerValue) |
void |
start() |
void |
stop() |
void |
tickCallback() |
protected final org.slf4j.Logger logger
protected double oneMinuteLoad
protected double fiveMinuteLoad
protected double fifteenMinuteLoad
public LoadAverage(String threadName)
public void setLoggingTriggerValue(double loggingTriggerValue)
loggingTriggerValue - the value above which logging will be triggeredpublic double getLoggingTriggerValue()
public void setCalcFrequencyInMillisec(long millisec)
millisec - how many milliseconds between average calculationspublic abstract double getCount()
public void tickCallback()
public String getInfo()
public void start()
public void stop()
public double getOneMinuteLoad()
public double getFiveMinuteLoad()
public double getFifteenMinuteLoad()
public String getDisplayName()
public void setDisplayName(String displayName)
displayName - the displayName to setpublic boolean isThreadDumpOnHighLoad()
public void setThreadDumpOnHighLoad(boolean threadDumpOnHighLoad)
threadDumpOnHighLoad - the threadDumpOnHighLoad to setpublic double getThreadDumpTriggerValue()
public void setThreadDumpTriggerValue(double threadDumpTriggerValue)
threadDumpTriggerValue - the threadDumpTriggerValue to setCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.