@Override protected void doDispose() { try { if (quartzScheduler != null) { quartzScheduler.shutdown(); } } catch (Exception e) { logger.warn(CoreMessages.failedToStop("Quartz provider"), e); } String instanceName = factoryProperties.getProperty(QUARTZ_INSTANCE_NAME_PROPERTY); if (instanceName != null) { removeUpInstanceName(instanceName); } }
public void stop() throws MuleException { if (mBeanServer == null) { return; } try { mBeanServer.invoke(adaptorName, "stop", null, null); } catch (InstanceNotFoundException e) { throw new JmxManagementException( CoreMessages.failedToStop("Mx4j agent"), adaptorName, e); } catch (MBeanException e) { throw new JmxManagementException( CoreMessages.failedToStop("Mx4j agent"), adaptorName, e); } catch (ReflectionException e) { // ignore } }
@Override public void stop() throws MuleException { if (mBeanServer == null) { return; } try { mBeanServer.invoke(adaptorName, "stop", null, null); } catch (InstanceNotFoundException e) { throw new JmxManagementException( CoreMessages.failedToStop("Jdmk agent"), adaptorName, e); } catch (MBeanException e) { throw new JmxManagementException( CoreMessages.failedToStop("Jdmk agent"), adaptorName, e); } catch (ReflectionException e) { // ignore } }
@Override protected void doStop() throws MuleException { try { httpServer.stop(); for (ConnectorHolder<?, ?> connectorRef : holders.values()) { connectorRef.stop(); } } catch (Exception e) { throw new LifecycleException(CoreMessages.failedToStop("Jetty Http Receiver"), e, this); } }
@Override protected void doStop() throws MuleException { try { if (quartzScheduler != null) { quartzScheduler.standby(); } } catch (Exception e) { throw new ConnectorException(CoreMessages.failedToStop("Quartz provider"), this, e); } }
public void stop() throws MuleException { if (connectorServer != null) { try { connectorServer.stop(); } catch (Exception e) { throw new JmxManagementException(CoreMessages.failedToStop("Jmx Connector"), e); } } }
/** * Propagates stop() life-cycle to component object implementations if they * implement the mule {@link Stoppable} interface. NOT: It is up to component * implementations to ensure their implementation of stop() is thread-safe. */ @Override public void stop() throws MuleException { if (isStoppable) { try { ((Stoppable) componentObject).stop(); started = false; } catch (Exception e) { throw new DefaultMuleException(CoreMessages.failedToStop("Service: " + flowConstruct.getName()), e); } } else { started = false; } }
@Override protected void doStop() throws MuleException { super.doStop(); if (started && Stoppable.class.isAssignableFrom(objectFactory.getObjectClass())) { try { ((Stoppable) objectFactory.getInstance(muleContext)).stop(); } catch (Exception e) { throw new ServiceException(CoreMessages.failedToStop("Service '" + flowConstruct.getName() + "'"), e); } } }
@Override protected void doStop() throws MuleException { super.doStop(); // It only makes sense to propagate this life-cycle to singleton component // implementations if (singletonComponentLifecycleAdapter != null && singletonComponentLifecycleAdapter.isStarted()) { try { singletonComponentLifecycleAdapter.stop(); } catch (Exception e) { throw new ServiceException(CoreMessages.failedToStop("Service '" + flowConstruct.getName() + "'"), e); } } }