public interface IlrTraceFilter
extends java.io.Serializable
IlrTraceFilter to select the information
that you want to see in the execution trace.
The following code example shows how to set all the trace filters.
IlrSessionFactory sessionFactory = getFactory();
// Create a session request object
IlrSessionRequest sessionRequest = sessionFactory.createRequest();
String rulesetPath = "/miniloanruleapp/miniloanrules";
if (!rulesetVersion.equalsIgnoreCase("Latest")) {
rulesetPath = rulesetPath + "/" + rulesetVersion;
}
sessionRequest.setRulesetPath(IlrPath.parsePath(rulesetPath));
// Enable trace to retrieve info on executed rules
sessionRequest.setTraceEnabled(true);
// get all traces
sessionRequest.getTraceFilter().setInfoAllFilters(true);
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INFO_BOUND_OBJECT_BY_RULE
Filter for Bound Object by Rule
|
static java.lang.String |
INFO_EXECUTION_DATE
Filter for Execution Date
|
static java.lang.String |
INFO_EXECUTION_DURATION
Filter for Execution Duration
|
static java.lang.String |
INFO_EXECUTION_EVENTS
Filter for Execution Events
|
static java.lang.String |
INFO_INET_ADDRESS
Filter for Inet Address
|
static java.lang.String |
INFO_RULES
Filter for List of All Rules
|
static java.lang.String |
INFO_RULES_NOT_FIRED
Filter for List of Rules Not Fired
|
static java.lang.String |
INFO_SYSTEM_PROPERTIES
Filter for System Properties
|
static java.lang.String |
INFO_TASKS
Filter for List of All Tasks
|
static java.lang.String |
INFO_TASKS_NOT_EXECUTED
Filter for List of Tasks Not Executed
|
static java.lang.String |
INFO_TOTAL_RULES_FIRED
Filter for Total Number of Rules Fired
|
static java.lang.String |
INFO_TOTAL_RULES_NOT_FIRED
Filter for Total Number of Rules Not Fired
|
static java.lang.String |
INFO_TOTAL_TASKS_EXECUTED
Filter for Total Number of Tasks Executed
|
static java.lang.String |
INFO_TOTAL_TASKS_NOT_EXECUTED
Filter for Total Number of Tasks Not Executed
|
static java.lang.String |
INFO_WORKING_MEMORY
Filter for Working Memory
|
static java.lang.String |
WORKING_MEMORY_FILTER
Filter to set Working Memory filter
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getWorkingMemoryFilter()
Returns the list of class names to trace.
|
java.lang.Boolean |
isInfoBoundObjectByRule()
Returns the trace filter on the list of objects bound by the rules fired
before execution.
|
java.lang.Boolean |
isInfoExecutionDate()
Checks the trace filter on the execution date.
|
java.lang.Boolean |
isInfoExecutionDuration()
Checks the trace filter on the execution duration.
|
java.lang.Boolean |
isInfoExecutionEvents()
Returns the trace filter on the execution events, that is,
the rules fired and the tasks executed.
|
java.lang.Boolean |
isInfoInetAddress()
Tests whether the Internet address filter is activated.
|
java.lang.Boolean |
isInfoRules()
Tests whether the filter is activated for
IlrExecutionTrace.getRules() |
java.lang.Boolean |
isInfoRulesNotFired()
Checks the trace filter on the rules that were not fired.
|
java.lang.Boolean |
isInfoSystemProperties()
Returns the trace filter on the working memory.
|
java.lang.Boolean |
isInfoTasks()
Tests whether the filter is activated for
IlrExecutionTrace.getTasks(). |
java.lang.Boolean |
isInfoTasksNotExecuted()
Returns the trace filter on the tasks that were not executed.
|
java.lang.Boolean |
isInfoTotalRulesFired()
Checks the trace filter on the number of rules fired.
|
java.lang.Boolean |
isInfoTotalRulesNotFired()
Checks the trace filter on the number of rules that were not fired.
|
java.lang.Boolean |
isInfoTotalTasksExecuted()
Checks the trace filter on the number of tasks executed.
|
java.lang.Boolean |
isInfoTotalTasksNotExecuted()
Checks the trace filter on the number of tasks that were not executed.
|
java.lang.Boolean |
isInfoWorkingMemory()
Returns the trace filter on the working memory.
|
void |
loadFromProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Loads all the filters from the properties passed.
|
void |
setFilter(java.lang.String filterName,
java.lang.String value)
Sets a filter from a the name of a constant.
|
void |
setInfoAllFilters(java.lang.Boolean enable)
Enables all filters.
|
void |
setInfoBoundObjectByRule(java.lang.Boolean enabled)
Filter on the object bound by the fired rule before its execution.
|
void |
setInfoExecutionDate(java.lang.Boolean enabled)
Filter on the execution date.
|
void |
setInfoExecutionDuration(java.lang.Boolean enabled)
Filter on the execution duration.
|
void |
setInfoExecutionEvents(java.lang.Boolean enabled)
Filter on the execution events.
|
void |
setInfoInetAddress(java.lang.Boolean enabled)
Filter on the Internet address.
|
void |
setInfoRules(java.lang.Boolean enabled)
Activates or deactivates the Rules filter.
|
void |
setInfoRulesNotFired(java.lang.Boolean enabled)
Filter on the rules that were not fired.
|
void |
setInfoSystemProperties(java.lang.Boolean enabled)
Global filter on the properties of the execution environment system.
|
void |
setInfoTasks(java.lang.Boolean enabled)
Activates or deactivates the Tasks filter.
|
void |
setInfoTasksNotExecuted(java.lang.Boolean enabled)
Filter on the tasks that were not executed.
|
void |
setInfoTotalRulesFired(java.lang.Boolean enabled)
Filters on the number of rules fired.
|
void |
setInfoTotalRulesNotFired(java.lang.Boolean enabled)
Filters on the number of rules that were not fired.
|
void |
setInfoTotalTasksExecuted(java.lang.Boolean enabled)
Filter on the number of tasks executed.
|
void |
setInfoTotalTasksNotExecuted(java.lang.Boolean enabled)
Filter on the number of tasks that were not executed.
|
void |
setInfoWorkingMemory(java.lang.Boolean enabled)
Global filter on the working memory.
|
void |
setWorkingMemoryFilter(java.lang.String wmFilter)
Filter on object class names inside the working memory.
|
java.util.Map<java.lang.String,java.lang.String> |
toMap()
Returns a map of all filters.
|
static final java.lang.String INFO_TOTAL_RULES_FIRED
static final java.lang.String INFO_TOTAL_TASKS_EXECUTED
static final java.lang.String INFO_EXECUTION_EVENTS
static final java.lang.String INFO_TOTAL_RULES_NOT_FIRED
static final java.lang.String INFO_TOTAL_TASKS_NOT_EXECUTED
static final java.lang.String INFO_RULES_NOT_FIRED
static final java.lang.String INFO_TASKS_NOT_EXECUTED
static final java.lang.String INFO_EXECUTION_DURATION
static final java.lang.String INFO_RULES
static final java.lang.String INFO_TASKS
static final java.lang.String INFO_SYSTEM_PROPERTIES
static final java.lang.String WORKING_MEMORY_FILTER
static final java.lang.String INFO_WORKING_MEMORY
static final java.lang.String INFO_BOUND_OBJECT_BY_RULE
static final java.lang.String INFO_INET_ADDRESS
static final java.lang.String INFO_EXECUTION_DATE
void setInfoExecutionEvents(java.lang.Boolean enabled)
enabled - Set this parameter to true to activate this filter.void setWorkingMemoryFilter(java.lang.String wmFilter)
wmFilter - A string with comma-separated class names (for example, com.xyz.myClass,com.xyz.MyOtherClass.
Set this parameter to null to remove the filter.void setInfoWorkingMemory(java.lang.Boolean enabled)
enabled - Set this parameter to true to activate this filter.void setInfoSystemProperties(java.lang.Boolean enabled)
enabled - Set this parameter to true to activate this filter.void setInfoBoundObjectByRule(java.lang.Boolean enabled)
enabled - Set this parameter to true to activate this filter.java.lang.Boolean isInfoExecutionEvents()
true if the execution trace contains the rules fired.java.lang.Boolean isInfoWorkingMemory()
true if the execution trace contains the working memory.java.lang.Boolean isInfoSystemProperties()
true if the execution trace contains the system properties.java.lang.String getWorkingMemoryFilter()
java.lang.Boolean isInfoBoundObjectByRule()
void loadFromProperties(java.util.Map<java.lang.String,java.lang.String> properties)
false.
The passed properties must contain filters expressed as:
INFO_TOTAL_RULES_FIRED=true INFO_WORKING_MEMORY=true WORKING_MEMORY_FILTER=com.xyz.MyClass1,com.xyz.MyClass2 ...where the name of the property corresponds to the JavaBeans property to be set on the
IlrTraceFilter object. For example:
INFO_TOTAL_RULES_FIRED=true -> setInfoNumRulesFired(true)
properties - a Properties object that contains the filters.java.util.Map<java.lang.String,java.lang.String> toMap()
void setFilter(java.lang.String filterName,
java.lang.String value)
filterName - the name of the filter to set.value - the value of the filter.void setInfoTotalRulesFired(java.lang.Boolean enabled)
enabled - Set this parameter to true to filter on the number of
rules fired.void setInfoTotalTasksExecuted(java.lang.Boolean enabled)
enabled - Set this parameter to true to filter on the number of
tasks executed.void setInfoTotalRulesNotFired(java.lang.Boolean enabled)
enabled - Set this parameter to true to filter on the number of
rules that were not fired.void setInfoTotalTasksNotExecuted(java.lang.Boolean enabled)
enabled - Set this parameter to true to filter on the number of
tasks that were not executed.void setInfoRulesNotFired(java.lang.Boolean enabled)
enabled - Set this parameter to true to filter on the rules
that were not fired.void setInfoTasksNotExecuted(java.lang.Boolean enabled)
enabled - Set this parameter to true to filter on the tasks
that were not executed.void setInfoExecutionDate(java.lang.Boolean enabled)
enabled - Set this parameter to true to filter on the execution
date.void setInfoExecutionDuration(java.lang.Boolean enabled)
enabled - Set this parameter to true to filter on the execution
duration.void setInfoInetAddress(java.lang.Boolean enabled)
enabled - Set this parameter to true to filter on the Internet address.java.lang.Boolean isInfoRulesNotFired()
true if the execution trace contains the rules that were not fired.java.lang.Boolean isInfoTasksNotExecuted()
true if the execution trace contains the tasks that were not executed.java.lang.Boolean isInfoExecutionDate()
true if the execution trace contains the execution date.java.lang.Boolean isInfoExecutionDuration()
true if the execution trace contains the execution duration.java.lang.Boolean isInfoTotalRulesFired()
true if the execution trace contains the number of rules
fired.java.lang.Boolean isInfoTotalTasksExecuted()
true if the execution trace contains the number of tasks
executed.java.lang.Boolean isInfoTotalRulesNotFired()
true if the execution trace contains the number of rules
that were not fired.java.lang.Boolean isInfoTotalTasksNotExecuted()
true if the execution trace contains the number of tasks
that were not executed.java.lang.Boolean isInfoRules()
IlrExecutionTrace.getRules()true if the filter is activated for this method.java.lang.Boolean isInfoTasks()
IlrExecutionTrace.getTasks().true if the filter is activated for this method.java.lang.Boolean isInfoInetAddress()
true if the Internet address filter is activatedvoid setInfoRules(java.lang.Boolean enabled)
enabled - Set this parameter to true to activate the Rules
filter.void setInfoTasks(java.lang.Boolean enabled)
enabled - Set this parameter to true to activate the Tasks
filter.void setInfoAllFilters(java.lang.Boolean enable)
enable - Set this parameter to true to enable all the filters.© Copyright IBM Corp. 1987, 2017