gedi-geode-extensions-core/src/main/java/gedi/solutions/geode/qa/GUnit.java
public void shutdown()
	{
		try(JMX jmx = JMX.connect("localhost", 1099))
		{
			String[] members =  GemFireMgmt.shutDown(jmx);
			
			Debugger.println("members:"+Debugger.toString(members));
			
			GemFireMgmt.stopLocator(jmx, "locator");
			
		}
		
		try
		{
			IO.delete(Paths.get(runtimeDir+"/server").toFile());		
		}
		catch(IOException e) {Debugger.printWarn(e);} 
		
		try
		{
			IO.delete(Paths.get(runtimeDir+"/locator").toFile());	
		}
		catch(IOException e) {Debugger.printWarn(e);} 
		
	
	}
public void shutdown()
	{
		try(JMX jmx = JMX.connect("localhost", 1099))
		{
			String[] members =  GemFireMgmt.shutDown(jmx);
			
			Debugger.println("members:"+Debugger.toString(members));
			
			GemFireMgmt.stopLocator(jmx, "locator");
			
		}
		
		try
		{
			IO.delete(Paths.get(runtimeDir+"/server").toFile());		
		}
		catch(IOException e) {Debugger.printWarn(e);} 
		
		try
		{
			IO.delete(Paths.get(runtimeDir+"/locator").toFile());	
		}
		catch(IOException e) {Debugger.printWarn(e);} 
		
	
	}
public void shutdown ( ) { try ( JMX jmx = JMX . connect ( "localhost" , 1099 ) ) { String [ ] members = GemFireMgmt . shutDown ( jmx ) ; Debugger . println ( "members:" + Debugger . toString ( members ) ) ; GemFireMgmt . stopLocator ( jmx , "locator" ) ; } try { IO . delete ( Paths . get ( runtimeDir + "/server" ) . toFile ( ) ) ; } catch ( IOException e ) { Debugger . printWarn ( e ) ; } try { IO . delete ( Paths . get ( runtimeDir + "/locator" ) . toFile ( ) ) ; } catch ( IOException e ) { Debugger . printWarn ( e ) ; } }
------------------------------------------------
------------------------------------------------