@Singleton public class OutputRegistry extends Object
| Constructor and Description |
|---|
OutputRegistry(MessageOutput defaultMessageOutput,
OutputService outputService,
MessageOutputFactory messageOutputFactory,
NotificationService notificationService,
NodeId nodeId,
com.google.common.eventbus.EventBus eventBus,
StreamService streamService,
long faultCountThreshold,
long faultPenaltySeconds) |
| Modifier and Type | Method and Description |
|---|---|
Set<MessageOutput> |
getMessageOutputs() |
MessageOutput |
getOutputForIdAndStream(String id,
Stream stream) |
protected Map<String,MessageOutput> |
getRunningMessageOutputs() |
void |
handleOutputChanged(OutputChangedEvent outputChangedEvent)
Stops the output and removes it from the registry.
|
void |
handleOutputDeleted(OutputDeletedEvent outputDeletedEvent) |
void |
handleStreamsChanged(StreamsChangedEvent streamsChangedEvent)
Whenever a stream changes, this could mean that an output was removed from it.
|
protected MessageOutput |
launchOutput(Output output,
Stream stream) |
Callable<MessageOutput> |
loadForIdAndStream(String id,
Stream stream) |
void |
removeOutput(Output output) |
@Inject public OutputRegistry(MessageOutput defaultMessageOutput, OutputService outputService, MessageOutputFactory messageOutputFactory, NotificationService notificationService, NodeId nodeId, com.google.common.eventbus.EventBus eventBus, StreamService streamService, @Named(value="output_fault_count_threshold") long faultCountThreshold, @Named(value="output_fault_penalty_seconds") long faultPenaltySeconds)
public void handleOutputChanged(OutputChangedEvent outputChangedEvent)
OutputRouter
via getOutputForIdAndStream(String, Stream)public void handleStreamsChanged(StreamsChangedEvent streamsChangedEvent)
public void handleOutputDeleted(OutputDeletedEvent outputDeletedEvent)
@Nullable public MessageOutput getOutputForIdAndStream(String id, Stream stream)
public Callable<MessageOutput> loadForIdAndStream(String id, Stream stream)
protected MessageOutput launchOutput(Output output, Stream stream) throws MessageOutputConfigurationException
protected Map<String,MessageOutput> getRunningMessageOutputs()
public Set<MessageOutput> getMessageOutputs()
public void removeOutput(Output output)
Copyright © 2012–2022 Graylog, Inc.. All rights reserved.