public void destroy() { esperService.destroy(); }
public void destroy() { esperService.destroy(); }
@Override public void cleanup() { if (esperSink != null) { esperSink.destroy(); } } }
public void cleanup() { epServiceProvider.destroy(); }
private void privateDestroy() { epService.destroy(); // null all the variables here to eliminate any crazy cycles config = null; injector = null; timeProvider = null; lastTime = null; epService = null; epRuntime = null; epAdministrator = null; ScheduledExecutorService svc = Executors.newSingleThreadScheduledExecutor(); Runnable garbageCollection = new Runnable() { @Override public void run() { Runtime.getRuntime().gc(); } }; svc.schedule(garbageCollection, 1, TimeUnit.MILLISECONDS); }
@Override public void cleanup() { if(!epService.isDestroyed()){ epService.destroy(); } }
@Override public void cleanup() { if (!epService.isDestroyed()) { epService.destroy(); } } }
@Override public void cleanup() { if(!epService.isDestroyed()){ epService.destroy(); } }
@Override protected void doStop() throws Exception { super.doStop(); // destroy esper instance if(esperService != null && !esperService.isDestroyed()) { esperService.destroy(); } } }
/** * Removes all statements and listeners from the esper engine, */ public void removeFromEngine() { for (EPStatement epst : this.epStatements.values()) { if (logger.isDebugEnabled()) logger.debug("Removing statement: \n\t" + epst.getText()); epst.removeAllListeners(); epst.destroy(); } /* destroy this complete engine - its independent */ this.epService.destroy(); }