CPMUtils.CPM_LOG_RESOURCE_BUNDLE,
"UIMA_CPM_container_status__FINEST",
new Object[] { Thread.currentThread().getName(), container.getName(),
String.valueOf(container.getStatus()) });
}
ProcessTrace pTrTemp = new ProcessTrace_impl(cpm.getPerformanceTuningSettings());
pTrTemp.startEvent(container.getName(), "End of Batch", "");
try {
CasProcessorDeployer deployer = container.getDeployer();
if (deployer != null) {
if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {
UIMAFramework.getLogger(this.getClass()).logrb(
Level.FINEST,
this.getClass().getName(),
"process",
CPMUtils.CPM_LOG_RESOURCE_BUNDLE,
"UIMA_CPM_undeploy_cp_instances__FINEST",
new Object[] { Thread.currentThread().getName(), container.getName(),
deployer.getClass().getName() });
}
deployer.undeploy();
}
container.destroy();
} catch (Exception e) {
e.printStackTrace();
} finally {
pTrTemp.endEvent(container.getName(), "End of Batch", "");
if (processingUnitProcessTrace != null) {
this.processingUnitProcessTrace.aggregate(pTrTemp);
}
}
}