Java Code Examples for org.apache.helix.model.HelixConfigScope.ConfigScopeProperty#RESOURCE

The following examples show how to use org.apache.helix.model.HelixConfigScope.ConfigScopeProperty#RESOURCE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PropertyKey.java    From helix with Apache License 2.0 4 votes vote down vote up
/**
 * Get a property key associated with resource configurations.
 * @return {@link PropertyKey}
 */
public PropertyKey resourceConfigs() {
  return new PropertyKey(CONFIGS, ConfigScopeProperty.RESOURCE, ResourceConfig.class,
      _clusterName, ConfigScopeProperty.RESOURCE.toString());
}
 
Example 2
Source File: PropertyKey.java    From helix with Apache License 2.0 2 votes vote down vote up
/**
 * Get a property key associated with a specific resource configuration.
 * @param resourceName
 * @return {@link PropertyKey}
 */
public PropertyKey resourceConfig(String resourceName) {
  return new PropertyKey(CONFIGS, ConfigScopeProperty.RESOURCE, ResourceConfig.class,
      _clusterName, ConfigScopeProperty.RESOURCE.toString(), resourceName);
}
 
Example 3
Source File: PropertyKey.java    From helix with Apache License 2.0 2 votes vote down vote up
/**
 * Get a property key associated with a partition
 * @param resourceName
 * @param partitionName
 * @return {@link PropertyKey}
 */
public PropertyKey partitionConfig(String resourceName, String partitionName) {
  return new PropertyKey(CONFIGS, ConfigScopeProperty.RESOURCE, HelixProperty.class,
      _clusterName, ConfigScopeProperty.RESOURCE.toString(), resourceName);
}
 
Example 4
Source File: PropertyKey.java    From helix with Apache License 2.0 2 votes vote down vote up
/**
 * Get a property key associated with a partition configuration
 * @param instanceName
 * @param resourceName
 * @param partitionName
 * @return {@link PropertyKey}
 */
public PropertyKey partitionConfig(String instanceName, String resourceName,
    String partitionName) {
  return new PropertyKey(CONFIGS, ConfigScopeProperty.RESOURCE, HelixProperty.class,
      _clusterName, ConfigScopeProperty.RESOURCE.toString(), resourceName);
}