Class FlightRecordingSupportRule
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.jdk.general.FlightRecordingSupportRule
-
-
Field Summary
Fields Modifier and Type Field Description private static JavaVersion
JDK_7_U_40
private static java.lang.String
RESULT_ID
-
Constructor Summary
Constructors Constructor Description FlightRecordingSupportRule()
-
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.String
getId()
java.lang.String
getName()
private Result
getResult(IItemCollection items, IPreferenceValueProvider valueProvider)
private Result
getTimeConversionResult(IItemCollection items)
java.lang.String
getTopic()
private Result
getVersionResult(java.lang.String versionString)
private Result
getVersionResult(IItemCollection items)
-
-
-
Field Detail
-
RESULT_ID
private static final java.lang.String RESULT_ID
- See Also:
- Constant Field Values
-
JDK_7_U_40
private static final JavaVersion JDK_7_U_40
-
-
Method Detail
-
getResult
private Result getResult(IItemCollection items, IPreferenceValueProvider valueProvider)
-
evaluate
public java.util.concurrent.RunnableFuture<Result> evaluate(IItemCollection items, IPreferenceValueProvider valueProvider)
Description copied from interface:IRule
Gets 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:
evaluate
in 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:IRule
Gets information about which attributes may be configured during rule evaluation.- Specified by:
getConfigurationAttributes
in interfaceIRule
- Returns:
- a list of configuration attributes
-
getId
public java.lang.String getId()
-
getName
public java.lang.String getName()
-
getTopic
public java.lang.String getTopic()
-
getVersionResult
private Result getVersionResult(java.lang.String versionString)
-
getVersionResult
private Result getVersionResult(IItemCollection items)
-
getTimeConversionResult
private Result getTimeConversionResult(IItemCollection items)
-
-