use of org.folio.okapi.util.ModuleHandle in project okapi by folio-org.
the class DeploymentManager method shutdownR.
private void shutdownR(Iterator<String> it, int count, Handler<ExtendedAsyncResult<Void>> fut) {
if (!it.hasNext()) {
if (count != 0) {
logger.info("All " + count + " modules shut down");
}
fut.handle(new Success<>());
} else {
DeploymentDescriptor md = list.get(it.next());
ModuleHandle mh = md.getModuleHandle();
logger.debug("Shutting down " + md.getSrvcId());
mh.stop(future -> shutdownR(it, count + 1, fut));
}
}
Aggregations