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);
			
			
			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 ) ; } }
--------------------------------------------------------
--------------------------------------------------------