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;
}
Aggregations