private void sendError(byte hasResult, Message msg, String message, ServerConnection servConn) throws IOException { if (hasResult == 1) { writeFunctionResponseError(msg, MessageType.EXECUTE_FUNCTION_ERROR, message, servConn); servConn.setAsTrue(RESPONDED); } }
private void sendException(byte hasResult, Message msg, String message, ServerConnection servConn, Throwable e) throws IOException { if (hasResult == 1) { writeFunctionResponseException(msg, MessageType.EXCEPTION, message, servConn, e); servConn.setAsTrue(RESPONDED); } }
logger.warn(LocalizedMessage.create(LocalizedStrings.ExecuteFunction_EXCEPTION_ON_SERVER_WHILE_EXECUTIONG_FUNCTION_0, function), exception); if (hasResult == 1) { writeChunkedException(msg, exception, false, servConn); servConn.setAsTrue(RESPONDED); return; .toLocalizedString(); 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; sendException(hasResult, msg, e.getMessage(), servConn, e); return; logger.warn(LocalizedMessage.create(LocalizedStrings.ExecuteFunction_EXCEPTION_ON_SERVER_WHILE_EXECUTIONG_FUNCTION_0, function), ioException); String message = LocalizedStrings.ExecuteFunction_SERVER_COULD_NOT_SEND_THE_REPLY.toLocalizedString(); sendException(hasResult, msg, message, servConn, ioException); sendException(hasResult, msg, message, servConn, internalfunctionException);
gfe65Commands.put(MessageType.PUT,Put65.getCommand()); gfe65Commands.put(MessageType.EXECUTE_REGION_FUNCTION,ExecuteRegionFunction65.getCommand()); gfe65Commands.put(MessageType.EXECUTE_FUNCTION,ExecuteFunction65.getCommand()); gfe65Commands.put(MessageType.GET_CLIENT_PR_METADATA,GetClientPRMetadataCommand.getCommand()); gfe65Commands.put(MessageType.GET_CLIENT_PARTITION_ATTRIBUTES,GetClientPartitionAttributesCommand.getCommand());
writeChunkedException(msg, exception, false, servConn); servConn.setAsTrue(RESPONDED); return; logger.warning(LocalizedStrings.TWO_ARG_COLON, new Object[] {servConn.getName(), message}); sendError(hasResult, msg, message, servConn); return; new Object[] {servConn.getName(), message}); sendError(hasResult, msg, message, servConn); return; + ": " + message); sendError(hasResult, msg, message, servConn); return; .toLocalizedString(new Object[] {functionObject.getId(), sm}), sm); sendException(hasResult, msg, e.getMessage(), servConn, e); return; sendException(hasResult, msg, message, servConn,ioException); sendException(hasResult, msg, message, servConn,e);
gfe65Commands.put(MessageType.PUT,Put65.getCommand()); gfe65Commands.put(MessageType.EXECUTE_REGION_FUNCTION,ExecuteRegionFunction65.getCommand()); gfe65Commands.put(MessageType.EXECUTE_FUNCTION,ExecuteFunction65.getCommand()); gfe65Commands.put(MessageType.GET_CLIENT_PR_METADATA,GetClientPRMetadataCommand.getCommand()); gfe65Commands.put(MessageType.GET_CLIENT_PARTITION_ATTRIBUTES,GetClientPartitionAttributesCommand.getCommand());
private void sendError(byte hasResult, Message msg, String message, ServerConnection servConn) throws IOException { if (hasResult == 1) { writeFunctionResponseError(msg, MessageType.EXECUTE_FUNCTION_ERROR, message, servConn); servConn.setAsTrue(RESPONDED); } }
private void sendException(byte hasResult, Message msg, String message, ServerConnection servConn, Throwable e) throws IOException { if (hasResult == 1) { writeFunctionResponseException(msg, MessageType.EXCEPTION, message, servConn, e); servConn.setAsTrue(RESPONDED); } }