-
Notifications
You must be signed in to change notification settings - Fork 12
/
JsonMetadataStrings.java
159 lines (130 loc) · 5.14 KB
/
JsonMetadataStrings.java
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/*******************************************************************************
* Copyright (c) 2011, 2023 Ericsson, Ecole Polytechnique de Montreal and others
*
* All rights reserved. This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0 which
* accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors: Sehr Moosabhoy - Implementation
*******************************************************************************/
package org.eclipse.tracecompass.internal.ctf.core.utils;
/**
* Various strings for CTF2 implementation.
*
* @author Sehr Moosabhoy
*/
public final class JsonMetadataStrings {
private JsonMetadataStrings() {
// Do nothing
}
// ------------------------------------------------------------------------
// Constants
// ------------------------------------------------------------------------
/**
* Type string for a CTF2 preamble fragment
*/
public static final String FRAGMENT_PREAMBLE = "preamble"; //$NON-NLS-1$
/**
* Type string for a CTF2 trace class fragment
*/
public static final String FRAGMENT_TRACE = "trace-class"; //$NON-NLS-1$
/**
* Type string for a CTF2 field class alias fragment
*/
public static final String FRAGMENT_FIELD_ALIAS = "field-class-alias"; //$NON-NLS-1$
/**
* Type string for a CTF2 clock class fragment
*/
public static final String FRAGMENT_CLOCK = "clock-class"; //$NON-NLS-1$
/**
* Type string for a CTF2 data stream class fragment
*/
public static final String FRAGMENT_DATA_STREAM = "data-stream-class"; //$NON-NLS-1$
/**
* Type string for a CTF2 event record class fragment
*/
public static final String FRAGMENT_EVENT_RECORD = "event-record-class"; //$NON-NLS-1$
/**
* Field string for the type of a CTF2 node
*/
public static final String TYPE = "type"; //$NON-NLS-1$
/**
* String for the roles field of a field class
*/
public static final String ROLES = "roles"; //$NON-NLS-1$
/**
* String for the packet header magic role of a field class
*/
public static final String MAGIC_NUMBER = "packet-magic-number"; //$NON-NLS-1$
/**
* String for the packet header uuid role of a field class
*/
public static final String UUID = "metadata-stream-uuid"; //$NON-NLS-1$
/**
* String for the packet header data stream class id role of a field class
*/
public static final String DATA_STREAM_ID = "data-stream-class-id"; //$NON-NLS-1$
/**
* String for the packet content length role of a data stream packet context
*/
public static final String PACKET_CONTENT_LENGTH = "packet-content-length"; //$NON-NLS-1$
/**
* String for the packet total length role of a data stream packet context
*/
public static final String PACKET_TOTAL_LENGTH = "packet-total-length"; //$NON-NLS-1$
/**
* String for the default clock timestamp role of a data stream packet
* context or data stream event record header
*/
public static final String DEFAULT_CLOCK_TIMESTAMP = "default-clock-timestamp"; //$NON-NLS-1$
/**
* String for the discarded event record counter snapshot role of a data
* stream packet context
*/
public static final String CURRENT_DISCARDED_EVENT_COUNT = "discarded-event-record-counter-snapshot"; //$NON-NLS-1$
/**
* String for the packet end default clock timestamp role of a data stream
* packet context
*/
public static final String PACKET_END_TIMESTAMP = "packet-end-default-clock-timestamp"; //$NON-NLS-1$
/**
* String for the event record class id role of a data stream event record
* header
*/
public static final String EVENT_RECORD_CLASS_ID = "event-record-class-id"; //$NON-NLS-1$
/**
* Type string for a field class that points to an alias
*/
public static final String ALIAS = "alias"; //$NON-NLS-1$
/**
* Type string for an unsigned integer field class
*/
public static final String FIXED_UNSIGNED_INTEGER_FIELD = "fixed-length-unsigned-integer"; //$NON-NLS-1$
/**
* Type string for a signed integer field class
*/
public static final String FIXED_SIGNED_INTEGER_FIELD = "fixed-length-signed-integer"; //$NON-NLS-1$
/**
* Type string for a static length blob field class
*/
public static final String STATIC_LENGTH_BLOB = "static-length-blob"; //$NON-NLS-1$
/**
* Type string for a null terminated string field class
*/
public static final String NULL_TERMINATED_STRING = "null-terminated-string"; //$NON-NLS-1$
/**
* Type string for a fixed length unsigned enumeration field class
*/
public static final String FIXED_UNSIGNED_ENUMERATION = "fixed-length-unsigned-enumeration"; //$NON-NLS-1$
/**
* Type string for a variant field class
*/
public static final String VARIANT = "variant"; //$NON-NLS-1$
/**
* Type string for a structure field class
*/
public static final String STRUCTURE = "structure"; //$NON-NLS-1$
}