if ( service_type == ServiceType.UimaAs ) {
// Either no pinger specified, in which case the default is used. Or, it is specified, and if it
// matches the default, we get to clear anyway.
String pingclass = job_props.getStringProperty("service_ping_class", UimaAsPing.class.getName());
if ( pingclass.equals(UimaAsPing.class.getName()) ) {
UimaAsServiceMonitor monitor = new UimaAsServiceMonitor(endpoint, broker_host, broker_jmx_port);
logger.debug(methodName, id, "Clearing queues");
try {
monitor.init(null);
monitor.clearQueues();
} catch (Throwable e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}