Class JvmMetric.Rule
-
- All Implemented Interfaces:
public class JvmMetric.Rule
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringKeypublic intsystemCentpublic final static StringKey$systemCentpublic intsystemLoadpublic final static StringKey$systemLoadpublic intprocessCentpublic final static StringKey$processCentpublic intprocessLoadpublic final static StringKey$processLoadpublic intmemoryLoadpublic final static StringKey$memoryLoadpublic intthreadCountpublic final static StringKey$threadCountpublic intthreadLoadpublic final static StringKey$threadLoad
-
Constructor Summary
Constructors Constructor Description JvmMetric.Rule()
-
Method Summary
Modifier and Type Method Description intgetSystemCent()alarm threshold, system Cpu Load with percentage to the entire system with all cores, range `[0, 100]` voidsetSystemCent(int systemCent)alarm threshold, system Cpu Load with percentage to the entire system with all cores, range `[0, 100]` intgetSystemLoad()System Cpu Load without percentage, range `[0, 100*cores]` voidsetSystemLoad(int systemLoad)System Cpu Load without percentage, range `[0, 100*cores]` intgetProcessCent()process system Cpu Load with percentage to the entire system with all cores, range `[0, 100]` voidsetProcessCent(int processCent)process system Cpu Load with percentage to the entire system with all cores, range `[0, 100]` intgetProcessLoad()process Cpu Load without percentage, range `[0, 100*cores]`, default=80x4 voidsetProcessLoad(int processLoad)process Cpu Load without percentage, range `[0, 100*cores]`, default=80x4 intgetMemoryLoad()process Mem Load, range `[0,100]` voidsetMemoryLoad(int memoryLoad)process Mem Load, range `[0,100]` intgetThreadCount()total threads in jvm. voidsetThreadCount(int threadCount)total threads in jvm. intgetThreadLoad()total jvm threads divided by total cores voidsetThreadLoad(int threadLoad)total jvm threads divided by total cores booleanequals(@Nullable() Object o)inthashCode()StringtoString()-
-
Method Detail
-
getSystemCent
int getSystemCent()
alarm threshold, system Cpu Load with percentage to the entire system with all cores, range `[0, 100]`
-
setSystemCent
void setSystemCent(int systemCent)
alarm threshold, system Cpu Load with percentage to the entire system with all cores, range `[0, 100]`
-
getSystemLoad
int getSystemLoad()
System Cpu Load without percentage, range `[0, 100*cores]`
-
setSystemLoad
void setSystemLoad(int systemLoad)
System Cpu Load without percentage, range `[0, 100*cores]`
-
getProcessCent
int getProcessCent()
process system Cpu Load with percentage to the entire system with all cores, range `[0, 100]`
-
setProcessCent
void setProcessCent(int processCent)
process system Cpu Load with percentage to the entire system with all cores, range `[0, 100]`
-
getProcessLoad
int getProcessLoad()
process Cpu Load without percentage, range `[0, 100*cores]`, default=80x4
-
setProcessLoad
void setProcessLoad(int processLoad)
process Cpu Load without percentage, range `[0, 100*cores]`, default=80x4
-
getMemoryLoad
int getMemoryLoad()
process Mem Load, range `[0,100]`
-
setMemoryLoad
void setMemoryLoad(int memoryLoad)
process Mem Load, range `[0,100]`
-
getThreadCount
int getThreadCount()
total threads in jvm. formula: threads = `Available Cores` / (1 - `Blocking Coefficient`), `Blocking Coefficient` = Blocking time / (blocking time + calculation time)
-
setThreadCount
void setThreadCount(int threadCount)
total threads in jvm. formula: threads = `Available Cores` / (1 - `Blocking Coefficient`), `Blocking Coefficient` = Blocking time / (blocking time + calculation time)
-
getThreadLoad
int getThreadLoad()
total jvm threads divided by total cores
-
setThreadLoad
void setThreadLoad(int threadLoad)
total jvm threads divided by total cores
-
hashCode
int hashCode()
-
-
-
-