Repository: kafka
Updated Branches:
  refs/heads/trunk 431c3b093 -> 57ee6ffc8


MINOR: Add KafkaServerStartable constructor overload for compatibility

We added the `reporters` parameter as part of KIP-74: Cluster Id.

Author: Ismael Juma <ism...@juma.me.uk>

Reviewers: Jason Gustafson <ja...@confluent.io>

Closes #1878 from ijuma/add-kafka-startable-overload-for-compat


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/57ee6ffc
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/57ee6ffc
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/57ee6ffc

Branch: refs/heads/trunk
Commit: 57ee6ffc897a26fea381a13b6e2b00d024c49ee8
Parents: 431c3b0
Author: Ismael Juma <ism...@juma.me.uk>
Authored: Mon Sep 19 13:08:07 2016 -0700
Committer: Jason Gustafson <ja...@confluent.io>
Committed: Mon Sep 19 13:08:07 2016 -0700

----------------------------------------------------------------------
 core/src/main/scala/kafka/server/KafkaServerStartable.scala | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/57ee6ffc/core/src/main/scala/kafka/server/KafkaServerStartable.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/kafka/server/KafkaServerStartable.scala 
b/core/src/main/scala/kafka/server/KafkaServerStartable.scala
index 4dfbb52..15406ac 100644
--- a/core/src/main/scala/kafka/server/KafkaServerStartable.scala
+++ b/core/src/main/scala/kafka/server/KafkaServerStartable.scala
@@ -32,6 +32,8 @@ object KafkaServerStartable {
 class KafkaServerStartable(val serverConfig: KafkaConfig, reporters: 
Seq[KafkaMetricsReporter]) extends Logging {
   private val server = new KafkaServer(serverConfig, kafkaMetricsReporters = 
reporters)
 
+  def this(serverConfig: KafkaConfig) = this(serverConfig, Seq.empty)
+
   def startup() {
     try {
       server.startup()

Reply via email to