Modifier and Type | Class and Description |
---|---|
private static class |
CodeCacheRule.CodeHeapData |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CODE_CACHE_RESULT_ID |
static TypedPreference<IQuantity> |
CODE_CACHE_SIZE_INFO_PERCENT |
static TypedPreference<IQuantity> |
CODE_CACHE_SIZE_WARN_PERCENT |
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 |
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<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) |
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
public java.util.concurrent.RunnableFuture<Result> evaluate(IItemCollection items, IPreferenceValueProvider valueProvider)
IRule
evaluate
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()
.private Result getResult(IItemCollection items, IPreferenceValueProvider valueProvider)
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()