blob: 4144289d1578102dc5f42db7687a9208287ebaf0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/*******************************************************************************
* Copyright (c) 2019 École Polytechnique de Montréal
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
* accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.eclipse.tracecompass.analysis.os.linux.core.model;
import java.util.Objects;
/**
* Get externalized strings to identify various operating system concepts. These
* strings can be used in views and analyses to have a common term to identify
* often used concepts, or as keys for searches and filters by the user.
*
* These strings are meant to be used and viewed by the user. Internally, they
* may be translated into fixed non-externalized strings for actual
* manipulation. Example: views will display TID in english, WXT in klingon,
* searches for a thread ID would be written TID == 123 in english, WXT == 123
* in klingon or eventually thread.tid in non-externalized (but maybe less
* discoverable) concepts.
*
* @author Geneviève Bastien
* @since 4.0
*/
public final class OsStrings {
private OsStrings() {
// Do nothing
}
/**
* Get the string for the thread ID
*
* @return The externalized label
*/
public static String tid() {
return Objects.requireNonNull(org.eclipse.tracecompass.analysis.os.linux.core.event.aspect.Messages.AspectName_Tid);
}
/**
* Get the string for the process ID
*
* @return The externalized label
*/
public static String pid() {
return Objects.requireNonNull(org.eclipse.tracecompass.analysis.os.linux.core.event.aspect.Messages.AspectName_Pid);
}
/**
* Get the string for the cpu string
*
* @return The externalized label
*/
public static String cpu() {
return Objects.requireNonNull(org.eclipse.tracecompass.tmf.core.event.aspect.Messages.AspectName_CPU);
}
}
|