private void sendError(byte hasResult, Message msg, String message, ServerConnection servConn) throws IOException { synchronized (msg) { if (hasResult == 1) { writeFunctionResponseError(msg, MessageType.EXECUTE_REGION_FUNCTION_ERROR, message, servConn); servConn.setAsTrue(RESPONDED); } } } }
private void sendException(byte hasResult, Message msg, String message, ServerConnection servConn, Throwable e) throws IOException { synchronized (msg) { if (hasResult == 1) { writeFunctionResponseException(msg, MessageType.EXCEPTION, message, servConn, e); servConn.setAsTrue(RESPONDED); } } }
logger.warn(LocalizedMessage.create(LocalizedStrings.ExecuteRegionFunction_EXCEPTION_ON_SERVER_WHILE_EXECUTIONG_FUNCTION_0, function), exception); if (hasResult == 1) { writeChunkedException(msg, exception, false, servConn); servConn.setAsTrue(RESPONDED); return; sendError(hasResult, msg, message, servConn); return; .toLocalizedString(regionName); logger.warn("{}: {}", servConn.getName(), message); sendError(hasResult, msg, message, servConn); return; .toLocalizedString(function); logger.warn("{}: {}", servConn.getName(), message); sendError(hasResult, msg, message, servConn); return; ExecuteRegionFunction_SERVER_COULD_NOT_SEND_THE_REPLY .toLocalizedString(); sendException(hasResult, msg, message, servConn,ioe); sendException(hasResult, msg, message, servConn, internalfunctionException); sendException(hasResult, msg, message, servConn,fe); sendException(hasResult, msg, message, servConn,e);
ALL_COMMANDS.put(Version.GFE_58, gfe58Commands); gfe58Commands.putAll(ALL_COMMANDS.get(Version.GFE_57)); gfe58Commands.put(MessageType.EXECUTE_REGION_FUNCTION,ExecuteRegionFunction.getCommand()); gfe58Commands.put(MessageType.EXECUTE_FUNCTION,ExecuteFunction.getCommand());
writeChunkedException(msg, exception, false, servConn); servConn.setAsTrue(RESPONDED); return; logger.warning(LocalizedStrings.ONE_ARG, servConn.getName() + ": " + message); sendError(hasResult, msg, message, servConn); return; logger.warning(LocalizedStrings.TWO_ARG_COLON, new Object[] {servConn.getName(), message}); sendError(hasResult, msg, message, servConn); return; servConn.getName() + ": " + message); sendError(hasResult, msg, message, servConn); return; ExecuteRegionFunction_SERVER_COULD_NOT_SEND_THE_REPLY .toLocalizedString(); sendException(hasResult, msg, message, servConn,ioe); sendException(hasResult, msg, message, servConn,fe); sendException(hasResult, msg, message, servConn,e);
ALL_COMMANDS.put(Version.GFE_58, gfe58Commands); gfe58Commands.putAll(ALL_COMMANDS.get(Version.GFE_57)); gfe58Commands.put(MessageType.EXECUTE_REGION_FUNCTION,ExecuteRegionFunction.getCommand()); gfe58Commands.put(MessageType.EXECUTE_FUNCTION,ExecuteFunction.getCommand());
private void sendError(byte hasResult, Message msg, String message, ServerConnection servConn) throws IOException { synchronized (msg) { if (hasResult == 1) { writeFunctionResponseError(msg, MessageType.EXECUTE_REGION_FUNCTION_ERROR, message, servConn); servConn.setAsTrue(RESPONDED); } } } }
private void sendException(byte hasResult, Message msg, String message, ServerConnection servConn, Throwable e) throws IOException { synchronized (msg) { if (hasResult == 1) { writeFunctionResponseException(msg, MessageType.EXCEPTION, message, servConn, e); servConn.setAsTrue(RESPONDED); } } }