| /* |
| * Licensed to the Apache Software Foundation (ASF) under one or more contributor license |
| * agreements. See the NOTICE file distributed with this work for additional information regarding |
| * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance with the License. You may obtain a |
| * copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software distributed under the License |
| * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| * or implied. See the License for the specific language governing permissions and limitations under |
| * the License. |
| */ |
| package org.apache.geode.redis.internal; |
| |
| |
| public class RedisConstants { |
| |
| /* |
| * Responses |
| */ |
| public static final String QUIT_RESPONSE = "OK"; |
| |
| /* |
| * Error responses |
| */ |
| public static final String PARSING_EXCEPTION_MESSAGE = |
| "The command received by GeodeRedisServer was improperly formatted"; |
| public static final String SERVER_ERROR_MESSAGE = |
| "The server had an internal error please try again"; |
| public static final String SERVER_ERROR_SHUTDOWN = "The server is shutting down"; |
| public static final String ERROR_SELECT = "Only DB 0 supported"; |
| public static final String ERROR_CURSOR = "invalid cursor"; |
| public static final String ERROR_UNKNOWN_COMMAND = |
| "unknown command `%s`, with args beginning with: %s"; |
| public static final String ERROR_UNSUPPORTED_COMMAND = |
| " is not supported. To enable all unsupported commands use GFSH to execute: 'redis --enable-unsupported-commands'. Unsupported commands have not been fully tested."; |
| public static final String ERROR_OUT_OF_RANGE = "The number provided is out of range"; |
| public static final String ERROR_NO_PASS = "Client sent AUTH, but no password is set"; |
| public static final String ERROR_INVALID_PWD = "invalid password"; |
| public static final String ERROR_NOT_AUTH = "NOAUTH Authentication required."; |
| public static final String ERROR_WRONG_TYPE = |
| "Operation against a key holding the wrong kind of value"; |
| public static final String ERROR_NOT_INTEGER = "value is not an integer or out of range"; |
| public static final String ERROR_OVERFLOW = "increment or decrement would overflow"; |
| public static final String ERROR_NAN_OR_INFINITY = "increment would produce NaN or Infinity"; |
| public static final String ERROR_NO_SUCH_KEY = "no such key"; |
| public static final String ERROR_SYNTAX = "syntax error"; |
| public static final String ERROR_INVALID_EXPIRE_TIME = "invalid expire time in set"; |
| public static final String ERROR_NOT_A_VALID_FLOAT = "value is not a valid float"; |
| |
| public static final String ERROR_UNKNOWN_SLOWLOG_SUBCOMMAND = |
| "Unknown subcommand or wrong number of arguments for '%s'. Try SLOWLOG HELP."; |
| } |