tmf: lttngControl: LogLevelType: mi support + utility function
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.control.core / src / org / eclipse / linuxtools / internal / lttng2 / control / core / model / TraceEnablement.java
CommitLineData
eb1bab5b
BH
1/**********************************************************************
2 * Copyright (c) 2012 Ericsson
b0318660 3 *
eb1bab5b
BH
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
b0318660
AM
8 *
9 * Contributors:
eb1bab5b
BH
10 * Bernd Hufmann - Initial API and implementation
11 **********************************************************************/
8e8c0226 12package org.eclipse.linuxtools.internal.lttng2.control.core.model;
eb1bab5b
BH
13
14/**
eb1bab5b
BH
15 * <p>
16 * Enumeration for enabled/disabled states.
17 * </p>
b0318660 18 *
dbd4432d 19 * @author Bernd Hufmann
eb1bab5b
BH
20 */
21public enum TraceEnablement {
22
23 // ------------------------------------------------------------------------
24 // Enum definition
25 // ------------------------------------------------------------------------
b0318660 26 /** Tracing is disabled */
eb1bab5b 27 DISABLED("disabled"), //$NON-NLS-1$
b0318660 28 /** Tracing is enabled */
eb1bab5b
BH
29 ENABLED("enabled"); //$NON-NLS-1$
30
31 // ------------------------------------------------------------------------
32 // Attributes
33 // ------------------------------------------------------------------------
34 /**
b0318660 35 * Name of enum
eb1bab5b
BH
36 */
37 private final String fInName;
38
39 // ------------------------------------------------------------------------
40 // Constuctors
41 // ------------------------------------------------------------------------
b0318660 42
eb1bab5b
BH
43 /**
44 * Private constructor
45 * @param name the name of state
46 */
47 private TraceEnablement(String name) {
48 fInName = name;
49 }
50
51 // ------------------------------------------------------------------------
52 // Accessors
53 // ------------------------------------------------------------------------
54 /**
55 * @return state name
56 */
57 public String getInName() {
58 return fInName;
59 }
b0318660 60}
This page took 0.047435 seconds and 5 git commands to generate.