Modifier and Type | Class and Description |
---|---|
private static class |
CodeCacheRule.CodeHeapData |
Modifier and Type | Field and Description |
---|---|
static TypedResult<IQuantity> |
CODE_CACHE_FREE_RATIO |
static java.lang.String |
CODE_CACHE_RESULT_ID |
static TypedPreference<IQuantity> |
CODE_CACHE_SIZE_INFO_PERCENT |
static TypedPreference<IQuantity> |
CODE_CACHE_SIZE_WARN_PERCENT |
static ContentType<CodeCacheRule.CodeHeapData> |
CODE_HEAP |
static TypedCollectionResult<CodeCacheRule.CodeHeapData> |
CODE_HEAPS |
private static java.util.List<TypedPreference<?>> |
CONFIG_ATTRIBUTES |
private static java.lang.String |
NON_NMETHODS_NAME |
private static java.lang.String |
NON_PROFILED_NAME |
private static java.lang.String |
PROFILED_NAME |
private static java.util.Map<java.lang.String,RulesToolkit.EventAvailability> |
REQUIRED_EVENTS |
private static java.util.Collection<TypedResult<?>> |
RESULT_ATTRIBUTES |
Constructor and Description |
---|
CodeCacheRule() |
Modifier and Type | Method and Description |
---|---|
private void |
addIfHalfFull(IQuantity ratioUnallocated,
java.util.List<CodeCacheRule.CodeHeapData> heaps,
java.lang.String name) |
java.util.concurrent.RunnableFuture<IResult> |
createEvaluation(IItemCollection items,
IPreferenceValueProvider valueProvider,
IResultValueProvider resultProvider)
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() |
java.util.Map<java.lang.String,RulesToolkit.EventAvailability> |
getRequiredEvents() |
private IResult |
getResult(IItemCollection items,
IPreferenceValueProvider valueProvider,
IResultValueProvider resultProvider) |
java.util.Collection<TypedResult<?>> |
getResults()
Gets information about which results may be part of an
IResult instance. |
java.lang.String |
getTopic() |
private boolean |
hasSegmentedCodeCache(IItemCollection items) |
public static final java.lang.String CODE_CACHE_RESULT_ID
private static final java.lang.String NON_PROFILED_NAME
private static final java.lang.String PROFILED_NAME
private static final java.lang.String NON_NMETHODS_NAME
public static final TypedPreference<IQuantity> CODE_CACHE_SIZE_INFO_PERCENT
public static final TypedPreference<IQuantity> CODE_CACHE_SIZE_WARN_PERCENT
private static final java.util.List<TypedPreference<?>> CONFIG_ATTRIBUTES
private static final java.util.Map<java.lang.String,RulesToolkit.EventAvailability> REQUIRED_EVENTS
public static final ContentType<CodeCacheRule.CodeHeapData> CODE_HEAP
public static final TypedResult<IQuantity> CODE_CACHE_FREE_RATIO
public static final TypedCollectionResult<CodeCacheRule.CodeHeapData> CODE_HEAPS
private static final java.util.Collection<TypedResult<?>> RESULT_ATTRIBUTES
public java.util.concurrent.RunnableFuture<IResult> createEvaluation(IItemCollection items, IPreferenceValueProvider valueProvider, IResultValueProvider resultProvider)
IRule
createEvaluation
in interface IRule
items
- items to evaluatevalueProvider
- Provider of configuration values used for evaluation. The attributes that will be
asked for from the provider should be provided by
IRule.getConfigurationAttributes()
.resultProvider
- Provider of results from rules evaluated prior to this rule and which this rule
explicitly depends on via a DependsOn
annotation. The attributes that will
be asked for from the provider will be provided by each dependant rule, e.g. via
public static constants.private IResult getResult(IItemCollection items, IPreferenceValueProvider valueProvider, IResultValueProvider resultProvider)
private boolean hasSegmentedCodeCache(IItemCollection items)
private void addIfHalfFull(IQuantity ratioUnallocated, java.util.List<CodeCacheRule.CodeHeapData> heaps, java.lang.String name)
public java.util.Collection<TypedPreference<?>> getConfigurationAttributes()
IRule
getConfigurationAttributes
in interface IRule
public java.lang.String getId()
public java.lang.String getName()
public java.lang.String getTopic()
public java.util.Map<java.lang.String,RulesToolkit.EventAvailability> getRequiredEvents()
getRequiredEvents
in interface IRule
RulesToolkit.EventAvailability
this rule
requires for that event typepublic java.util.Collection<TypedResult<?>> getResults()
IRule
IResult
instance.getResults
in interface IRule