@Singleton public class OutputRegistry extends Object
Constructor and Description |
---|
OutputRegistry(MessageOutput defaultMessageOutput,
OutputService outputService,
MessageOutputFactory messageOutputFactory,
NotificationService notificationService,
NodeId nodeId,
long faultCountThreshold,
long faultPenaltySeconds) |
Modifier and Type | Method and Description |
---|---|
Set<MessageOutput> |
getMessageOutputs() |
MessageOutput |
getOutputForIdAndStream(String id,
Stream stream) |
protected Map<String,MessageOutput> |
getRunningMessageOutputs() |
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, @Named(value="output_fault_count_threshold") long faultCountThreshold, @Named(value="output_fault_penalty_seconds") long faultPenaltySeconds)
@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–2019 Graylog, Inc.. All rights reserved.