use of org.apache.helix.model.HelixConfigScope in project pinot by linkedin.
the class HelixHelper method getInstanceConfigsMapFor.
public static Map<String, String> getInstanceConfigsMapFor(String instanceName, String clusterName, HelixAdmin admin) {
final HelixConfigScope scope = getInstanceScopefor(clusterName, instanceName);
final List<String> keys = admin.getConfigKeys(scope);
return admin.getConfig(scope, keys);
}
use of org.apache.helix.model.HelixConfigScope in project pinot by linkedin.
the class HelixHelper method updateResourceConfigsFor.
public static void updateResourceConfigsFor(Map<String, String> newConfigs, String resourceName, String clusterName, HelixAdmin admin) {
final HelixConfigScope scope = getResourceScopeFor(clusterName, resourceName);
admin.setConfig(scope, newConfigs);
}
Aggregations