@Override @NotNull public List<? extends QueryIndex> getQueryIndexes(NodeState nodeState) { QueryIndexProvider composite = CompositeQueryIndexProvider.compose(getServices()); return composite.getQueryIndexes(nodeState); }
@Deactivate public void deactivate() { if (registration != null) { registration.unregister(); registration = null; } if (repository != null) { repository.shutdown(); repository = null; } initializers.stop(); indexProvider.stop(); indexEditorProvider.stop(); editorProvider.stop(); }
@Activate public void activate(BundleContext bundleContext, Map<String, ?> config) throws Exception { observationQueueLength = PropertiesUtil.toInteger(prop( config, bundleContext, OBSERVATION_QUEUE_LENGTH), DEFAULT_OBSERVATION_QUEUE_LENGTH); if(PropertiesUtil.toBoolean(prop( config, bundleContext, COMMIT_RATE_LIMIT), DEFAULT_COMMIT_RATE_LIMIT)) { commitRateLimiter = new CommitRateLimiter(); } else { commitRateLimiter = null; } fastQueryResultSize = PropertiesUtil.toBoolean(prop( config, bundleContext, FAST_QUERY_RESULT_SIZE), DEFAULT_FAST_QUERY_RESULT_SIZE); whiteboard = new OsgiWhiteboard(bundleContext); initializers = whiteboard.track(RepositoryInitializer.class); editorProvider.start(whiteboard); indexEditorProvider.start(whiteboard); indexProvider.start(whiteboard); registration = registerRepository(bundleContext); }
@Activate public void activate(BundleContext bundleContext, Map<String, ?> config) throws Exception { observationQueueLength = PropertiesUtil.toInteger(prop( config, bundleContext, OBSERVATION_QUEUE_LENGTH), DEFAULT_OBSERVATION_QUEUE_LENGTH); if(PropertiesUtil.toBoolean(prop( config, bundleContext, COMMIT_RATE_LIMIT), DEFAULT_COMMIT_RATE_LIMIT)) { commitRateLimiter = new CommitRateLimiter(); } else { commitRateLimiter = null; } fastQueryResultSize = PropertiesUtil.toBoolean(prop( config, bundleContext, FAST_QUERY_RESULT_SIZE), DEFAULT_FAST_QUERY_RESULT_SIZE); whiteboard = new OsgiWhiteboard(bundleContext); initializers = whiteboard.track(RepositoryInitializer.class); editorProvider.start(whiteboard); indexEditorProvider.start(whiteboard); indexProvider.start(whiteboard); registration = registerRepository(bundleContext); }
@Deactivate public void deactivate() { if (registration != null) { registration.unregister(); registration = null; } if (repository != null) { repository.shutdown(); repository = null; } initializers.stop(); indexProvider.stop(); indexEditorProvider.stop(); editorProvider.stop(); }
@Activate public void activate(BundleContext bundleContext, Map<String, ?> config) throws Exception { observationQueueLength = PropertiesUtil.toInteger(prop( config, bundleContext, OBSERVATION_QUEUE_LENGTH), DEFAULT_OBSERVATION_QUEUE_LENGTH); if(PropertiesUtil.toBoolean(prop( config, bundleContext, COMMIT_RATE_LIMIT), DEFAULT_COMMIT_RATE_LIMIT)) { commitRateLimiter = new CommitRateLimiter(); } else { commitRateLimiter = null; } fastQueryResultSize = PropertiesUtil.toBoolean(prop( config, bundleContext, FAST_QUERY_RESULT_SIZE), DEFAULT_FAST_QUERY_RESULT_SIZE); whiteboard = new OsgiWhiteboard(bundleContext); initializers = whiteboard.track(RepositoryInitializer.class); editorProvider.start(whiteboard); indexEditorProvider.start(whiteboard); indexProvider.start(whiteboard); registration = registerRepository(bundleContext); }
@Override @Nonnull public List<? extends QueryIndex> getQueryIndexes(NodeState nodeState) { QueryIndexProvider composite = CompositeQueryIndexProvider.compose(getServices()); return composite.getQueryIndexes(nodeState); }
@Deactivate public void deactivate() { if (registration != null) { registration.unregister(); registration = null; } if (repository != null) { repository.shutdown(); repository = null; } initializers.stop(); indexProvider.stop(); indexEditorProvider.stop(); editorProvider.stop(); }