Class CoprocessorValidatorTest
java.lang.Object
org.apache.hadoop.hbase.tool.coprocessor.CoprocessorValidatorTest
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
private static class
private static class
private static class
ObsoleteMethod coprocessor implements preCreateTable method which has HRegionInfo parameters. -
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private org.apache.hadoop.hbase.tool.coprocessor.CoprocessorValidator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static ClassLoader
private static String
getFullClassName
(String className) void
void
void
void
void
void
private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation>
validateClass
(ClassLoader classLoader, String className) private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation>
validateClass
(String className) private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation>
validateTable
(String jarFile, String className)
-
Field Details
-
CLASS_RULE
-
validator
-
-
Constructor Details
-
CoprocessorValidatorTest
public CoprocessorValidatorTest()
-
-
Method Details
-
getClassLoader
-
getFullClassName
-
validateClass
private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation> validateClass(String className) -
validateClass
private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation> validateClass(ClassLoader classLoader, String className) -
testNoSuchClass
- Throws:
IOException
-
testMissingClass
- Throws:
IOException
-
testObsoleteMethod
- Throws:
IOException
-
validateTable
private List<org.apache.hadoop.hbase.tool.coprocessor.CoprocessorViolation> validateTable(String jarFile, String className) throws IOException - Throws:
IOException
-
testTableNoSuchClass
- Throws:
IOException
-
testTableMissingJar
- Throws:
IOException
-
testTableValidJar
- Throws:
IOException
-