Search in sources :

Example 1 with JobResultDecorator

use of scalabilityTests.framework.listeners.JobResultDecorator in project scheduling by ow2-proactive.

the class SchedulerJobSubmitter method createEventListener.

@Override
protected SchedulerEventListener createEventListener(String listenerClazzName) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
    logger.trace("Trying to load the listener class " + listenerClazzName);
    Class listenerClazz = Class.forName(listenerClazzName);
    logger.trace("Trying to instantiate a listener of type " + listenerClazzName);
    SchedulerEventListener schedulerListener = (SchedulerEventListener) listenerClazz.newInstance();
    logger.trace("Decorating the event listener with " + JobResultDecorator.class.getName());
    this.jrListener = new JobResultDecorator(schedulerListener, (AbstractSchedulerUser<JobId>) PAActiveObject.getStubOnThis());
    return this.jrListener;
}
Also used : JobResultDecorator(scalabilityTests.framework.listeners.JobResultDecorator) SchedulerEventListener(org.ow2.proactive.scheduler.common.SchedulerEventListener)

Aggregations

SchedulerEventListener (org.ow2.proactive.scheduler.common.SchedulerEventListener)1 JobResultDecorator (scalabilityTests.framework.listeners.JobResultDecorator)1