Skip to content

Package: CommandOpcodes

CommandOpcodes

nameinstructionbranchcomplexitylinemethod
CommandOpcodes(String, int, int)
M: 11 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
opcode()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
static {...}
M: 664 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 61 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: * Copyright (c) 2012, 2017 Oracle and/or its affiliates. All rights reserved.
3: *
4: * This program and the accompanying materials are made available under the
5: * terms of the Eclipse Public License v. 2.0, which is available at
6: * http://www.eclipse.org/legal/epl-2.0.
7: *
8: * This Source Code may also be made available under the following Secondary
9: * Licenses when the conditions for such availability set forth in the
10: * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11: * version 2 with the GNU Classpath Exception, which is available at
12: * https://www.gnu.org/software/classpath/license.html.
13: *
14: * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15: */
16:
17: package org.glassfish.grizzly.memcached;
18:
19: /**
20: * Defines opcodes of the memcached's binary protocol
21: * <p>
22: * See http://code.google.com/p/memcached/wiki/BinaryProtocolRevamped#Command_Opcodes
23: *
24: * @author Bongjae Chang
25: */
26: public enum CommandOpcodes {
27: Get(0x00),
28: Gets(0x00),
29: Set(0x01),
30: Add(0x02),
31: Replace(0x03),
32: Delete(0x04),
33: Increment(0x05),
34: Decrement(0x06),
35: Quit(0x07),
36: Flush(0x08),
37: GetQ(0x09),
38: GetsQ(0x09),
39: Noop(0x0a),
40: Version(0x0b),
41: GetK(0x0c),
42: GetKQ(0x0d),
43: Append(0x0e),
44: Prepend(0x0f),
45: Stat(0x10),
46: SetQ(0x11),
47: AddQ(0x12),
48: ReplaceQ(0x13),
49: DeleteQ(0x14),
50: IncrementQ(0x15),
51: DecrementQ(0x16),
52: QuitQ(0x17),
53: FlushQ(0x18),
54: AppendQ(0x19),
55: PrependQ(0x1a),
56: Verbosity(0x1b),
57: Touch(0x1c),
58: GAT(0x1d),
59: GATQ(0x1e),
60: SASL_List(0x20),
61: SASL_Auth(0x21),
62: SASL_Step(0x22),
63: RGet(0x30),
64: RSet(0x31),
65: RSetQ(0x32),
66: RAppend(0x33),
67: RAppendQ(0x34),
68: RPrepend(0x35),
69: RPrependQ(0x36),
70: RDelete(0x37),
71: RDeleteQ(0x38),
72: RIncr(0x39),
73: RIncrQ(0x3a),
74: RDecr(0x3b),
75: RDecrQ(0x3c),
76: Set_VBucket(0x3d),
77: Get_VBucket(0x3e),
78: Del_VBucket(0x3f),
79: TAP_Connect(0x40),
80: TAP_Mutation(0x41),
81: TAP_Delete(0x42),
82: TAP_Flush(0x43),
83: TAP_Opaque(0x44),
84: TAP_VBucket_Set(0x45),
85: TAP_Checkpoint_Start(0x46),
86: TAP_Checkpoint_End(0x47);
87:
88: private final byte opcode;
89:
90: private CommandOpcodes(int opcode) {
91: this.opcode = (byte) (opcode & 0xff);
92: }
93:
94: public byte opcode() {
95: return opcode;
96: }
97: }