public class LocalSearchProfilerAdapter extends java.lang.Object implements ILocalSearchAdapter
ILocalSearchAdapter
which capable of counting
each search operation execution then printing it in human readably form
(along with the executed plans) using toString()
Constructor and Description |
---|
LocalSearchProfilerAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
adapterRegistered(ILocalSearchAdaptable adaptable) |
void |
adapterUnregistered(ILocalSearchAdaptable adaptable) |
void |
executorInitializing(SearchPlanExecutor searchPlanExecutor,
MatchingFrame frame)
Callback method to indicate that a search plan executor is initialized with the given frame and starting operation
|
void |
matchFound(SearchPlanExecutor planExecutor,
MatchingFrame frame)
Callback that is used to indicate that a match has been found
|
void |
operationExecuted(SearchPlanExecutor planExecutor,
MatchingFrame frame)
Callback method to indicate that an operation is executed
|
void |
operationSelected(SearchPlanExecutor planExecutor,
MatchingFrame frame)
Callback method to indicate the selection of an operation to execute
|
void |
patternMatchingFinished(LocalSearchMatcher lsMatcher)
Callback method to indicate the end of a matching process
|
void |
patternMatchingStarted(LocalSearchMatcher lsMatcher)
Callback method to indicate the start of a matching process
|
void |
planChanged(SearchPlanExecutor oldPlanExecutor,
SearchPlanExecutor newPlanExecutor)
Callback method to indicate switching to a new plan during the execution of a pattern matching
|
java.lang.String |
toString() |
public void adapterRegistered(ILocalSearchAdaptable adaptable)
adapterRegistered
in interface ILocalSearchAdapter
public void adapterUnregistered(ILocalSearchAdaptable adaptable)
adapterUnregistered
in interface ILocalSearchAdapter
public void patternMatchingStarted(LocalSearchMatcher lsMatcher)
ILocalSearchAdapter
patternMatchingStarted
in interface ILocalSearchAdapter
lsMatcher
- the local search matcher that starts the matchingpublic void patternMatchingFinished(LocalSearchMatcher lsMatcher)
ILocalSearchAdapter
patternMatchingFinished
in interface ILocalSearchAdapter
lsMatcher
- the local search matcher that finishedpublic void planChanged(SearchPlanExecutor oldPlanExecutor, SearchPlanExecutor newPlanExecutor)
ILocalSearchAdapter
planChanged
in interface ILocalSearchAdapter
oldPlanExecutor
- the plan that is finished. Value is null when the first plan is starting.newPlanExecutor
- the plan that will begin executionpublic void operationSelected(SearchPlanExecutor planExecutor, MatchingFrame frame)
ILocalSearchAdapter
operationSelected
in interface ILocalSearchAdapter
planExecutor
- the current plan executorframe
- the current matching framepublic void operationExecuted(SearchPlanExecutor planExecutor, MatchingFrame frame)
ILocalSearchAdapter
operationExecuted
in interface ILocalSearchAdapter
planExecutor
- the current plan executorframe
- the current matching framepublic void matchFound(SearchPlanExecutor planExecutor, MatchingFrame frame)
ILocalSearchAdapter
matchFound
in interface ILocalSearchAdapter
planExecutor
- the search plan executor that found the matchframe
- the frame that holds the substitutions of the variables that matchpublic void executorInitializing(SearchPlanExecutor searchPlanExecutor, MatchingFrame frame)
ILocalSearchAdapter
executorInitializing
in interface ILocalSearchAdapter
public java.lang.String toString()
toString
in class java.lang.Object