Search in sources :

Example 6 with HelixConfigScope

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);
}
Also used : HelixConfigScope(org.apache.helix.model.HelixConfigScope)

Example 7 with HelixConfigScope

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);
}
Also used : HelixConfigScope(org.apache.helix.model.HelixConfigScope)

Aggregations

HelixConfigScope (org.apache.helix.model.HelixConfigScope)7 HelixConfigScopeBuilder (org.apache.helix.model.builder.HelixConfigScopeBuilder)3 HashMap (java.util.HashMap)2 PinotHelixBrokerResourceOnlineOfflineStateModelGenerator (com.linkedin.pinot.controller.helix.core.PinotHelixBrokerResourceOnlineOfflineStateModelGenerator)1 PinotHelixSegmentOnlineOfflineStateModelGenerator (com.linkedin.pinot.controller.helix.core.PinotHelixSegmentOnlineOfflineStateModelGenerator)1 ArrayList (java.util.ArrayList)1 HelixAdmin (org.apache.helix.HelixAdmin)1 HelixDataAccessor (org.apache.helix.HelixDataAccessor)1 HelixManager (org.apache.helix.HelixManager)1 PropertyKey (org.apache.helix.PropertyKey)1 ZNRecord (org.apache.helix.ZNRecord)1 ZKHelixAdmin (org.apache.helix.manager.zk.ZKHelixAdmin)1 ZKHelixDataAccessor (org.apache.helix.manager.zk.ZKHelixDataAccessor)1 ZNRecordSerializer (org.apache.helix.manager.zk.ZNRecordSerializer)1 ZkClient (org.apache.helix.manager.zk.ZkClient)1 IdealState (org.apache.helix.model.IdealState)1 StateModelDefinition (org.apache.helix.model.StateModelDefinition)1 StateMachineEngine (org.apache.helix.participant.StateMachineEngine)1