public synchronized void addTopicToMirrorMaker(String topicName, int numTopicPartitions) { setEmptyResourceConfig(topicName); updateCurrentServingInstance(); synchronized (_currentServingInstance) { _helixAdmin.addResource(_helixClusterName, topicName, IdealStateBuilder.buildCustomIdealStateFor(topicName, numTopicPartitions, _currentServingInstance)); } }
public synchronized void expandTopicInMirrorMaker(String topicName, int newNumTopicPartitions) { updateCurrentServingInstance(); synchronized (_currentServingInstance) { _helixAdmin.setResourceIdealState(_helixClusterName, topicName, IdealStateBuilder.expandCustomRebalanceModeIdealStateFor( _helixAdmin.getResourceIdealState(_helixClusterName, topicName), topicName, newNumTopicPartitions, _currentServingInstance)); } }
public synchronized void addTopicToMirrorMaker(String topicName, int numTopicPartitions) { setEmptyResourceConfig(topicName); updateCurrentServingInstance(); synchronized (_currentServingInstance) { _helixAdmin.addResource(_helixClusterName, topicName, IdealStateBuilder.buildCustomIdealStateFor(topicName, numTopicPartitions, _currentServingInstance)); } }
public synchronized void expandTopicInMirrorMaker(String topicName, int newNumTopicPartitions) { updateCurrentServingInstance(); synchronized (_currentServingInstance) { _helixAdmin.setResourceIdealState(_helixClusterName, topicName, IdealStateBuilder.expandCustomRebalanceModeIdealStateFor( _helixAdmin.getResourceIdealState(_helixClusterName, topicName), topicName, newNumTopicPartitions, _controllerConf, _currentServingInstance)); } }