Class HighJvmCpuRule
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.jdk.cpu.HighJvmCpuRule
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<TypedPreference<?>>CONFIG_ATTRIBUTESstatic TypedPreference<IQuantity>JVM_CPU_INFO_LIMITprivate static IAggregator<IQuantity,?>MAX_ENDTIMEprivate static intMAX_SAMPLED_THREADSprivate static IAggregator<IQuantity,?>MIN_ENDTIMEstatic TypedPreference<IQuantity>MINIMUM_CPU_LOAD_PERIODstatic TypedPreference<IQuantity>MISSING_SAMPLE_LIMITprivate static java.lang.StringRESULT_ID
-
Constructor Summary
Constructors Constructor Description HighJvmCpuRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.RunnableFuture<Result>evaluate(IItemCollection items, IPreferenceValueProvider valueProvider)Gets a future representing the result of the evaluation of this rule.java.util.Collection<TypedPreference<?>>getConfigurationAttributes()Gets information about which attributes may be configured during rule evaluation.java.lang.StringgetId()java.lang.StringgetName()private ResultgetResult(IItemCollection items, IPreferenceValueProvider vp)java.lang.StringgetTopic()
-
-
-
Field Detail
-
MAX_SAMPLED_THREADS
private static final int MAX_SAMPLED_THREADS
- See Also:
- Constant Field Values
-
RESULT_ID
private static final java.lang.String RESULT_ID
- See Also:
- Constant Field Values
-
MISSING_SAMPLE_LIMIT
public static final TypedPreference<IQuantity> MISSING_SAMPLE_LIMIT
-
MINIMUM_CPU_LOAD_PERIOD
public static final TypedPreference<IQuantity> MINIMUM_CPU_LOAD_PERIOD
-
JVM_CPU_INFO_LIMIT
public static final TypedPreference<IQuantity> JVM_CPU_INFO_LIMIT
-
CONFIG_ATTRIBUTES
private static final java.util.List<TypedPreference<?>> CONFIG_ATTRIBUTES
-
MAX_ENDTIME
private static final IAggregator<IQuantity,?> MAX_ENDTIME
-
MIN_ENDTIME
private static final IAggregator<IQuantity,?> MIN_ENDTIME
-
-
Method Detail
-
getResult
private Result getResult(IItemCollection items, IPreferenceValueProvider vp)
-
evaluate
public java.util.concurrent.RunnableFuture<Result> evaluate(IItemCollection items, IPreferenceValueProvider valueProvider)
Description copied from interface:IRuleGets a future representing the result of the evaluation of this rule. Running the RunnableFuture is the responsibility of the caller of this method, not the implementation.- Specified by:
evaluatein interfaceIRule- Parameters:
items- items to evaluatevalueProvider- Provider of configuration values used for evaluation. The attributes that will be asked for from the provider should be provided byIRule.getConfigurationAttributes().- Returns:
- a RunnableFuture that when run will return the evaluation result
-
getConfigurationAttributes
public java.util.Collection<TypedPreference<?>> getConfigurationAttributes()
Description copied from interface:IRuleGets information about which attributes may be configured during rule evaluation.- Specified by:
getConfigurationAttributesin interfaceIRule- Returns:
- a list of configuration attributes
-
getId
public java.lang.String getId()
-
getName
public java.lang.String getName()
-
-