0b650741a60698f23b79f7563d2ad8bf837655e0
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.control.core / src / org / eclipse / linuxtools / internal / lttng2 / control / core / relayd / lttngviewerCommands / ConnectionType.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 * Get viewer connection type
18 *
19 * @author Matthew Khouzam
20 * @since 3.0
21 */
22 public enum ConnectionType implements IBaseCommand {
23
24 /** Command sent */
25 VIEWER_CLIENT_COMMAND(1),
26 /** Notification sent */
27 VIEWER_CLIENT_NOTIFICATION(2);
28
29 private final int fCode;
30
31 private ConnectionType(int c) {
32 fCode = c;
33 }
34
35 @Override
36 public int getCommand() {
37 return fCode;
38 }
39
40 }
This page took 0.031399 seconds and 4 git commands to generate.