Commit | Line | Data |
---|---|---|
83051fc3 BH |
1 | /********************************************************************** |
2 | * Copyright (c) 2013 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 | * Simon Delisle - Initial API and implementation | |
11 | * Bernd Hufmann - Updated to enum definition | |
12 | **********************************************************************/ | |
13 | ||
8e8c0226 | 14 | package org.eclipse.linuxtools.internal.lttng2.control.core.model.impl; |
83051fc3 BH |
15 | |
16 | /** | |
17 | * Constants for buffer type. | |
18 | * | |
19 | * @author Simon Delisle | |
20 | * @author Bernd Hufmann | |
21 | */ | |
22 | ||
23 | public enum BufferType { | |
24 | // ------------------------------------------------------------------------ | |
25 | // Enum definition | |
26 | // ------------------------------------------------------------------------ | |
27 | /** | |
28 | * Buffer type : per UID | |
29 | */ | |
30 | BUFFER_PER_UID("per UID"), //$NON-NLS-1$ | |
31 | /** | |
32 | * Buffer type : per PID | |
33 | */ | |
34 | BUFFER_PER_PID("per PID"), //$NON-NLS-1$ | |
35 | /** | |
36 | * Buffer type : shared | |
37 | */ | |
38 | BUFFER_SHARED("shared"), //$NON-NLS-1$ | |
39 | /** | |
40 | * If the LTTng version doesn't show the buffer type | |
41 | */ | |
42 | BUFFER_TYPE_UNKNOWN("information not unavailable"); //$NON-NLS-1$ | |
43 | ||
44 | // ------------------------------------------------------------------------ | |
45 | // Attributes | |
46 | // ------------------------------------------------------------------------ | |
47 | /** | |
48 | * Name of enum | |
49 | */ | |
50 | private final String fInName; | |
51 | ||
52 | // ------------------------------------------------------------------------ | |
53 | // Constuctors | |
54 | // ------------------------------------------------------------------------ | |
55 | ||
56 | /** | |
57 | * Private constructor | |
58 | * @param name the name of state | |
59 | */ | |
60 | private BufferType(String name) { | |
61 | fInName = name; | |
62 | } | |
63 | ||
64 | // ------------------------------------------------------------------------ | |
65 | // Accessors | |
66 | // ------------------------------------------------------------------------ | |
67 | /** | |
68 | * @return state name | |
69 | */ | |
70 | public String getInName() { | |
71 | return fInName; | |
72 | } | |
73 | } |