|BABELTRACE2-QUERY-(7)||Babeltrace 2 manual||BABELTRACE2-QUERY-(7)|
Said input can be a simple string, an existing file path, or an existing directory path. Components which expect some form of URI can handle a string input, while components which expect an existing file or directory can handle a file/directory path input.
When the source component class’s query method replies that its component can handle a given input, it can also specify the name of a group in which to put that input. All the inputs of a given group, for a given component class, should be passed when instantiating the component class as its inputs initialization parameter (array of strings).
The babeltrace2-convert(1) command queries this object from specific source component classes to find the most appropriate for a given non-option argument.
Depending on the type parameter, this is a simple string, a file path, or a directory path.
type=(string | file | directory) [string]
It is expected that the query method does not recurse into this directory: the result object indicates whether or not the component class supports this specific directory (input).
A weight of 0 means the input is unsupported while a weight of 1 means it’s fully supported. Any value in between shows how confident the component class is about the support of the given input.
When it’s a map, the expected entries are:
group=GROUP-NAME [optional string]
If this entry is missing, then the given input gets its own, unique group.
The semantics are the same as when the result object is a simple real value.
input: net://relayd177/host/node23/active type: string
Example 2. File path input.
input: /home/user/traces/2019-08-26/quad.tr type: file
Example 4. Weight and specific group.
group: 63a4b7e5-37f0-4254-a048-a0cff9e5b761 weight: 0.75
Example 5. Weight within a map (unique group).
The current project maintainer is Jérémie Galarneau <mailto:firstname.lastname@example.org>.
Babeltrace is distributed under the MIT license (see https://opensource.org/licenses/MIT).
|14 September 2019||Babeltrace 2.0.4|