Class VMOperationRule
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.jdk.latency.VMOperationRule
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<TypedPreference<?>>
CONFIG_ATTRIBUTES
private IQuantity
longestDuration
private static double
MAX_SECONDS_BETWEEN_EVENTS
private static java.lang.String
RESULT_ID
private IItem
startingEvent
static TypedPreference<IQuantity>
WARNING_LIMIT
-
Constructor Summary
Constructors Constructor Description VMOperationRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Result
evaluate(IItemCollection items, IQuantity warningLimit)
java.util.concurrent.RunnableFuture<Result>
evaluate(IItemCollection items, IPreferenceValueProvider vp)
Gets a future representing the result of the evaluation of this rule.private void
findLongestEventInfo(IItemCollection items)
private IMCThread
getCaller(IItem event)
java.util.Collection<TypedPreference<?>>
getConfigurationAttributes()
Gets information about which attributes may be configured during rule evaluation.private IQuantity
getDuration(IItem event)
private IQuantity
getEndTime(IItem event)
java.lang.String
getId()
java.lang.String
getName()
private java.lang.String
getOperation(IItem event)
private IQuantity
getStartTime(IItem event)
java.lang.String
getTopic()
private java.util.List<IItem>
sortEventsByStartTime(IItemCollection items)
-
-
-
Field Detail
-
RESULT_ID
private static final java.lang.String RESULT_ID
- See Also:
- Constant Field Values
-
MAX_SECONDS_BETWEEN_EVENTS
private static final double MAX_SECONDS_BETWEEN_EVENTS
- See Also:
- Constant Field Values
-
longestDuration
private IQuantity longestDuration
-
startingEvent
private IItem startingEvent
-
WARNING_LIMIT
public static final TypedPreference<IQuantity> WARNING_LIMIT
-
CONFIG_ATTRIBUTES
private static final java.util.List<TypedPreference<?>> CONFIG_ATTRIBUTES
-
-
Method Detail
-
evaluate
public java.util.concurrent.RunnableFuture<Result> evaluate(IItemCollection items, IPreferenceValueProvider vp)
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 evaluatevp
- 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
-
evaluate
private Result evaluate(IItemCollection items, IQuantity warningLimit)
-
findLongestEventInfo
private void findLongestEventInfo(IItemCollection items)
-
sortEventsByStartTime
private java.util.List<IItem> sortEventsByStartTime(IItemCollection items)
-
getOperation
private java.lang.String getOperation(IItem event)
-
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()
-
-