public final class FilterSpecActivatable extends Object
Constructor and Description |
---|
FilterSpecActivatable(EventType eventType,
String eventTypeName,
FilterSpecParam[][] filterParameters,
PropertyEvaluator optionalPropertyEvaluator,
int filterCallbackId)
Constructor - validates parameter list against event type, throws exception if invalid
property names or mismatcing filter operators are found.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
boolean |
equalsTypeAndFilter(FilterSpecActivatable other)
Compares only the type and filter portion and not the property evaluation portion.
|
static FilterValueSetParam[][] |
evaluateValueSet(FilterSpecParam[][] parameters,
MatchedEventMap matchedEvents,
AgentInstanceContext agentInstanceContext) |
static FilterValueSetParam[][] |
evaluateValueSet(FilterSpecParam[][] parameters,
MatchedEventMap matchedEvents,
ExprEvaluatorContext exprEvaluatorContext,
StatementContextFilterEvalEnv filterEvalEnv) |
int |
getFilterCallbackId() |
EventType |
getFilterForEventType()
Returns type of event to filter for.
|
String |
getFilterForEventTypeName()
Returns the event type name.
|
String |
getFilterText() |
PropertyEvaluator |
getOptionalPropertyEvaluator()
Return the evaluator for property value if any is attached, or none if none attached.
|
FilterSpecParam[][] |
getParameters()
Returns list of filter parameters.
|
EventType |
getResultEventType()
Returns the result event type of the filter specification.
|
FilterValueSetParam[][] |
getValueSet(MatchedEventMap matchedEvents,
FilterValueSetParam[][] addendum,
ExprEvaluatorContext exprEvaluatorContext,
StatementContextFilterEvalEnv filterEvalEnv)
Returns the values for the filter, using the supplied result events to ask filter parameters
for the value to filter for.
|
int |
hashCode() |
String |
toString() |
public FilterSpecActivatable(EventType eventType, String eventTypeName, FilterSpecParam[][] filterParameters, PropertyEvaluator optionalPropertyEvaluator, int filterCallbackId)
eventType
- is the event typefilterParameters
- is a list of filter parameterseventTypeName
- is the name of the event typeoptionalPropertyEvaluator
- optional if evaluating properties returned by filtered eventsfilterCallbackId
- filter idIllegalArgumentException
- if validation invalidpublic final EventType getFilterForEventType()
public final FilterSpecParam[][] getParameters()
public String getFilterForEventTypeName()
public PropertyEvaluator getOptionalPropertyEvaluator()
public EventType getResultEventType()
public FilterValueSetParam[][] getValueSet(MatchedEventMap matchedEvents, FilterValueSetParam[][] addendum, ExprEvaluatorContext exprEvaluatorContext, StatementContextFilterEvalEnv filterEvalEnv)
matchedEvents
- contains the result events to use for determining filter valuesaddendum
- context addendumexprEvaluatorContext
- contextfilterEvalEnv
- envpublic static FilterValueSetParam[][] evaluateValueSet(FilterSpecParam[][] parameters, MatchedEventMap matchedEvents, AgentInstanceContext agentInstanceContext)
public static FilterValueSetParam[][] evaluateValueSet(FilterSpecParam[][] parameters, MatchedEventMap matchedEvents, ExprEvaluatorContext exprEvaluatorContext, StatementContextFilterEvalEnv filterEvalEnv)
public boolean equalsTypeAndFilter(FilterSpecActivatable other)
other
- filter to comparepublic int getFilterCallbackId()
public String getFilterText()
Copyright © 2005–2018. All rights reserved.