@InterfaceAudience.Private public class JVMClusterUtil extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JVMClusterUtil.MasterThread
Datastructure to hold Master Thread and Master instance
|
static class |
JVMClusterUtil.RegionServerThread
Datastructure to hold RegionServer Thread and RegionServer instance
|
| Constructor and Description |
|---|
JVMClusterUtil() |
| Modifier and Type | Method and Description |
|---|---|
static JVMClusterUtil.MasterThread |
createMasterThread(Configuration c,
CoordinatedStateManager cp,
java.lang.Class<? extends HMaster> hmc,
int index)
Creates a
JVMClusterUtil.MasterThread. |
static JVMClusterUtil.RegionServerThread |
createRegionServerThread(Configuration c,
CoordinatedStateManager cp,
java.lang.Class<? extends HRegionServer> hrsc,
int index)
Creates a
JVMClusterUtil.RegionServerThread. |
static void |
shutdown(java.util.List<JVMClusterUtil.MasterThread> masters,
java.util.List<JVMClusterUtil.RegionServerThread> regionservers) |
static java.lang.String |
startup(java.util.List<JVMClusterUtil.MasterThread> masters,
java.util.List<JVMClusterUtil.RegionServerThread> regionservers)
Start the cluster.
|
public static JVMClusterUtil.RegionServerThread createRegionServerThread(Configuration c, CoordinatedStateManager cp, java.lang.Class<? extends HRegionServer> hrsc, int index) throws java.io.IOException
JVMClusterUtil.RegionServerThread.
Call 'start' on the returned thread to make it run.c - Configuration to use.cp - consensus provider to usehrsc - Class to create.index - Used distinguishing the object returned.java.io.IOExceptionpublic static JVMClusterUtil.MasterThread createMasterThread(Configuration c, CoordinatedStateManager cp, java.lang.Class<? extends HMaster> hmc, int index) throws java.io.IOException
JVMClusterUtil.MasterThread.
Call 'start' on the returned thread to make it run.c - Configuration to use.cp - consensus provider to usehmc - Class to create.index - Used distinguishing the object returned.java.io.IOExceptionpublic static java.lang.String startup(java.util.List<JVMClusterUtil.MasterThread> masters, java.util.List<JVMClusterUtil.RegionServerThread> regionservers) throws java.io.IOException
masters - regionservers - java.io.IOExceptionpublic static void shutdown(java.util.List<JVMClusterUtil.MasterThread> masters, java.util.List<JVMClusterUtil.RegionServerThread> regionservers)
masters - regionservers -