gedi-geode-extensions-core/src/main/java/gedi/solutions/geode/util/GemFireInspector.java
public static boolean checkMemberStatus(String serverName,JMX jmx)
	{
		
		try
		{
				ObjectName objectName = new ObjectName("GemFire:type=Member,member="+serverName);
				
				String status = (String)jmx.invoke(objectName, "status", null, null);
				boolean isOnline = status != null && status.contains("online");
				Debugger.println("member:"+serverName+" isOnline:"+isOnline);
				return isOnline;
			}
			catch (MalformedObjectNameException e)
			{
				throw new CommunicationException(e.getMessage()+ " server="+serverName);
			}
		
	}
public static boolean checkMemberStatus(String serverName,JMX jmx)
	{
		
		try
		{
				ObjectName objectName = new ObjectName("GemFire:type=Member,member="+serverName);
				
				String status = (String)jmx.invoke(objectName, "status", null, null);
				boolean isOnline = status != null && status.contains("online");
				Debugger.println("member:"+serverName+" isOnline:"+isOnline);
				return isOnline;
			}
			catch (MalformedObjectNameException e)
			{
				throw new CommunicationException(e.getMessage()+ " server="+serverName);
			}
		
	}
public static boolean checkMemberStatus ( String serverName , JMX jmx ) { try { ObjectName objectName = new ObjectName ( "GemFire:type=Member,member=" + serverName ) ; String status = ( String ) jmx . invoke ( objectName , "status" , null , null ) ; boolean isOnline = status != null && status . contains ( "online" ) ; Debugger . println ( "member:" + serverName + " isOnline:" + isOnline ) ; return isOnline ; } catch ( MalformedObjectNameException e ) { throw new CommunicationException ( e . getMessage ( ) + " server=" + serverName ) ; } }
--------------------------------------------------------
--------------------------------------------------------