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