public void clockInternal() { // Start internal clock which supplies CurrentTimeEvent events every 100ms // This may be done without delay thus the write lock indeed must be reentrant. if (services.getConfigSnapshot().getCommon().getTimeSource().getTimeUnit() != TimeUnit.MILLISECONDS) { throw new EPException("Internal timer requires millisecond time resolution"); } services.getTimerService().startInternalClock(); isUsingExternalClocking = false; }
/** * Invoked after an initialize operation. */ public void postInitialize() { // plugin-loaders List<ConfigurationRuntimePluginLoader> pluginLoaders = runtimeEnvironment.getServices().getConfigSnapshot().getRuntime().getPluginLoaders(); // in the order configured for (ConfigurationRuntimePluginLoader config : pluginLoaders) { try { PluginLoader plugin = (PluginLoader) runtimeEnvironment.getServices().getRuntimeEnvContext().lookup("plugin-loader/" + config.getLoaderName()); plugin.postInitialize(); } catch (Throwable t) { String message = "Error post-initializing plugin class " + config.getClassName() + ": " + t.getMessage(); log.error(message, t); throw new EPException(message, t); } } }
List<ConfigurationRuntimePluginLoader> pluginLoaders = runtimeToDestroy.getServices().getConfigSnapshot().getRuntime().getPluginLoaders(); if (!pluginLoaders.isEmpty()) { List<ConfigurationRuntimePluginLoader> reversed = new ArrayList<ConfigurationRuntimePluginLoader>(pluginLoaders);
if (undeployException != null && services.getConfigSnapshot().getRuntime().getExceptionHandling().getUndeployRethrowPolicy() == RETHROW_FIRST) { throw new EPUndeployException("Undeploy completed with an exception: " + undeployException.getMessage(), undeployException);
if (services.getConfigSnapshot().getCommon().getVariables().get(publicVariable) == null) { throw makePreconditionExceptionPreconfigured(PathRegistryObjectType.VARIABLE, publicVariable);
boolean countSubexpressions = services.getConfigSnapshot().getRuntime().getPatterns().getMaxSubexpressions() != null; PatternSubexpressionPoolStmtSvc patternSubexpressionPoolStmtSvc = null; if (countSubexpressions) { boolean countMatchRecogStates = services.getConfigSnapshot().getRuntime().getMatchRecognize().getMaxStates() != null; RowRecogStatePoolStmtSvc rowRecogStatePoolStmtSvc = null; if (countMatchRecogStates && informationals.isHasMatchRecognize()) {