Commit | Line | Data |
---|---|---|
bf562d57 GM |
1 | /********************************************************************** |
2 | * Copyright (c) 2014 École Polytechnique de Montréal | |
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 | * Guilliano Molaire - Initial API and implementation | |
11 | *********************************************************************/ | |
9bc60be7 | 12 | package org.eclipse.tracecompass.lttng2.control.core.session; |
bf562d57 GM |
13 | |
14 | /** | |
15 | * This file defines most markers from a session configuration file used to | |
16 | * configure a trace session. They can be found in the session configuration | |
17 | * schema "session.xsd" in src/common/config/ folder of LTTng-tools. | |
18 | * | |
19 | * @author Guilliano Molaire | |
bf562d57 GM |
20 | */ |
21 | @SuppressWarnings({ "javadoc", "nls" }) | |
22 | public interface SessionConfigStrings { | |
23 | ||
24 | /* Session configuration file extension */ | |
304712fe | 25 | String SESSION_CONFIG_FILE_EXTENSION = "lttng"; |
bf562d57 GM |
26 | |
27 | /* Elements of the session configuration file */ | |
304712fe MK |
28 | String CONFIG_ELEMENT_SESSIONS = "sessions"; |
29 | String CONFIG_ELEMENT_SESSION = "session"; | |
30 | String CONFIG_ELEMENT_DOMAINS = "domains"; | |
31 | String CONFIG_ELEMENT_DOMAIN = "domain"; | |
32 | String CONFIG_ELEMENT_CHANNELS = "channels"; | |
33 | String CONFIG_ELEMENT_CHANNEL = "channel"; | |
34 | String CONFIG_ELEMENT_EVENTS = "events"; | |
35 | String CONFIG_ELEMENT_EVENT = "event"; | |
36 | String CONFIG_ELEMENT_OUTPUT = "output"; | |
37 | String CONFIG_ELEMENT_ATTRIBUTES = "attributes"; | |
38 | String CONFIG_ELEMENT_NET_OUTPUT = "net_output"; | |
39 | String CONFIG_ELEMENT_MAX_SIZE = "max_size"; | |
40 | String CONFIG_ELEMENT_SNAPSHOT_OUTPUTS = "snapshot_outputs"; | |
41 | String CONFIG_ELEMENT_CONSUMER_OUTPUT = "consumer_output"; | |
42 | String CONFIG_ELEMENT_DESTINATION = "destination"; | |
43 | String CONFIG_ELEMENT_CONTROL_URI = "control_uri"; | |
44 | String CONFIG_ELEMENT_DATA_URI = "data_uri"; | |
45 | String CONFIG_ELEMENT_SNAPSHOT_MODE = "snapshot_mode"; | |
46 | String CONFIG_ELEMENT_PATH = "path"; | |
47 | String CONFIG_ELEMENT_NAME = "name"; | |
48 | String CONFIG_ELEMENT_ENABLED = "enabled"; | |
49 | String CONFIG_ELEMENT_TYPE = "type"; | |
50 | String CONFIG_ELEMENT_STARTED = "started"; | |
51 | String CONFIG_ELEMENT_DOMAIN_BUFFER_TYPE = "buffer_type"; | |
52 | String CONFIG_ELEMENT_OVERWRITE_MODE = "overwrite_mode"; | |
53 | String CONFIG_ELEMENT_SUBBUFFER_SIZE = "subbuffer_size"; | |
54 | String CONFIG_ELEMENT_SUBBUFFER_COUNT = "subbuffer_count"; | |
55 | String CONFIG_ELEMENT_SWITCH_TIMER_INTERVAL = "switch_timer_interval"; | |
56 | String CONFIG_ELEMENT_READ_TIMER_INTERVAL = "read_timer_interval"; | |
57 | String CONFIG_ELEMENT_OUTPUT_TYPE = "output_type"; | |
58 | String CONFIG_ELEMENT_TRACEFILE_SIZE = "tracefile_size"; | |
59 | String CONFIG_ELEMENT_TRACEFILE_COUNT = "tracefile_count"; | |
60 | String CONFIG_ELEMENT_LIVE_TIMER_INTERVAL = "live_timer_interval"; | |
61 | String CONFIG_ELEMENT_LOGLEVEL_TYPE = "loglevel_type"; | |
62 | String CONFIG_ELEMENT_LOGLEVEL = "loglevel"; | |
bf562d57 GM |
63 | |
64 | /* Common element values */ | |
304712fe MK |
65 | String CONFIG_STRING_TRUE = "true"; |
66 | String CONFIG_STRING_FALSE = "false"; | |
67 | String CONFIG_STRING_ZERO = "0"; | |
bf562d57 | 68 | |
304712fe MK |
69 | String CONFIG_DOMAIN_TYPE_KERNEL = "KERNEL"; |
70 | String CONFIG_DOMAIN_TYPE_UST = "UST"; | |
bf562d57 | 71 | |
304712fe MK |
72 | String CONFIG_BUFFER_TYPE_PER_UID = "PER_UID"; |
73 | String CONFIG_BUFFER_TYPE_PER_PID = "PER_PID"; | |
74 | String CONFIG_BUFFER_TYPE_GLOBAL = "GLOBAL"; | |
bf562d57 | 75 | |
304712fe MK |
76 | String CONFIG_OVERWRITE_MODE_DISCARD = "DISCARD"; |
77 | String CONFIG_OVERWRITE_MODE_OVERWRITE = "OVERWRITE"; | |
bf562d57 | 78 | |
304712fe MK |
79 | String CONFIG_OUTPUT_TYPE_SPLICE = "SPLICE"; |
80 | String CONFIG_OUTPUT_TYPE_MMAP = "MMAP"; | |
bf562d57 | 81 | } |