Skip to content

Commit

Permalink
Fix AMQP and Kafka inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jochen Schalanda committed Sep 26, 2017
1 parent 6b28be9 commit 312ead3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/main/java/org/graylog/plugins/cef/input/CEFAmqpInput.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import com.google.inject.assistedinject.AssistedInject;
import org.graylog.plugins.cef.codec.CEFCodec;
import org.graylog2.inputs.transports.AmqpTransport;
import org.graylog2.inputs.transports.KafkaTransport;
import org.graylog2.plugin.LocalMetricRegistry;
import org.graylog2.plugin.ServerStatus;
import org.graylog2.plugin.configuration.Configuration;
Expand Down Expand Up @@ -41,9 +40,9 @@ public CEFAmqpInput(@Assisted Configuration configuration,
}

@FactoryClass
public interface Factory extends MessageInput.Factory<CEFTCPInput> {
public interface Factory extends MessageInput.Factory<CEFAmqpInput> {
@Override
CEFTCPInput create(Configuration configuration);
CEFAmqpInput create(Configuration configuration);

@Override
Config getConfig();
Expand All @@ -62,7 +61,7 @@ public Descriptor() {
@ConfigClass
public static class Config extends MessageInput.Config {
@Inject
public Config(KafkaTransport.Factory transport, CEFCodec.Factory codec) {
public Config(AmqpTransport.Factory transport, CEFCodec.Factory codec) {
super(transport.getConfig(), codec.getConfig());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public CEFKafkaInput(@Assisted Configuration configuration,
}

@FactoryClass
public interface Factory extends MessageInput.Factory<CEFTCPInput> {
public interface Factory extends MessageInput.Factory<CEFKafkaInput> {
@Override
CEFTCPInput create(Configuration configuration);
CEFKafkaInput create(Configuration configuration);

@Override
Config getConfig();
Expand Down

0 comments on commit 312ead3

Please sign in to comment.