blob: 6345ac5436cb6d53e5017d3252d85d62c363d996 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/**********************************************************************
* Copyright (c) 2014 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
* accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Matthew Khouzam - Initial implementation and API
* Marc-Andre Laperle - Initial implementation and API
**********************************************************************/
package org.eclipse.linuxtools.internal.lttng2.control.core.relayd.lttngviewerCommands;
/**
* Get next index return code (hope it's viewer_index_ok)
*
* @author Matthew Khouzam
* @since 3.0
*/
public enum NextIndexReturnCode implements IBaseCommand {
/** Index is available. */
VIEWER_INDEX_OK(1),
/** Index not yet available. */
VIEWER_INDEX_RETRY(2),
/** Index closed (trace destroyed). */
VIEWER_INDEX_HUP(3),
/** Unknown error. */
VIEWER_INDEX_ERR(4),
/** Inactive stream beacon. */
VIEWER_INDEX_INACTIVE(5),
/** End of index file. */
VIEWER_INDEX_EOF(6);
private final int fCode;
private NextIndexReturnCode(int c) {
fCode = c;
}
@Override
public int getCommand() {
return fCode;
}
}
|