Map<String, Properties> pluginsInfo = this.getSlaveProperties(name);
if (isClearMsg) {
Utils.clearDataDir(metaConfig);
}
SimpleFetchManager.setMessageIdCache(null);
EnhancedBroker broker = new EnhancedBroker(metaConfig, pluginsInfo);
if (isClearConsumerInfo) {
Utils.clearConsumerInfoInZk(broker.getBroker().getBrokerZooKeeper().getZkClient(), broker.getBroker()
.getBrokerZooKeeper().getMetaZookeeper());
}
broker.start();
// this.slaveBrokers.add(broker);
return broker;
}