Is it possible to define strict search filter in the JBoss ON CLI scripts?
Issue
- JBoss ON CLI filter is getting more info than needed;
- Is it possible to define strict search filter in the JBoss ON CLI scripts?
- The filter in the custom JBoss ON CLI script returns more then expected;
- Search criteria set to "TEST CLI" returns all "TEST CLI" results but also "TEST..." and "CLI..." results;
Environment
- Red Hat JBoss Operations Network (ON) 3
- Red Hat JBoss ON Command Line Interface (CLI) 3
-
Executing the following example:
// set the search criteria for the alert definitions with a reasonable filter var criteria = new AlertDefinitionCriteria(); criteria.addFilterName("TEST CLI") //search for the alert definitions alertdefs = AlertDefinitionManager.findAlertDefinitionsByCriteria(criteria) -
Above script will return the following:
alert: TEST CLI alert: TEST CLI ALERT alert: TEST - ALERT alert: CLI ALERT
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
