org.apache.hadoop.hbase.util
Class JVMClusterUtil
java.lang.Object
org.apache.hadoop.hbase.util.JVMClusterUtil
public class JVMClusterUtil
- extends Object
Utility used running a cluster all in the one JVM.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JVMClusterUtil
public JVMClusterUtil()
createRegionServerThread
public static JVMClusterUtil.RegionServerThread createRegionServerThread(org.apache.hadoop.conf.Configuration c,
Class<? extends HRegionServer> hrsc,
int index)
throws IOException
- Creates a
JVMClusterUtil.RegionServerThread
.
Call 'start' on the returned thread to make it run.
- Parameters:
c
- Configuration to use.hrsc
- Class to create.index
- Used distingushing the object returned.
- Returns:
- Region server added.
- Throws:
IOException
startup
public static String startup(HMaster m,
List<JVMClusterUtil.RegionServerThread> regionservers)
- Start the cluster.
- Parameters:
m
- regionServers
-
- Returns:
- Address to use contacting master.
shutdown
public static void shutdown(HMaster master,
List<JVMClusterUtil.RegionServerThread> regionservers)
- Parameters:
master
- regionservers
-
Copyright © 2010 Apache Software Foundation. All Rights Reserved.