Class HeterogeneousCostRulesTestHelper
java.lang.Object
org.apache.hadoop.hbase.master.balancer.HeterogeneousCostRulesTestHelper
-
Field Summary
Modifier and TypeFieldDescription(package private) static final String
private static final org.slf4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static void
(package private) static String
createRulesFile
(String file) Create rule file with empty rules.(package private) static String
createRulesFile
(String file, List<String> rules) Create rule file with the given rules.
-
Field Details
-
LOG
-
DEFAULT_RULES_FILE_NAME
- See Also:
-
-
Constructor Details
-
HeterogeneousCostRulesTestHelper
private HeterogeneousCostRulesTestHelper()
-
-
Method Details
-
createRulesFile
Create rule file with the given rules.- Parameters:
file
- Name of file to write rules into.- Returns:
- Full file name of the rules file which is
dir
+ DEFAULT_RULES_FILE_NAME. - Throws:
IOException
-
createRulesFile
Create rule file with empty rules.- Parameters:
file
- Name of file to write rules into.- Returns:
- Full file name of the rules file which is
dir
+ DEFAULT_RULES_FILE_NAME. - Throws:
IOException
-
cleanup
- Throws:
IOException
-