Class AsyncReloadingClassificationEngine
- java.lang.Object
-
- org.opennms.netmgt.flows.classification.internal.AsyncReloadingClassificationEngine
-
- All Implemented Interfaces:
ClassificationEngine
public class AsyncReloadingClassificationEngine extends Object implements ClassificationEngine
A classification engine that does reloads asynchronously.Reloads are triggered oftentimes while editing classification rules. In addition, reloads may take a couple of seconds depending on the enabled rules. In order to keep the front-end responsive, reloads are done asynchronously. Usages of the classification engine are blocked until ongoing reloads did finish. If a reload fails then future usages of this classification engine also fail until a following reload succeeds.
-
-
Constructor Summary
Constructors Constructor Description AsyncReloadingClassificationEngine(ClassificationEngine delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
classify(ClassificationRequest classificationRequest)
List<Rule>
getInvalidRules()
void
reload()
-
-
-
Constructor Detail
-
AsyncReloadingClassificationEngine
public AsyncReloadingClassificationEngine(ClassificationEngine delegate)
-
-
Method Detail
-
classify
public String classify(ClassificationRequest classificationRequest)
- Specified by:
classify
in interfaceClassificationEngine
-
getInvalidRules
public List<Rule> getInvalidRules()
- Specified by:
getInvalidRules
in interfaceClassificationEngine
-
reload
public void reload()
- Specified by:
reload
in interfaceClassificationEngine
-
-