Class OptionsCheckRule
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.jdk.general.OptionsCheckRule
-
- All Implemented Interfaces:
IRule
public class OptionsCheckRule extends java.lang.Object implements IRule
Check that used command line options are:- Not on a list of known not recommended options/values
- Not deprecated (also check Java versions later than the one currently used)
- Documented
-
-
Field Summary
Fields Modifier and Type Field Description static TypedCollectionResult<org.openjdk.jmc.flightrecorder.rules.jdk.general.OptionsCheckRule.OptionWarning>DEPRECATED_OPTIONSstatic TypedCollectionResult<org.openjdk.jmc.flightrecorder.rules.jdk.general.OptionsCheckRule.OptionWarning>NOT_RECOMMENDED_OPTIONSstatic TypedCollectionResult<java.lang.String>UNDOCUMENTED_OPTIONS
-
Constructor Summary
Constructors Constructor Description OptionsCheckRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.RunnableFuture<IResult>createEvaluation(IItemCollection items, IPreferenceValueProvider valueProvider, IResultValueProvider resultProvider)java.util.Collection<TypedPreference<?>>getConfigurationAttributes()java.lang.StringgetId()java.lang.StringgetName()java.util.Map<java.lang.String,RulesToolkit.EventAvailability>getRequiredEvents()java.util.Collection<TypedResult<?>>getResults()java.lang.StringgetTopic()
-
-
-
Field Detail
-
UNDOCUMENTED_OPTIONS
public static final TypedCollectionResult<java.lang.String> UNDOCUMENTED_OPTIONS
-
DEPRECATED_OPTIONS
public static final TypedCollectionResult<org.openjdk.jmc.flightrecorder.rules.jdk.general.OptionsCheckRule.OptionWarning> DEPRECATED_OPTIONS
-
NOT_RECOMMENDED_OPTIONS
public static final TypedCollectionResult<org.openjdk.jmc.flightrecorder.rules.jdk.general.OptionsCheckRule.OptionWarning> NOT_RECOMMENDED_OPTIONS
-
-
Method Detail
-
createEvaluation
public java.util.concurrent.RunnableFuture<IResult> createEvaluation(IItemCollection items, IPreferenceValueProvider valueProvider, IResultValueProvider resultProvider)
- Specified by:
createEvaluationin interfaceIRule
-
getConfigurationAttributes
public java.util.Collection<TypedPreference<?>> getConfigurationAttributes()
- Specified by:
getConfigurationAttributesin interfaceIRule
-
getRequiredEvents
public java.util.Map<java.lang.String,RulesToolkit.EventAvailability> getRequiredEvents()
- Specified by:
getRequiredEventsin interfaceIRule
-
getResults
public java.util.Collection<TypedResult<?>> getResults()
- Specified by:
getResultsin interfaceIRule
-
-