| 1 | /********************************************************************** |
| 2 | * Copyright (c) 2012 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 | * Bernd Hufmann - Initial API and implementation |
| 11 | *********************************************************************/ |
| 12 | package org.eclipse.linuxtools.internal.lttng2.core.control.model; |
| 13 | |
| 14 | /** |
| 15 | * <p> |
| 16 | * Session state enumeration. |
| 17 | * </p> |
| 18 | * |
| 19 | * @author Bernd Hufmann |
| 20 | */ |
| 21 | public enum TraceSessionState { |
| 22 | |
| 23 | // ------------------------------------------------------------------------ |
| 24 | // Enum definition |
| 25 | // ------------------------------------------------------------------------ |
| 26 | /** Trace session inactive */ |
| 27 | INACTIVE("inactive"), //$NON-NLS-1$ |
| 28 | /** Trace session active */ |
| 29 | ACTIVE("active"); //$NON-NLS-1$ |
| 30 | |
| 31 | // ------------------------------------------------------------------------ |
| 32 | // Attributes |
| 33 | // ------------------------------------------------------------------------ |
| 34 | /** |
| 35 | * Name of enum. |
| 36 | */ |
| 37 | private final String fInName; |
| 38 | |
| 39 | // ------------------------------------------------------------------------ |
| 40 | // Constuctors |
| 41 | // ------------------------------------------------------------------------ |
| 42 | |
| 43 | /** |
| 44 | * Private constructor |
| 45 | * @param name the name of state |
| 46 | */ |
| 47 | private TraceSessionState(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 | } |
| 60 | } |