Package | Description |
---|---|
org.openjdk.jmc.flightrecorder.rules |
This package contains interfaces and classes for working with Rules and RuleResults.
|
org.openjdk.jmc.flightrecorder.rules.util |
Modifier and Type | Field and Description |
---|---|
protected FutureTask<Result> |
AbstractRule.evaluationTask |
Modifier and Type | Method and Description |
---|---|
protected abstract Result |
AbstractRule.getResult(org.openjdk.jmc.common.item.IItemCollection items,
org.openjdk.jmc.common.util.IPreferenceValueProvider vp) |
Modifier and Type | Method and Description |
---|---|
RunnableFuture<Result> |
IRule.evaluate(org.openjdk.jmc.common.item.IItemCollection items,
org.openjdk.jmc.common.util.IPreferenceValueProvider valueProvider)
Gets a future representing the result of the evaluation of this rule.
|
RunnableFuture<Result> |
AbstractRule.evaluate(org.openjdk.jmc.common.item.IItemCollection items,
org.openjdk.jmc.common.util.IPreferenceValueProvider valueProvider) |
Modifier and Type | Method and Description |
---|---|
static Result |
RulesToolkit.getEventAvailabilityResult(IRule rule,
org.openjdk.jmc.common.item.IItemCollection items,
RulesToolkit.EventAvailability eventAvailability,
String... typeIds)
Returns a proper result for the availability problem.
|
static Result |
RulesToolkit.getMissingAttributeResult(IRule rule,
org.openjdk.jmc.common.item.IType<org.openjdk.jmc.common.item.IItem> type,
org.openjdk.jmc.common.item.IAttribute<?> attribute)
Gets a
Result object representing a not applicable result due to a missing attribute. |
static Result |
RulesToolkit.getNotApplicableResult(IRule rule,
String message)
Creates a
Result object with a generic not applicable (N/A) result for a given rule
with a specified message. |
static Result |
RulesToolkit.getRuleRequiresAtLeastOneEventTypeResult(IRule rule,
String... typeIds)
Creates a
Result object describing that at least one of the specified event types
must be present in the rule's input. |
static Result |
RulesToolkit.getTooFewEventsResult(IRule rule)
|
Modifier and Type | Method and Description |
---|---|
static Map<IRule,Future<Result>> |
RulesToolkit.evaluateParallel(Collection<IRule> rules,
org.openjdk.jmc.common.item.IItemCollection items,
org.openjdk.jmc.common.util.IPreferenceValueProvider preferences,
int nThreads)
Evaluates a collection of rules in parallel threads.
|
Modifier and Type | Method and Description |
---|---|
static org.openjdk.jmc.common.util.Pair<org.openjdk.jmc.common.unit.IQuantity,org.openjdk.jmc.common.unit.IRange<org.openjdk.jmc.common.unit.IQuantity>> |
SlidingWindowToolkit.slidingWindowUnorderedMinMaxValue(org.openjdk.jmc.common.item.IItemCollection items,
org.openjdk.jmc.common.unit.IQuantity windowSize,
FutureTask<Result> cancellationSupplier,
SlidingWindowToolkit.IUnorderedWindowValueFunction<org.openjdk.jmc.common.unit.IQuantity> valueFunction,
boolean max,
boolean includeIntersecting)
Calculates max/min window quantity value of items.
|
static <V> org.openjdk.jmc.common.util.Pair<V,org.openjdk.jmc.common.unit.IRange<org.openjdk.jmc.common.unit.IQuantity>> |
SlidingWindowToolkit.slidingWindowUnorderedMinMaxValue(org.openjdk.jmc.common.item.IItemCollection items,
org.openjdk.jmc.common.unit.IQuantity windowSize,
FutureTask<Result> cancellationSupplier,
SlidingWindowToolkit.IUnorderedWindowValueFunction<V> valueFunction,
Comparator<V> valueComparator,
boolean max,
boolean includeIntersecting)
Calculates max/min window value of items.
|
static org.openjdk.jmc.common.util.Pair<org.openjdk.jmc.common.unit.IQuantity,org.openjdk.jmc.common.unit.IRange<org.openjdk.jmc.common.unit.IQuantity>> |
SlidingWindowToolkit.slidingWindowUnorderedMinMaxValue(org.openjdk.jmc.common.item.IItemCollection items,
org.openjdk.jmc.common.unit.IQuantity windowSize,
org.openjdk.jmc.common.unit.IQuantity slideSize,
FutureTask<Result> cancellationSupplier,
SlidingWindowToolkit.IUnorderedWindowValueFunction<org.openjdk.jmc.common.unit.IQuantity> valueFunction,
boolean max,
boolean includeIntersecting)
Calculates max/min window quantity value of items.
|
static <V> org.openjdk.jmc.common.util.Pair<V,org.openjdk.jmc.common.unit.IRange<org.openjdk.jmc.common.unit.IQuantity>> |
SlidingWindowToolkit.slidingWindowUnorderedMinMaxValue(org.openjdk.jmc.common.item.IItemCollection items,
org.openjdk.jmc.common.unit.IQuantity windowSize,
org.openjdk.jmc.common.unit.IQuantity slideSize,
FutureTask<Result> cancellationSupplier,
SlidingWindowToolkit.IUnorderedWindowValueFunction<V> valueFunction,
Comparator<V> valueComparator,
boolean max,
boolean includeIntersecting)
Calculates max/min window value of items.
|
Copyright © 2020. All rights reserved.