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 |
operationExecuted(SearchPlan plan,
ISearchOperation operation,
MatchingFrame frame,
boolean isSuccessful)
Callback method to indicate that an operation is executed
|
void |
patternMatchingStarted(LocalSearchMatcher lsMatcher)
Callback method to indicate the start of a matching process
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
adapterRegistered, adapterUnregistered, duplicateMatchFound, executorInitializing, matchFound, noMoreMatchesAvailable, operationSelected, planChanged
public void patternMatchingStarted(LocalSearchMatcher lsMatcher)
ILocalSearchAdapter
patternMatchingStarted
in interface ILocalSearchAdapter
lsMatcher
- the local search matcher that starts the matchingpublic void operationExecuted(SearchPlan plan, ISearchOperation operation, MatchingFrame frame, boolean isSuccessful)
ILocalSearchAdapter
operationExecuted
in interface ILocalSearchAdapter
plan
- the current planframe
- the current matching frameisSuccessful
- if true, the operation executed successfully, or false if the execution failed and backtracking will happenpublic java.lang.String toString()
toString
in class java.lang.Object