gedi-geode-extensions-core/src/main/java/gedi/solutions/geode/wan/GetEntriesChecksumFunction.java
@Override
	public void execute(FunctionContext<Object> functionContext)
	{
		try
		{
			String[] args = (String[])functionContext.getArguments();
			if(args == null || args.length == 0)
				throw new IllegalArgumentException("region argument required");
			
			String regionName = args[0];
			
			if(regionName == null || regionName.length() == 0)
				throw new IllegalArgumentException("region name argument required");
			
			Region<Serializable,Object> region = CacheFactory.getAnyInstance().getRegion(regionName);
			
			if(region == null)
				throw new IllegalArgumentException("region:"+regionName+" not found");
			
			functionContext.getResultSender().lastResult(buildCheckSumMap(region));
		}
		catch (Exception e)
		{
			String stack = Debugger.stackTrace(e);
			LogManager.getLogger(getClass()).error(stack);
			throw new FunctionException(stack);
		}
	}
@Override
	public void execute(FunctionContext<Object> functionContext)
	{
		try
		{
			String[] args = (String[])functionContext.getArguments();
			if(args == null || args.length == 0)
				throw new IllegalArgumentException("region argument required");
			
			String regionName = args[0];
			
			if(regionName == null || regionName.length() == 0)
				throw new IllegalArgumentException("region name argument required");
			
			Region<Serializable,Object> region = CacheFactory.getAnyInstance().getRegion(regionName);
			
			if(region == null)
				throw new IllegalArgumentException("region:"+regionName+" not found");
			
			functionContext.getResultSender().lastResult(buildCheckSumMap(region));
		}
		catch (Exception e)
		{
			String stack = Debugger.stackTrace(e);
			LogManager.getLogger(getClass()).error(stack);
			throw new FunctionException(stack);
		}
	}
@ Override public void execute ( FunctionContext < Object > functionContext ) { try { String [ ] args = ( String [ ] ) functionContext . getArguments ( ) ; if ( args == null || args . length == 0 ) throw new IllegalArgumentException ( "region argument required" ) ; String regionName = args [ 0 ] ; if ( regionName == null || regionName . length ( ) == 0 ) throw new IllegalArgumentException ( "region name argument required" ) ; Region < Serializable , Object > region = CacheFactory . getAnyInstance ( ) . getRegion ( regionName ) ; if ( region == null ) throw new IllegalArgumentException ( "region:" + regionName + " not found" ) ; functionContext . getResultSender ( ) . lastResult ( buildCheckSumMap ( region ) ) ; } catch ( Exception e ) { String stack = Debugger . stackTrace ( e ) ; LogManager . getLogger ( getClass ( ) ) . error ( stack ) ; throw new FunctionException ( stack ) ; } }
This function gets HashMap key=Serializable value=BigInteger

@param functionContext contains an argument String[] where the first contains the regionName
This function gets HashMap key = Serializable value = BigInteger