forked from apache/helix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine the WAGED rebalancer related interfaces for integration (apach…
…e#431) * Refine the WAGED rebalancer related interfaces and initial integrate with the BestPossibleStateCalStage. - Modify the BestPossibleStateCalStage logic to plugin the WAGED rebalancer. - Refine ClusterModel to integrate with the ClusterDataDetector implementation. - Enabling getting the changed details for Cluster Config in the change detector. Which is required by the WAGED rebalancer.
- Loading branch information
1 parent
672c9cb
commit 08a2015
Showing
9 changed files
with
202 additions
and
260 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
helix-core/src/main/java/org/apache/helix/HelixRebalanceException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package org.apache.helix; | ||
|
||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
/** | ||
* Exception thrown by Helix due to rebalance failures. | ||
*/ | ||
public class HelixRebalanceException extends Exception { | ||
enum RebalanceFailureType { | ||
INVALID_CLUSTER_STATUS, | ||
INVALID_REBALANCER_STATUS, | ||
FAILED_TO_CALCULATE, | ||
UNKNOWN_FAILURE | ||
} | ||
|
||
private final RebalanceFailureType _type; | ||
|
||
public HelixRebalanceException(String message, RebalanceFailureType type, Throwable cause) { | ||
super(String.format("%s. Failure Type: %s", message, type.name()), cause); | ||
_type = type; | ||
} | ||
|
||
public RebalanceFailureType getFailureType() { | ||
return _type; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 0 additions & 67 deletions
67
helix-core/src/main/java/org/apache/helix/controller/rebalancer/GlobalRebalancer.java
This file was deleted.
Oops, something went wrong.
73 changes: 0 additions & 73 deletions
73
...-core/src/main/java/org/apache/helix/controller/rebalancer/waged/ClusterDataDetector.java
This file was deleted.
Oops, something went wrong.
54 changes: 0 additions & 54 deletions
54
...-core/src/main/java/org/apache/helix/controller/rebalancer/waged/ClusterDataProvider.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.