private EPDeployment compileDeploySubscription(EPRuntimeSPI runtime, String eventTypeName, String name) { try { String epl = "@name('" + name + "') select * from " + eventTypeName; CompilerArguments args = new CompilerArguments(runtime.getConfigurationDeepCopy()); args.getPath().add(runtime.getRuntimePath()); EPCompiled compiled = EPCompilerProvider.getCompiler().compile(epl, args); return runtime.getDeploymentService().deploy(compiled); } catch (Exception ex) { throw new EPException("Failed to compile and deploy subscription: " + ex.getMessage(), ex); } } }
private EPDeployment compileDeploySubscription(EPRuntimeSPI runtime, String eventTypeName, String name) { try { String epl = "@name('" + name + "') select * from " + eventTypeName; CompilerArguments args = new CompilerArguments(runtime.getConfigurationDeepCopy()); args.getPath().add(runtime.getRuntimePath()); EPCompiled compiled = EPCompilerProvider.getCompiler().compile(epl, args); return runtime.getDeploymentService().deploy(compiled); } catch (Exception ex) { throw new EPException("Failed to compile and deploy subscription: " + ex.getMessage(), ex); } }
private EPDeployment compileDeploySubscription(EPRuntimeSPI runtime, String eventTypeName, String name) { try { String epl = "@name('" + name + "') select * from " + eventTypeName; CompilerArguments args = new CompilerArguments(runtime.getConfigurationDeepCopy()); args.getPath().add(runtime.getRuntimePath()); EPCompiled compiled = EPCompilerProvider.getCompiler().compile(epl, args); return runtime.getDeploymentService().deploy(compiled); } catch (Exception ex) { throw new EPException("Failed to compile and deploy subscription: " + ex.getMessage(), ex); } } }