pcap: Rename packages to org.eclipse.tracecompass.*
[deliverable/tracecompass.git] / org.eclipse.tracecompass.lttng2.control.core / src / org / eclipse / linuxtools / internal / lttng2 / control / core / relayd / lttngviewerCommands / GetPacketReturnCode.java
1 /**********************************************************************
2 * Copyright (c) 2014 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Matthew Khouzam - Initial implementation and API
11 * Marc-Andre Laperle - Initial implementation and API
12 **********************************************************************/
13
14 package org.eclipse.linuxtools.internal.lttng2.control.core.relayd.lttngviewerCommands;
15
16 /**
17 * Get packet return code
18 *
19 * @author Matthew Khouzam
20 * @since 3.0
21 */
22 public enum GetPacketReturnCode implements IBaseCommand {
23
24 /** Response was OK */
25 VIEWER_GET_PACKET_OK(1),
26 /** Response was RETRY */
27 VIEWER_GET_PACKET_RETRY(2),
28 /** Response was ERROR */
29 VIEWER_GET_PACKET_ERR(3),
30 /** Response was End of File */
31 VIEWER_GET_PACKET_EOF(4);
32
33 private final int fCode;
34
35 private GetPacketReturnCode(int c) {
36 fCode = c;
37 }
38
39 @Override
40 public int getCommand() {
41 return fCode;
42 }
43
44 }
This page took 0.031777 seconds and 5 git commands to generate.