Class CpuCheck
- java.lang.Object
-
- org.apache.felix.hc.generalchecks.CpuCheck
-
- All Implemented Interfaces:
org.apache.felix.hc.api.HealthCheck
public class CpuCheck extends Object implements org.apache.felix.hc.api.HealthCheck
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CpuCheck.Config
-
Constructor Summary
Constructors Constructor Description CpuCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
activate(CpuCheck.Config config)
org.apache.felix.hc.api.Result
execute()
double
getProcessCpuLoad()
-
-
-
Field Detail
-
HC_NAME
public static final String HC_NAME
- See Also:
- Constant Field Values
-
HC_LABEL
public static final String HC_LABEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
activate
protected void activate(CpuCheck.Config config)
-
execute
public org.apache.felix.hc.api.Result execute()
- Specified by:
execute
in interfaceorg.apache.felix.hc.api.HealthCheck
-
getProcessCpuLoad
public double getProcessCpuLoad() throws MalformedObjectNameException, ReflectionException, InstanceNotFoundException
-
-