public Properties config(){
  Properties runningConfig=new Properties(config);
  runningConfig.setProperty(KafkaConfig.ZkConnectProp(),zookeeperConnection());
  runningConfig.setProperty(KafkaConfig.BrokerIdProp(),Integer.toString(brokerId));
  runningConfig.setProperty(KafkaConfig.HostNameProp(),"localhost");
  runningConfig.setProperty(KafkaConfig.AutoCreateTopicsEnableProp(),String.valueOf(Boolean.TRUE));
  return runningConfig;
}

public Properties config ( ) { Properties runningConfig = new Properties ( config ) ; runningConfig . setProperty ( KafkaConfig . ZkConnectProp ( ) , zookeeperConnection ( ) ) ; runningConfig . setProperty ( KafkaConfig . BrokerIdProp ( ) , Integer . toString ( brokerId ) ) ; runningConfig . setProperty ( KafkaConfig . HostNameProp ( ) , "localhost" ) ; runningConfig . setProperty ( KafkaConfig . AutoCreateTopicsEnableProp ( ) , String . valueOf ( Boolean . TRUE ) ) ; return runningConfig ; }
get a copy of the complete configuration that is or will be used by the running server .
