Class ErrorRule
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.jdk.exceptions.ErrorRule
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<TypedPreference<?>>CONFIG_ATTRIBUTESstatic TypedPreference<IQuantity>ERROR_INFO_LIMITstatic TypedPreference<IQuantity>ERROR_WARNING_LIMITstatic TypedPreference<IQuantity>ERROR_WINDOW_SIZEprivate java.util.concurrent.FutureTask<Result>evaluationTaskstatic TypedPreference<java.lang.String>EXCLUDED_ERRORS_REGEXPprivate static java.lang.StringRESULT_ID
-
Constructor Summary
Constructors Constructor Description ErrorRule()
-
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
-
RESULT_ID
private static final java.lang.String RESULT_ID
- See Also:
- Constant Field Values
-
ERROR_INFO_LIMIT
public static final TypedPreference<IQuantity> ERROR_INFO_LIMIT
-
ERROR_WARNING_LIMIT
public static final TypedPreference<IQuantity> ERROR_WARNING_LIMIT
-
EXCLUDED_ERRORS_REGEXP
public static final TypedPreference<java.lang.String> EXCLUDED_ERRORS_REGEXP
-
ERROR_WINDOW_SIZE
public static final TypedPreference<IQuantity> ERROR_WINDOW_SIZE
-
CONFIG_ATTRIBUTES
private static final java.util.List<TypedPreference<?>> CONFIG_ATTRIBUTES
-
evaluationTask
private java.util.concurrent.FutureTask<Result> evaluationTask
-
-
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()
-
-