@Singleton public class ConfigurationStateUpdater extends Object
| Constructor and Description |
|---|
ConfigurationStateUpdater(RuleService ruleService,
PipelineService pipelineService,
PipelineStreamConnectionsService pipelineStreamConnectionsService,
PipelineRuleParser pipelineRuleParser,
RuleMetricsConfigService ruleMetricsConfigService,
com.codahale.metrics.MetricRegistry metricRegistry,
FunctionRegistry functionRegistry,
ScheduledExecutorService scheduler,
com.google.common.eventbus.EventBus serverEventBus,
PipelineInterpreter.State.Factory stateFactory,
boolean allowCodeGeneration) |
| Modifier and Type | Method and Description |
|---|---|
PipelineInterpreter.State |
getLatestState()
Can be used to inspect or use the current state of the pipeline system.
|
void |
handlePipelineChanges(PipelinesChangedEvent event) |
void |
handlePipelineConnectionChanges(PipelineConnectionsChangedEvent event) |
void |
handlePipelineStateChange(PipelineInterpreter.State event) |
void |
handleRuleChanges(RulesChangedEvent event) |
void |
handleRuleMetricsConfigChange(RuleMetricsConfigChangedEvent event) |
static boolean |
isAllowCodeGeneration() |
@Inject public ConfigurationStateUpdater(RuleService ruleService, PipelineService pipelineService, PipelineStreamConnectionsService pipelineStreamConnectionsService, PipelineRuleParser pipelineRuleParser, RuleMetricsConfigService ruleMetricsConfigService, com.codahale.metrics.MetricRegistry metricRegistry, FunctionRegistry functionRegistry, @Named(value="daemonScheduler") ScheduledExecutorService scheduler, com.google.common.eventbus.EventBus serverEventBus, PipelineInterpreter.State.Factory stateFactory, @Named(value="generate_native_code") boolean allowCodeGeneration)
public static boolean isAllowCodeGeneration()
public PipelineInterpreter.State getLatestState()
public void handleRuleChanges(RulesChangedEvent event)
public void handlePipelineChanges(PipelinesChangedEvent event)
public void handlePipelineConnectionChanges(PipelineConnectionsChangedEvent event)
public void handlePipelineStateChange(PipelineInterpreter.State event)
public void handleRuleMetricsConfigChange(RuleMetricsConfigChangedEvent event)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.