Class DefaultClassificationEngine
- java.lang.Object
-
- org.opennms.netmgt.flows.classification.internal.DefaultClassificationEngine
-
- All Implemented Interfaces:
ClassificationEngine
public class DefaultClassificationEngine extends java.lang.Object implements ClassificationEngine
A classification engine that uses a decision tree to select applicable classification rules.The implementation is thread-safe.
-
-
Constructor Summary
Constructors Constructor Description DefaultClassificationEngine(ClassificationRuleProvider ruleProvider, FilterService filterService)
DefaultClassificationEngine(ClassificationRuleProvider ruleProvider, FilterService filterService, boolean initialize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
classify(ClassificationRequest classificationRequest)
java.util.List<Rule>
getInvalidRules()
Tree
getTree()
void
reload()
-
-
-
Constructor Detail
-
DefaultClassificationEngine
public DefaultClassificationEngine(ClassificationRuleProvider ruleProvider, FilterService filterService) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
DefaultClassificationEngine
public DefaultClassificationEngine(ClassificationRuleProvider ruleProvider, FilterService filterService, boolean initialize) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
-
Method Detail
-
reload
public void reload() throws java.lang.InterruptedException
- Specified by:
reload
in interfaceClassificationEngine
- Throws:
java.lang.InterruptedException
-
getInvalidRules
public java.util.List<Rule> getInvalidRules()
- Specified by:
getInvalidRules
in interfaceClassificationEngine
-
getTree
public Tree getTree()
-
classify
public java.lang.String classify(ClassificationRequest classificationRequest)
- Specified by:
classify
in interfaceClassificationEngine
-
-