gdbtrace: Move plugins to the Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.control.core / src / org / eclipse / linuxtools / internal / lttng2 / control / core / relayd / lttngviewerCommands / NextIndexReturnCode.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 next index return code (hope it's viewer_index_ok)
18 *
19 * @author Matthew Khouzam
20 * @since 3.0
21 */
22 public enum NextIndexReturnCode implements IBaseCommand {
23
24 /** Index is available. */
25 VIEWER_INDEX_OK(1),
26 /** Index not yet available. */
27 VIEWER_INDEX_RETRY(2),
28 /** Index closed (trace destroyed). */
29 VIEWER_INDEX_HUP(3),
30 /** Unknown error. */
31 VIEWER_INDEX_ERR(4),
32 /** Inactive stream beacon. */
33 VIEWER_INDEX_INACTIVE(5),
34 /** End of index file. */
35 VIEWER_INDEX_EOF(6);
36
37 private final int fCode;
38
39 private NextIndexReturnCode(int c) {
40 fCode = c;
41 }
42
43 @Override
44 public int getCommand() {
45 return fCode;
46 }
47 }
This page took 0.037197 seconds and 5 git commands to generate.