private static EPRuntimeSPI getRuntimeInternal(Configuration configuration, String runtimeURINonNull) { return new EPRuntimeImpl(configuration, runtimeURINonNull, runtimes); } }
private void initializeInternal(Long currentTime) { doInitialize(currentTime); postInitialize(); }
public void initialize() { initializeInternal(null); }
destroyEngineMetrics(runtimeEnvironment.getServices().getRuntimeURI()); loadAdapters(services); startEngineMetrics(services, eventService);
/** * Constructor - initializes services. * * @param configuration is the runtimeconfiguration * @param runtimeURI is the runtime URI or "default" (or null which it assumes as "default") if this is the default provider * @param runtimes map of URI and runtime * @throws ConfigurationException is thrown to indicate a configuraton error */ public EPRuntimeImpl(Configuration configuration, String runtimeURI, Map<String, EPRuntimeSPI> runtimes) throws ConfigurationException { if (configuration == null) { throw new NullPointerException("Unexpected null value received for configuration"); } if (runtimeURI == null) { throw new NullPointerException("runtime URI should not be null at this stage"); } this.runtimes = runtimes; this.runtimeURI = runtimeURI; serviceListeners = new CopyOnWriteArraySet<>(); configLastProvided = takeSnapshot(configuration); doInitialize(null); }
/** * Sets runtime configuration information for use in the next initialize. * * @param configuration is the runtimeconfigs */ public void setConfiguration(Configuration configuration) { configLastProvided = takeSnapshot(configuration); }
public void traverseStatements(BiConsumer<EPDeployment, EPStatement> consumer) { for (String deploymentId : getDeploymentService().getDeployments()) { EPDeployment deployment = getDeploymentService().getDeployment(deploymentId); if (deployment == null) { continue; } for (EPStatement stmt : deployment.getStatements()) { consumer.accept(deployment, stmt); } } }
destroyEngineMetrics(runtimeEnvironment.getServices().getRuntimeURI());
public Configuration getConfigurationDeepCopy() { return takeSnapshot(configAtInitialization); }
public void initialize(Long currentTime) { initializeInternal(currentTime); }