Class LongGcPauseRule
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.jdk.memory.LongGcPauseRule
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<TypedPreference<?>>
CONFIG_ATTRIBUTES
static TypedPreference<IQuantity>
GC_PAUSE_INFO_LIMIT
private static java.lang.String
RESULT_ID
-
Constructor Summary
Constructors Constructor Description LongGcPauseRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.String
appendMessage(java.lang.String message, java.lang.String newMessage)
java.util.concurrent.RunnableFuture<Result>
evaluate(IItemCollection items, IPreferenceValueProvider valueProvider)
Gets a future representing the result of the evaluation of this rule.private static java.lang.String
getCollectorMessage(IItemCollection items)
java.util.Collection<TypedPreference<?>>
getConfigurationAttributes()
Gets information about which attributes may be configured during rule evaluation.java.lang.String
getId()
private static java.lang.String
getLivesetMessage(IItemCollection items)
java.lang.String
getName()
private Result
getResult(IItemCollection items, IPreferenceValueProvider vp)
private static java.lang.String
getSemiRefsMessage(IItemCollection items)
java.lang.String
getTopic()
-
-
-
Field Detail
-
RESULT_ID
private static final java.lang.String RESULT_ID
- See Also:
- Constant Field Values
-
GC_PAUSE_INFO_LIMIT
public static final TypedPreference<IQuantity> GC_PAUSE_INFO_LIMIT
-
CONFIG_ATTRIBUTES
private static final java.util.List<TypedPreference<?>> CONFIG_ATTRIBUTES
-
-
Method Detail
-
getResult
private Result getResult(IItemCollection items, IPreferenceValueProvider vp)
-
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
-
appendMessage
private static java.lang.String appendMessage(java.lang.String message, java.lang.String newMessage)
-
getCollectorMessage
private static java.lang.String getCollectorMessage(IItemCollection items)
-
getLivesetMessage
private static java.lang.String getLivesetMessage(IItemCollection items)
-
getSemiRefsMessage
private static java.lang.String getSemiRefsMessage(IItemCollection items)
-
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()
-
-