conf.put(BasicMonitorProvider.KEY_STEP_UNIT, "0.1");
ServiceProfile<ExecutionMonitorProvider> profile = new ServiceProfile<ExecutionMonitorProvider>(
"testing", BasicMonitorProvider.class, conf, ProfileContext.system(getClass().getClassLoader()));
ExecutionMonitorProvider instance = profile.newInstance();
ExecutionMonitor monitor = instance.newInstance(CONTEXT);
monitor.open(100);
try {
for (int i = 0; i < 100; i++) {
monitor.progressed(1);
}
} finally {
monitor.close();
}
}