Wildcards

<< Click to Display Table of Contents >>

Navigation:  ASCII / XML External Control >

Wildcards

Matching a name between slashes

Command

<command cmd="get" path="[JugglerName]/*/health"/>

Reply

<replies success="true" path="[JugglerName]/*/health" numberofreplies="1" commandDuration="123us">

<health value="~RxLane:1-LaneDown~RxLane:2-LaneDown~RxLane:3-LaneDown~RxLane:4-LaneDown~" fullpath="GroupSet/Group/[JugglerName]/Bus:1/health"/>

</replies>

Absolute versus relative paths

Relative : <command cmd="get" path="[JugglerName]/DpRx:2/VideoTiming"/>

Absolute: <command cmd="get" path="/GroupSet/Group/[JugglerName]/DpRx:2/VideoTiming"/>

It is possible to use a relative path, offering a shortcut for an absolute path. Compere will perform an exhaustive search so there is a performance overhead depending on the extent of the Juggler system. Additionally, multiple results may be returned: searching for "name" will return every absolute path that matches.

The full path is returned in replies, and in commands, the leading / (/GroupSet) is preferred.

Command

<command cmd="get" path="health"/>

Reply

<replies success="true" path="health" numberofreplies="3" commandDuration="123us">

<health value="~RxLane:1-LaneDown~RxLane:2-LaneDown~RxLane:3-LaneDown~RxLane:4-LaneDown~" fullpath="GroupSet/Group/JugglerName1/Bus:1/health"/>

<health value="~RxLane:1-LaneDown~RxLane:2-LaneDown~RxLane:3-LaneDown~RxLane:4-LaneDown~" fullpath="GroupSet/Group/JugglerName2/Bus:1/health"/>

<health value="~RxLane:1-LaneDown~RxLane:2-LaneDown~RxLane:3-LaneDown~RxLane:4-LaneDown~" fullpath="GroupSet/Group/JugglerName3/Bus:1/health"/>

</replies>