gedi-geode-extensions-core/src/main/java/gedi/solutions/geode/util/GemFireNetworking.java
private static int parseLocatorPort(String locator)
	{
		int start = locator.indexOf("[");
		
		String text = null;
		if(start > 0)
		{
			String results = locator.substring(start+1);
			
			int end = results.indexOf("]");
			
			if(end > 0)
			{
				text = results.substring(0,end).trim();
				return Integer.parseInt(text);
			}
		}
		
		throw new IllegalArgumentException("Expected format host[port] but provided with:"+locator);
				
	}
private static int parseLocatorPort(String locator)
	{
		int start = locator.indexOf("[");
		
		String text = null;
		if(start > 0)
		{
			String results = locator.substring(start+1);
			
			int end = results.indexOf("]");
			
			if(end > 0)
			{
				text = results.substring(0,end).trim();
				return Integer.parseInt(text);
			}
		}
		
		throw new IllegalArgumentException("Expected format host[port] but provided with:"+locator);
				
	}
private static int parseLocatorPort ( String locator ) { int start = locator . indexOf ( "[" ) ; String text = null ; if ( start > 0 ) { String results = locator . substring ( start + 1 ) ; int end = results . indexOf ( "]" ) ; if ( end > 0 ) { text = results . substring ( 0 , end ) . trim ( ) ; return Integer . parseInt ( text ) ; } } throw new IllegalArgumentException ( "Expected format host[port] but provided with:" + locator ) ; }
--------------------------------------------------------
--------------------------------------------------------