public class TestClassLoading extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestClassLoading.TestMasterCoprocessor |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hdfs.MiniDFSCluster |
cluster |
(package private) static String |
cpName1 |
(package private) static String |
cpName2 |
(package private) static String |
cpName3 |
(package private) static String |
cpName4 |
(package private) static String |
cpName5 |
(package private) static String |
cpName6 |
private static org.slf4j.Logger |
LOG |
private static Class<?> |
masterCoprocessor |
private static String[] |
masterRegionServerSystemCoprocessors |
private static Class<?> |
regionCoprocessor1 |
private static Class<?> |
regionCoprocessor2 |
private static Class<?> |
regionServerCoprocessor |
private static String[] |
regionServerSystemCoprocessors |
(package private) static org.apache.hadoop.hbase.TableName |
tableName |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestClassLoading() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
assertAllRegionServers(String tableName) |
(package private) static File |
buildCoprocessorJar(String className) |
private String |
getLocalPath(File file) |
(package private) void |
loadingClassFromLibDirInJar(String libPrefix) |
(package private) Map<org.apache.hadoop.hbase.ServerName,org.apache.hadoop.hbase.ServerMetrics> |
serversForTable(String tableName)
return the subset of all regionservers
(actually returns set of ServerLoads)
which host some region in a given table.
|
static void |
setUpBeforeClass() |
private String[] |
switchExpectedCoprocessors(String[] expectedCoprocessors) |
static void |
tearDownAfterClass() |
void |
testClassLoadingFromHDFS() |
void |
testClassLoadingFromLibDirInJar() |
void |
testClassLoadingFromLocalFS() |
void |
testClassLoadingFromRelativeLibDirInJar() |
void |
testHBase3810() |
void |
testMasterCoprocessorsReported() |
void |
testPrivateClassLoader() |
void |
testRegionServerCoprocessorsReported() |
private void |
waitForTable(org.apache.hadoop.hbase.TableName name) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.hdfs.MiniDFSCluster cluster
static final org.apache.hadoop.hbase.TableName tableName
static final String cpName1
static final String cpName2
static final String cpName3
static final String cpName4
static final String cpName5
static final String cpName6
private static Class<?> regionCoprocessor1
private static Class<?> regionCoprocessor2
private static Class<?> regionServerCoprocessor
private static Class<?> masterCoprocessor
private static final String[] regionServerSystemCoprocessors
private static final String[] masterRegionServerSystemCoprocessors
public TestClassLoading()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
static File buildCoprocessorJar(String className) throws Exception
Exception
public void testClassLoadingFromHDFS() throws Exception
Exception
private String getLocalPath(File file)
public void testClassLoadingFromLocalFS() throws Exception
Exception
public void testPrivateClassLoader() throws Exception
Exception
public void testHBase3810() throws Exception
Exception
public void testClassLoadingFromLibDirInJar() throws Exception
Exception
public void testClassLoadingFromRelativeLibDirInJar() throws Exception
Exception
void loadingClassFromLibDirInJar(String libPrefix) throws Exception
Exception
public void testRegionServerCoprocessorsReported() throws Exception
Exception
Map<org.apache.hadoop.hbase.ServerName,org.apache.hadoop.hbase.ServerMetrics> serversForTable(String tableName)
tableName
- : given table.void assertAllRegionServers(String tableName) throws InterruptedException
InterruptedException
private String[] switchExpectedCoprocessors(String[] expectedCoprocessors)
public void testMasterCoprocessorsReported()
private void waitForTable(org.apache.hadoop.hbase.TableName name) throws InterruptedException, IOException
InterruptedException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.