4ec77c5ca5a35b188f187876064b3a60e21f84c1
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.control.core / src / org / eclipse / linuxtools / internal / lttng2 / control / core / relayd / lttngviewerCommands / AttachReturnCode.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 * Return codes for "viewer attach" command
18 *
19 * @author Matthew Khouzam
20 * @since 3.0
21 */
22 public enum AttachReturnCode implements IBaseCommand {
23
24 /** If the attach command succeeded. */
25 VIEWER_ATTACH_OK(1),
26 /** If a viewer is already attached. */
27 VIEWER_ATTACH_ALREADY(2),
28 /** If the session ID is unknown. */
29 VIEWER_ATTACH_UNK(3),
30 /** If the session is not live. */
31 VIEWER_ATTACH_NOT_LIVE(4),
32 /** Seek error. */
33 VIEWER_ATTACH_SEEK_ERR(5),
34 /** No session */
35 VIEWER_ATTACH_NO_SESSION(6);
36
37 private final int fCode;
38
39 private AttachReturnCode(int c) {
40 fCode = c;
41 }
42
43 @Override
44 public int getCommand() {
45 return fCode;
46 }
47 }
This page took 0.031243 seconds and 4 git commands to generate.