public void destroy() { if (autoIdSimMain != null) { try { autoIdSimMain.destroy(); } catch (EPUndeployException e) { log.warn("Failed to undeploy: " + e.getMessage(), e); } } try { simulationThread.interrupt(); simulationThread.join(); } catch (InterruptedException e) { log.info("Interrupted", e); } autoIdSimMain = null; log.info("AutoID-example stopped."); } }
public void destroy() { if (main != null) { try { EPRuntimeProvider.getRuntime(runtimeURI).getDeploymentService().undeployAll(); } catch (EPUndeployException e) { log.warn("Failed to undeploy: " + e.getMessage(), e); } } log.info("OHLCSample-example stopped."); } }
public void destroy() { if (main != null) { try { EPRuntimeProvider.getRuntime(runtimeURI).getDeploymentService().undeployAll(); } catch (EPUndeployException e) { log.warn("Exception during undeploy: " + e.getMessage(), e); } } log.info("NamedWindowQuery-example stopped."); } }
public void destroy() { if (main != null) { try { EPRuntimeProvider.getRuntime(runtimeURI).getDeploymentService().undeployAll(); } catch (EPUndeployException e) { log.warn("Failed to undeploy: " + e.getMessage(), e); } } try { simulationThread.interrupt(); simulationThread.join(); } catch (InterruptedException e) { log.info("Interrupted", e); } main = null; log.info("StockTicker-example stopped."); } }
public void destroy() { if (main != null) { try { EPRuntimeProvider.getRuntime(runtimeURI).getDeploymentService().undeployAll(); } catch (EPUndeployException e) { log.warn("Failed to undeploy: " + e.getMessage(), e); } } try { simulationThread.interrupt(); simulationThread.join(); } catch (InterruptedException e) { log.info("Interrupted", e); } main = null; log.info("RFIDAssetZone-example stopped."); } }
public void destroy() { if (main != null) { try { EPRuntimeProvider.getRuntime(runtimeURI).getDeploymentService().undeployAll(); } catch (EPUndeployException e) { log.warn("Failed to undeploy: " + e.getMessage(), e); } } try { simulationThread.interrupt(); simulationThread.join(); } catch (InterruptedException e) { log.info("Interrupted", e); } main = null; log.info("Transaction-example stopped."); } }
public void destroy() { if (feedSimMain != null) { try { EPRuntimeProvider.getRuntime(runtimeURI).getDeploymentService().undeployAll(); } catch (EPUndeployException e) { log.warn("Failed to undeploy: " + e.getMessage(), e); } } try { simulationThread.interrupt(); simulationThread.join(); } catch (InterruptedException e) { log.info("Interrupted", e); } feedSimMain = null; log.info("MarketDataFeed-example stopped."); } }
public void destroy() { if (matchMakerMain != null) { try { EPRuntimeProvider.getRuntime(runtimeURI).getDeploymentService().undeployAll(); } catch (EPUndeployException e) { log.warn("Failed to undeploy: " + e.getMessage(), e); } } try { simulationThread.interrupt(); simulationThread.join(); } catch (InterruptedException e) { log.info("Interrupted", e); } matchMakerMain = null; log.info("MatchMaker-example stopped."); } }
public void destroy() { if (main != null) { try { EPRuntimeProvider.getDefaultRuntime().getDeploymentService().undeployAll(); } catch (EPUndeployException e) { log.warn("Failed to undeploy: " + e.getMessage(), e); } } try { simulationThread.interrupt(); simulationThread.join(); } catch (InterruptedException e) { log.info("Interrupted", e); } main = null; log.info("QualityOfService-example stopped."); } }
public void update(EventBean[] newEvents, EventBean[] oldEvents, EPStatement statement, EPRuntime runtime) { try { runtime.getDeploymentService().undeploy(spikeLatencyAlert.getDeploymentId()); } catch (EPUndeployException e) { log.warn("Failed to undeploy: " + e.getMessage(), e); } } });
public void destroy() throws EPException { if ((ExecutionPathDebugLog.isDebugEnabled) && (log.isDebugEnabled())) { log.debug(".destroy"); } for (String deployment : deploymentIds) { try { spi.getDeploymentService().undeploy(deployment); } catch (EPUndeployException e) { throw new EPException("Failed to undeploy: " + e.getMessage(), e); } } stateManager.destroy(); }
/** * Destroy the adapter. */ public synchronized void destroy() { if (log.isDebugEnabled()) { log.debug("Destroying Esper HTTP Adapter"); } EPRuntimeSPI runtime = (EPRuntimeSPI) EPRuntimeProvider.getRuntime(runtimeURI); for (String deployment : deployments) { try { runtime.getDeploymentService().undeploy(deployment); } catch (EPUndeployException e) { throw new EPException("Failed to undeploy: " + e.getMessage(), e); } } for (EsperHttpServiceBase service : services.values()) { try { service.destroy(); } catch (Throwable t) { log.info("Error destroying service '" + service.getServiceName() + "' :" + t.getMessage()); } } services.clear(); }
/** * Destroy the adapter. */ public synchronized void destroy() { if (log.isDebugEnabled()) { log.debug("Destroying Esper DB Adapter"); } EPRuntimeSPI runtime = (EPRuntimeSPI) EPRuntimeProvider.getRuntime(runtimeURI); for (String deployment : deployments) { try { runtime.getDeploymentService().undeploy(deployment); } catch (EPUndeployException e) { throw new EPException("Failed to undeploy: " + e.getMessage(), e); } } executorFactory.destroy(); } }
public void destroy(String statementName) { log.info("Via Java Management JMX proxy: Destroying statement '" + statementName + "'"); for (String deploymentId : runtime.getDeploymentService().getDeployments()) { EPDeployment deployment = runtime.getDeploymentService().getDeployment(deploymentId); for (EPStatement stmt : deployment.getStatements()) { if (statementName.equals(stmt.getName())) { try { runtime.getDeploymentService().undeploy(deploymentId); } catch (EPUndeployException e) { log.warn("Failed to undeploy: " + e.getMessage()); } } } } }
fail(); } catch (EPUndeployException ex) { SupportMessageAssertUtil.assertMessage(ex.getMessage(), "A precondition is not satisfied: Context 'NineToFive' cannot be un-deployed as it is referenced by deployment");