lttng: Add Lttng relayd connector
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.control.core / src / org / eclipse / linuxtools / internal / lttng2 / control / core / relayd / lttngviewerCommands / SeekCommand.java
CommitLineData
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
14package org.eclipse.linuxtools.internal.lttng2.control.core.relayd.lttngviewerCommands;
15
16/**
17 * Seek command
18 *
19 * @author Matthew Khouzam
20 * @since 3.0
21 */
22public enum SeekCommand implements IBaseCommand {
23
24 /** Receive the trace packets from the beginning. */
25 VIEWER_SEEK_BEGINNING(1),
26 /** Receive the trace packets from now. */
27 VIEWER_SEEK_LAST(2);
28
29 private final int fCode;
30
31 /**
32 * Size of the enum
33 */
34 public static final int SIZE = Integer.SIZE / 8;
35
36 private SeekCommand(int c) {
37 fCode = c;
38 }
39
40 @Override
41 public int getCommand() {
42 return fCode;
43 }
44}
This page took 0.026131 seconds and 5 git commands to generate.