@Override public void stop(String inModuleURN) { try { mManager.stop(toModuleURN(inModuleURN)); } catch (I18NException e) { throw transformFailure(e); } }
/** * Stops the module with the given URN. * * @param inInstance a <code>ModuleURN</code> value */ private void doStop(ModuleURN inInstance) { failOnNullURN(inInstance); failIfNotStrategy(inInstance, Messages.STOP_MODULE_NOT_STRATEGY); mManager.stop(inInstance); } /**
/** * Stop the object. */ @PreDestroy public void stop() { for(DataFlowID dataFlowId : dataFlowIds) { try { moduleManager.cancel(dataFlowId); } catch (Exception ignored) {} } dataFlowIds.clear(); for(ModuleDescriptor moduleDescriptor : startModules) { try { moduleManager.stop(moduleDescriptor.getModuleInstanceUrn()); } catch (Exception ignored) {} } for(ModuleURN moduleURN : createdInstances) { try { moduleManager.deleteModule(moduleURN); } catch (Exception ignored) {} createdInstances.clear(); } } /**
if(failed) { try { stop(); } catch(Exception e) { Messages.ERROR_CLEANING_UP_INIT_FAILURE.error(this, e);