redis.clients.jedis
Class Protocol

java.lang.Object
  extended by redis.clients.jedis.Protocol

public final class Protocol
extends Object


Nested Class Summary
static class Protocol.Command
           
static class Protocol.Keyword
           
 
Field Summary
static byte ASTERISK_BYTE
           
static String CHARSET
           
static String CLUSTER_ADDSLOTS
           
static String CLUSTER_COUNTKEYINSLOT
           
static String CLUSTER_DELSLOTS
           
static String CLUSTER_FAILOVER
           
static String CLUSTER_FLUSHSLOT
           
static String CLUSTER_FORGET
           
static String CLUSTER_GETKEYSINSLOT
           
static String CLUSTER_INFO
           
static String CLUSTER_KEYSLOT
           
static String CLUSTER_MEET
           
static String CLUSTER_NODES
           
static String CLUSTER_REPLICATE
           
static String CLUSTER_RESET
           
static String CLUSTER_SAVECONFIG
           
static String CLUSTER_SETSLOT
           
static String CLUSTER_SETSLOT_IMPORTING
           
static String CLUSTER_SETSLOT_MIGRATING
           
static String CLUSTER_SETSLOT_NODE
           
static String CLUSTER_SETSLOT_STABLE
           
static String CLUSTER_SLAVES
           
static String CLUSTER_SLOTS
           
static byte COLON_BYTE
           
static int DEFAULT_DATABASE
           
static int DEFAULT_PORT
           
static int DEFAULT_SENTINEL_PORT
           
static int DEFAULT_TIMEOUT
           
static byte DOLLAR_BYTE
           
static byte MINUS_BYTE
           
static byte PLUS_BYTE
           
static String PUBSUB_CHANNELS
           
static String PUBSUB_NUM_PAT
           
static String PUBSUB_NUMSUB
           
static String SENTINEL_FAILOVER
           
static String SENTINEL_GET_MASTER_ADDR_BY_NAME
           
static String SENTINEL_MASTERS
           
static String SENTINEL_MONITOR
           
static String SENTINEL_REMOVE
           
static String SENTINEL_RESET
           
static String SENTINEL_SET
           
static String SENTINEL_SLAVES
           
 
Method Summary
static Object read(RedisInputStream is)
           
static void sendCommand(RedisOutputStream os, Protocol.Command command, byte[]... args)
           
static byte[] toByteArray(boolean value)
           
static byte[] toByteArray(double value)
           
static byte[] toByteArray(int value)
           
static byte[] toByteArray(long value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

DEFAULT_SENTINEL_PORT

public static final int DEFAULT_SENTINEL_PORT
See Also:
Constant Field Values

DEFAULT_TIMEOUT

public static final int DEFAULT_TIMEOUT
See Also:
Constant Field Values

DEFAULT_DATABASE

public static final int DEFAULT_DATABASE
See Also:
Constant Field Values

CHARSET

public static final String CHARSET
See Also:
Constant Field Values

DOLLAR_BYTE

public static final byte DOLLAR_BYTE
See Also:
Constant Field Values

ASTERISK_BYTE

public static final byte ASTERISK_BYTE
See Also:
Constant Field Values

PLUS_BYTE

public static final byte PLUS_BYTE
See Also:
Constant Field Values

MINUS_BYTE

public static final byte MINUS_BYTE
See Also:
Constant Field Values

COLON_BYTE

public static final byte COLON_BYTE
See Also:
Constant Field Values

SENTINEL_MASTERS

public static final String SENTINEL_MASTERS
See Also:
Constant Field Values

SENTINEL_GET_MASTER_ADDR_BY_NAME

public static final String SENTINEL_GET_MASTER_ADDR_BY_NAME
See Also:
Constant Field Values

SENTINEL_RESET

public static final String SENTINEL_RESET
See Also:
Constant Field Values

SENTINEL_SLAVES

public static final String SENTINEL_SLAVES
See Also:
Constant Field Values

SENTINEL_FAILOVER

public static final String SENTINEL_FAILOVER
See Also:
Constant Field Values

SENTINEL_MONITOR

public static final String SENTINEL_MONITOR
See Also:
Constant Field Values

SENTINEL_REMOVE

public static final String SENTINEL_REMOVE
See Also:
Constant Field Values

SENTINEL_SET

public static final String SENTINEL_SET
See Also:
Constant Field Values

CLUSTER_NODES

public static final String CLUSTER_NODES
See Also:
Constant Field Values

CLUSTER_MEET

public static final String CLUSTER_MEET
See Also:
Constant Field Values

CLUSTER_RESET

public static final String CLUSTER_RESET
See Also:
Constant Field Values

CLUSTER_ADDSLOTS

public static final String CLUSTER_ADDSLOTS
See Also:
Constant Field Values

CLUSTER_DELSLOTS

public static final String CLUSTER_DELSLOTS
See Also:
Constant Field Values

CLUSTER_INFO

public static final String CLUSTER_INFO
See Also:
Constant Field Values

CLUSTER_GETKEYSINSLOT

public static final String CLUSTER_GETKEYSINSLOT
See Also:
Constant Field Values

CLUSTER_SETSLOT

public static final String CLUSTER_SETSLOT
See Also:
Constant Field Values

CLUSTER_SETSLOT_NODE

public static final String CLUSTER_SETSLOT_NODE
See Also:
Constant Field Values

CLUSTER_SETSLOT_MIGRATING

public static final String CLUSTER_SETSLOT_MIGRATING
See Also:
Constant Field Values

CLUSTER_SETSLOT_IMPORTING

public static final String CLUSTER_SETSLOT_IMPORTING
See Also:
Constant Field Values

CLUSTER_SETSLOT_STABLE

public static final String CLUSTER_SETSLOT_STABLE
See Also:
Constant Field Values

CLUSTER_FORGET

public static final String CLUSTER_FORGET
See Also:
Constant Field Values

CLUSTER_FLUSHSLOT

public static final String CLUSTER_FLUSHSLOT
See Also:
Constant Field Values

CLUSTER_KEYSLOT

public static final String CLUSTER_KEYSLOT
See Also:
Constant Field Values

CLUSTER_COUNTKEYINSLOT

public static final String CLUSTER_COUNTKEYINSLOT
See Also:
Constant Field Values

CLUSTER_SAVECONFIG

public static final String CLUSTER_SAVECONFIG
See Also:
Constant Field Values

CLUSTER_REPLICATE

public static final String CLUSTER_REPLICATE
See Also:
Constant Field Values

CLUSTER_SLAVES

public static final String CLUSTER_SLAVES
See Also:
Constant Field Values

CLUSTER_FAILOVER

public static final String CLUSTER_FAILOVER
See Also:
Constant Field Values

CLUSTER_SLOTS

public static final String CLUSTER_SLOTS
See Also:
Constant Field Values

PUBSUB_CHANNELS

public static final String PUBSUB_CHANNELS
See Also:
Constant Field Values

PUBSUB_NUMSUB

public static final String PUBSUB_NUMSUB
See Also:
Constant Field Values

PUBSUB_NUM_PAT

public static final String PUBSUB_NUM_PAT
See Also:
Constant Field Values
Method Detail

sendCommand

public static void sendCommand(RedisOutputStream os,
                               Protocol.Command command,
                               byte[]... args)

read

public static Object read(RedisInputStream is)

toByteArray

public static final byte[] toByteArray(boolean value)

toByteArray

public static final byte[] toByteArray(int value)

toByteArray

public static final byte[] toByteArray(long value)

toByteArray

public static final byte[] toByteArray(double value)


Copyright © 2014. All rights reserved.