You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2020/01/02 20:34:31 UTC

[GitHub] [helix] alirezazamani commented on a change in pull request #647: Add java API to create cluster with CloudConfig

alirezazamani commented on a change in pull request #647: Add java API to create cluster with CloudConfig
URL: https://github.com/apache/helix/pull/647#discussion_r362620039
 
 

 ##########
 File path: helix-core/src/main/java/org/apache/helix/model/CloudConfig.java
 ##########
 @@ -52,30 +55,23 @@
 
   /**
    * Instantiate the CloudConfig for the cloud
-   * @param cluster
-   */
-  public CloudConfig(String cluster) {
-    super(cluster);
-  }
-
-  /**
-   * Instantiate with a pre-populated record
-   * @param record a ZNRecord corresponding to a cloud configuration
    */
-  public CloudConfig(ZNRecord record) {
-    super(record);
+  private CloudConfig() {
+    super(CLOUD_CONFIG_KW);
   }
 
   /**
    * Instantiate the config using each field individually.
    * Users should use CloudConfig.Builder to create CloudConfig.
-   * @param cluster
    * @param enabled
+   * @param cloudProvider
    * @param cloudID
+   * @param cloudInfoSource
+   * @param cloudProcessorName
    */
-  public CloudConfig(String cluster, boolean enabled, CloudProvider cloudProvider, String cloudID,
+  private CloudConfig(boolean enabled, CloudProvider cloudProvider, String cloudID,
 
 Review comment:
   Fixed. Thanks for the suggestion.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org