Class OptionsCheckRule
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.jdk.general.OptionsCheckRule
-
- All Implemented Interfaces:
IRule
public class OptionsCheckRule extends 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<String>UNDOCUMENTED_OPTIONS
-
Constructor Summary
Constructors Constructor Description OptionsCheckRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RunnableFuture<IResult>createEvaluation(IItemCollection items, IPreferenceValueProvider valueProvider, IResultValueProvider resultProvider)Collection<TypedPreference<?>>getConfigurationAttributes()StringgetId()StringgetName()Map<String,RulesToolkit.EventAvailability>getRequiredEvents()Collection<TypedResult<?>>getResults()StringgetTopic()
-
-
-
Field Detail
-
UNDOCUMENTED_OPTIONS
public static final TypedCollectionResult<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 RunnableFuture<IResult> createEvaluation(IItemCollection items, IPreferenceValueProvider valueProvider, IResultValueProvider resultProvider)
- Specified by:
createEvaluationin interfaceIRule
-
getConfigurationAttributes
public Collection<TypedPreference<?>> getConfigurationAttributes()
- Specified by:
getConfigurationAttributesin interfaceIRule
-
getRequiredEvents
public Map<String,RulesToolkit.EventAvailability> getRequiredEvents()
- Specified by:
getRequiredEventsin interfaceIRule
-
getResults
public Collection<TypedResult<?>> getResults()
- Specified by:
getResultsin interfaceIRule
-
-