private int executeZeroFunction(Pool pool) throws FunctionException,
		InterruptedException {
		int result = -1;

		ResultCollector<?, ?> collector = FunctionService.onServer(pool)
			.execute(new ZeroFunction());

		List<?> functionResult = (List<?>) collector.getResult();
		if ((functionResult != null) && (functionResult.size() == 1)
			&& (functionResult.get(0) instanceof Integer)) {
			result = (Integer) functionResult.get(0);
		}

		return result;
	}
private int executeZeroFunction(Pool pool) throws FunctionException,
		InterruptedException {
		int result = -1;

		ResultCollector<?, ?> collector = FunctionService.onServer(pool)
			.execute(new ZeroFunction());

		List<?> functionResult = (List<?>) collector.getResult();
		if ((functionResult != null) && (functionResult.size() == 1)
			&& (functionResult.get(0) instanceof Integer)) {
			result = (Integer) functionResult.get(0);
		}

		return result;
	}
private int executeZeroFunction ( Pool pool ) throws FunctionException , InterruptedException { int result = - 1 ; ResultCollector < ? , ? > collector = FunctionService . onServer ( pool ) . execute ( new ZeroFunction ( ) ) ; List < ? > functionResult = ( List < ? > ) collector . getResult ( ) ; if ( ( functionResult != null ) && ( functionResult . size ( ) == 1 ) && ( functionResult . get ( 0 ) instanceof Integer ) ) { result = ( Integer ) functionResult . get ( 0 ) ; } return result ; }
Executes the "zero" function using pool for the concrete server.

@param pool
- the pool for the concrete server
@return 0 in case of function executed without problems, -1 otherwise
@throws FunctionException
@throws InterruptedException
Executes the zero function using pool for the concrete server .