blob: c356c14d58772a170eea538a2405b9bd22204d02 [file] [log] [blame]
/*******************************************************************************
* 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 {
/**
* 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);
}
}