public ResultCollector execute(final String functionName) { if (functionName == null) { throw new FunctionException( LocalizedStrings.ExecuteFunction_THE_INPUT_FUNCTION_FOR_THE_EXECUTE_FUNCTION_REQUEST_IS_NULL .toLocalizedString()); } this.isFnSerializationReqd = false; Function functionObject = FunctionService.getFunction(functionName); if (functionObject == null) { throw new FunctionException( LocalizedStrings.ExecuteFunction_FUNCTION_NAMED_0_IS_NOT_REGISTERED .toLocalizedString(functionObject)); } if (region.getAttributes().getDataPolicy().isNormal()) { throw new FunctionException( LocalizedStrings.ExecuteRegionFunction_CAN_NOT_EXECUTE_ON_NORMAL_REGION .toLocalizedString()); } return executeFunction(functionObject); }
@Override public ResultCollector execute(final String functionName) { if (functionName == null) { throw new FunctionException( LocalizedStrings.ExecuteFunction_THE_INPUT_FUNCTION_FOR_THE_EXECUTE_FUNCTION_REQUEST_IS_NULL .toLocalizedString()); } this.isFnSerializationReqd = false; Function functionObject = FunctionService.getFunction(functionName); if (functionObject == null) { throw new FunctionException( LocalizedStrings.ExecuteFunction_FUNCTION_NAMED_0_IS_NOT_REGISTERED .toLocalizedString(functionObject)); } if (region.getAttributes().getDataPolicy().isNormal()) { throw new FunctionException( LocalizedStrings.ExecuteRegionFunction_CAN_NOT_EXECUTE_ON_NORMAL_REGION .toLocalizedString()); } return executeFunction(functionObject); }
@Override public ResultCollector execute(final Function function){ if (function == null) { throw new FunctionException( LocalizedStrings.ExecuteRegionFunction_THE_INPUT_0_FOR_THE_EXECUTE_FUNCTION_REQUEST_IS_NULL .toLocalizedString("function instance")); } if (function.isHA() && !function.hasResult()) { throw new FunctionException( LocalizedStrings.FunctionService_FUNCTION_ATTRIBUTE_MISMATCH .toLocalizedString()); } if (region.getAttributes().getDataPolicy().isNormal()) { throw new FunctionException( LocalizedStrings.ExecuteRegionFunction_CAN_NOT_EXECUTE_ON_NORMAL_REGION .toLocalizedString()); } String id = function.getId(); if (id == null) { throw new FunctionException(LocalizedStrings.ExecuteFunction_THE_FUNCTION_GET_ID_RETURNED_NULL.toLocalizedString()); } this.isFnSerializationReqd = true; return executeFunction(function); }
@Override public ResultCollector execute(final Function function){ if (function == null) { throw new FunctionException( LocalizedStrings.ExecuteRegionFunction_THE_INPUT_0_FOR_THE_EXECUTE_FUNCTION_REQUEST_IS_NULL .toLocalizedString("function instance")); } if (function.isHA() && !function.hasResult()) { throw new FunctionException( LocalizedStrings.FunctionService_FUNCTION_ATTRIBUTE_MISMATCH .toLocalizedString()); } if (region.getAttributes().getDataPolicy().isNormal()) { throw new FunctionException( LocalizedStrings.ExecuteRegionFunction_CAN_NOT_EXECUTE_ON_NORMAL_REGION .toLocalizedString()); } String id = function.getId(); if (id == null) { throw new FunctionException(LocalizedStrings.ExecuteFunction_THE_FUNCTION_GET_ID_RETURNED_NULL.toLocalizedString()); } this.isFnSerializationReqd = true; return executeFunction(function); }
return executeFunction(functionObject);
return executeFunction(functionObject);
return executeFunction(functionObject);
return executeFunction(functionObject);
return executeFunction(functionObject);
return executeFunction(functionObject);