gedi-geode-extensions-core/src/main/java/gedi/solutions/geode/qa/GUnit.java
public void startCluster()
	throws Exception
	{
		IO.mkdir(Paths.get(runtimeDir+"/locator").toFile());
		IO.mkdir(Paths.get(runtimeDir+"/server").toFile());
		 
		Shell shell = new Shell();
		ProcessInfo pi = shell.execute(location+"/gfsh","-e","start locator  --dir=runtime/locator --bind-address=localhost --J=-D=gemfire.jmx-manager-hostname-for-clients=localhost --J=-D=gemfire.jmx-manager-bind-address=localhost --J=-D=gemfire.http-service-bind-address=localhost --http-service-port=0  --name=locator  --port=10334");
		
		System.out.println(pi.exitValue);
		System.out.println(pi.output);
		System.out.println(pi.error);
		
		pi = shell.execute(location+"/gfsh",
		"-e","start server --name=server --dir="+runtimeDir+"/server --bind-address=localhost  --server-bind-address=localhost --locators=localhost[10334]"); 
		
		System.out.println(pi.exitValue);
		System.out.println("OUTPUT:"+pi.output);
		System.out.println("ERROR:"+pi.error);
	}
public void startCluster()
	throws Exception
	{
		IO.mkdir(Paths.get(runtimeDir+"/locator").toFile());
		IO.mkdir(Paths.get(runtimeDir+"/server").toFile());
		 
		Shell shell = new Shell();
		ProcessInfo pi = shell.execute(location+"/gfsh","-e","start locator  --dir=runtime/locator --bind-address=localhost --J=-D=gemfire.jmx-manager-hostname-for-clients=localhost --J=-D=gemfire.jmx-manager-bind-address=localhost --J=-D=gemfire.http-service-bind-address=localhost --http-service-port=0  --name=locator  --port=10334");
		
		System.out.println(pi.exitValue);
		System.out.println(pi.output);
		System.out.println(pi.error);
		
		pi = shell.execute(location+"/gfsh",
		"-e","start server --name=server --dir="+runtimeDir+"/server --bind-address=localhost  --server-bind-address=localhost --locators=localhost[10334]"); 
		
		System.out.println(pi.exitValue);
		System.out.println("OUTPUT:"+pi.output);
		System.out.println("ERROR:"+pi.error);
	}
<pre>
This method will start a single locator and cache server.

The location will be "locator".
The cache server name will be "server"


This particular method starts the member using Gfsh.

The Gfsh script location can be configured with configuration property named

gfsh_location

export gfsh_location=....

or JVM property

-Dgfsh_location=...

or add to a file named "config.properties" in the CLASSPATH.


Alternatively you could use org.apache.geode.distributed.LocatorLauncher
or org.apache.geode.distributed.ServerLauncher to start the process.

Since there can only be a single Cache instance, these process should be
started external of the current JVM.

</pre>
@throws Exception when an unknown exception occurs