Commit | Line | Data |
---|---|---|
8e15b929 MK |
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 | ||
9bc60be7 | 14 | package org.eclipse.tracecompass.internal.lttng2.control.core.relayd.lttngviewerCommands; |
8e15b929 MK |
15 | |
16 | /** | |
17 | * Return codes for "viewer attach" command | |
18 | * | |
19 | * @author Matthew Khouzam | |
8e15b929 MK |
20 | */ |
21 | public enum AttachReturnCode implements IBaseCommand { | |
22 | ||
23 | /** If the attach command succeeded. */ | |
24 | VIEWER_ATTACH_OK(1), | |
25 | /** If a viewer is already attached. */ | |
26 | VIEWER_ATTACH_ALREADY(2), | |
27 | /** If the session ID is unknown. */ | |
28 | VIEWER_ATTACH_UNK(3), | |
29 | /** If the session is not live. */ | |
30 | VIEWER_ATTACH_NOT_LIVE(4), | |
31 | /** Seek error. */ | |
32 | VIEWER_ATTACH_SEEK_ERR(5), | |
33 | /** No session */ | |
34 | VIEWER_ATTACH_NO_SESSION(6); | |
35 | ||
36 | private final int fCode; | |
37 | ||
38 | private AttachReturnCode(int c) { | |
39 | fCode = c; | |
40 | } | |
41 | ||
42 | @Override | |
43 | public int getCommand() { | |
44 | return fCode; | |
45 | } | |
46 | } |