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 ILocalSearchAdapterpublic void adapterUnregistered(ILocalSearchAdaptable adaptable)
adapterUnregistered in interface ILocalSearchAdapterpublic void patternMatchingStarted(LocalSearchMatcher lsMatcher)
ILocalSearchAdapterpatternMatchingStarted in interface ILocalSearchAdapterlsMatcher - the local search matcher that starts the matchingpublic void patternMatchingFinished(LocalSearchMatcher lsMatcher)
ILocalSearchAdapterpatternMatchingFinished in interface ILocalSearchAdapterlsMatcher - the local search matcher that finishedpublic void planChanged(SearchPlanExecutor oldPlanExecutor, SearchPlanExecutor newPlanExecutor)
ILocalSearchAdapterplanChanged in interface ILocalSearchAdapteroldPlanExecutor - 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)
ILocalSearchAdapteroperationSelected in interface ILocalSearchAdapterplanExecutor - the current plan executorframe - the current matching framepublic void operationExecuted(SearchPlanExecutor planExecutor, MatchingFrame frame)
ILocalSearchAdapteroperationExecuted in interface ILocalSearchAdapterplanExecutor - the current plan executorframe - the current matching framepublic void matchFound(SearchPlanExecutor planExecutor, MatchingFrame frame)
ILocalSearchAdaptermatchFound in interface ILocalSearchAdapterplanExecutor - 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)
ILocalSearchAdapterexecutorInitializing in interface ILocalSearchAdapterpublic java.lang.String toString()
toString in class java.lang.Object