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; .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, fe);
gfe65Commands.put(MessageType.USER_CREDENTIAL_MESSAGE, PutUserCredentials.getCommand()); gfe65Commands.put(MessageType.REMOVE_USER_AUTH, RemoveUserAuth.getCommand()); gfe65Commands.put(MessageType.EXECUTE_REGION_FUNCTION_SINGLE_HOP,ExecuteRegionFunctionSingleHop.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; sendError(hasResult, msg, message, servConn); return; 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);
gfe65Commands.put(MessageType.USER_CREDENTIAL_MESSAGE, PutUserCredentials.getCommand()); gfe65Commands.put(MessageType.REMOVE_USER_AUTH, RemoveUserAuth.getCommand()); gfe65Commands.put(MessageType.EXECUTE_REGION_FUNCTION_SINGLE_HOP,ExecuteRegionFunctionSingleHop.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); } } }