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