Search in sources :

Example 1 with EvaluatorExecutor

use of com.sequenceiq.periscope.monitor.evaluator.EvaluatorExecutor in project cloudbreak by hortonworks.

the class AbstractMonitor method execute.

@Override
public void execute(JobExecutionContext context) {
    MDCBuilder.buildMdcContext();
    evalContext(context);
    for (Cluster cluster : getClusters()) {
        EvaluatorExecutor evaluatorExecutor = applicationContext.getBean(getEvaluatorType().getSimpleName(), EvaluatorExecutor.class);
        evaluatorExecutor.setContext(getContext(cluster));
        executorService.submit(evaluatorExecutor);
    }
}
Also used : Cluster(com.sequenceiq.periscope.domain.Cluster) EvaluatorExecutor(com.sequenceiq.periscope.monitor.evaluator.EvaluatorExecutor)

Aggregations

Cluster (com.sequenceiq.periscope.domain.Cluster)1 EvaluatorExecutor (com.sequenceiq.periscope.monitor.evaluator.EvaluatorExecutor)1