gedi-geode-extensions-core/src/main/java/gedi/solutions/geode/client/GemFireJmxClient.java
private static ObjectName getRegionObjectName(String regionName,JMX jmx)
	{
		String regionJmxPattern = String.format("GemFire:service=Region,name=/%s,type=Distributed",regionName);

		//System.out.println("searching for:"+regionJmxPattern);
		
		Set<ObjectName> regionObjNameSet = jmx.searchObjectNames(regionJmxPattern);
		
		
		if(regionObjNameSet == null || regionObjNameSet.isEmpty())
		{
			//search with quotes
			//GemFire:service=Region,name="/ui-test-region",type=Distributed
			regionJmxPattern = String.format("GemFire:service=Region,name=\"/%s\",type=Distributed",regionName);
			
			//System.out.println("searching for:"+regionJmxPattern);
			
			regionObjNameSet = jmx.searchObjectNames(regionJmxPattern);
			
		}
		if(regionObjNameSet == null)
			return null;
		
		return regionObjNameSet.iterator().next();
	}
private static ObjectName getRegionObjectName(String regionName,JMX jmx)
	{
		String regionJmxPattern = String.format("GemFire:service=Region,name=/%s,type=Distributed",regionName);

		//System.out.println("searching for:"+regionJmxPattern);
		
		Set<ObjectName> regionObjNameSet = jmx.searchObjectNames(regionJmxPattern);
		
		
		if(regionObjNameSet == null || regionObjNameSet.isEmpty())
		{
			//search with quotes
			//GemFire:service=Region,name="/ui-test-region",type=Distributed
			regionJmxPattern = String.format("GemFire:service=Region,name=\"/%s\",type=Distributed",regionName);
			
			//System.out.println("searching for:"+regionJmxPattern);
			
			regionObjNameSet = jmx.searchObjectNames(regionJmxPattern);
			
		}
		if(regionObjNameSet == null)
			return null;
		
		return regionObjNameSet.iterator().next();
	}
private static ObjectName getRegionObjectName ( String regionName , JMX jmx ) { String regionJmxPattern = String . format ( "GemFire:service=Region,name=/%s,type=Distributed" , regionName ) ; //System.out.println("searching for:"+regionJmxPattern); Set < ObjectName > regionObjNameSet = jmx . searchObjectNames ( regionJmxPattern ) ; if ( regionObjNameSet == null || regionObjNameSet . isEmpty ( ) ) { //search with quotes //GemFire:service=Region,name="/ui-test-region",type=Distributed regionJmxPattern = String . format ( "GemFire:service=Region,name=\"/%s\",type=Distributed" , regionName ) ; //System.out.println("searching for:"+regionJmxPattern); regionObjNameSet = jmx . searchObjectNames ( regionJmxPattern ) ; } if ( regionObjNameSet == null ) return null ; return regionObjNameSet . iterator ( ) . next ( ) ; }
--------------------------------------------------------
--------------------------------------------------------