gedi-geode-extensions-core/src/main/java/gedi/solutions/geode/util/GemFireMgmt.java
public static void stopLocator(JMX jmx,String locatorName)
	{
		try
		{
			ObjectName objectName  = new ObjectName("GemFire:type=Member,member="+locatorName);
			
			//DistributedSystemMXBean distributedSystemMXBean = 
			MemberMXBean bean = jmx.newBean(MemberMXBean.class, objectName);

			bean.shutDownMember();
		}
		catch (MalformedObjectNameException e)
		{
			throw new RuntimeException("Cannot stop member:"+locatorName+" ERROR:"+e.getMessage(),e);
		}

	}
public static void stopLocator(JMX jmx,String locatorName)
	{
		try
		{
			ObjectName objectName  = new ObjectName("GemFire:type=Member,member="+locatorName);
			
			//DistributedSystemMXBean distributedSystemMXBean = 
			MemberMXBean bean = jmx.newBean(MemberMXBean.class, objectName);

			bean.shutDownMember();
		}
		catch (MalformedObjectNameException e)
		{
			throw new RuntimeException("Cannot stop member:"+locatorName+" ERROR:"+e.getMessage(),e);
		}

	}
public static void stopLocator ( JMX jmx , String locatorName ) { try { ObjectName objectName = new ObjectName ( "GemFire:type=Member,member=" + locatorName ) ; //DistributedSystemMXBean distributedSystemMXBean =  MemberMXBean bean = jmx . newBean ( MemberMXBean . class , objectName ) ; bean . shutDownMember ( ) ; } catch ( MalformedObjectNameException e ) { throw new RuntimeException ( "Cannot stop member:" + locatorName + " ERROR:" + e . getMessage ( ) , e ) ; } }
--------------------------------------------------------
--------------------------------------------------------