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 | ||
41b4bff4 | 14 | package org.eclipse.tracecompass.internal.lttng2.control.core.relayd.commands; |
8e15b929 MK |
15 | |
16 | /** | |
17 | * Seek command | |
18 | * | |
19 | * @author Matthew Khouzam | |
8e15b929 MK |
20 | */ |
21 | public enum SeekCommand implements IBaseCommand { | |
22 | ||
23 | /** Receive the trace packets from the beginning. */ | |
24 | VIEWER_SEEK_BEGINNING(1), | |
25 | /** Receive the trace packets from now. */ | |
26 | VIEWER_SEEK_LAST(2); | |
27 | ||
28 | private final int fCode; | |
29 | ||
30 | /** | |
8adfbb73 | 31 | * Command size (fCode) |
8e15b929 MK |
32 | */ |
33 | public static final int SIZE = Integer.SIZE / 8; | |
34 | ||
35 | private SeekCommand(int c) { | |
36 | fCode = c; | |
37 | } | |
38 | ||
39 | @Override | |
40 | public int getCommand() { | |
41 | return fCode; | |
42 | } | |
43 | } |