Handler - switch

 

Description

This juggler sends its output to only one of the agents designated as output connections. It dynamically selects the one enabled agent from a prioritized list.

Configuration Variables

selectedSinks
This attribute is the prioritized list of output agent id's.

Here is some sample PDIF:
(selectedSinks "putDIM15" "putMail 27" "put Local Publisher 9" "put BackWeb Local6")

Product

The product output is exactly the same as the input (or the merged inputs). It cannot send product to outputs in its listOfSinks configuration variable if they are not connected to it already.

How it works

The Primary juggler extends the passThru juggler.

At each runtime it scans its sinkList in the order specified by the selectedSinks attribute to select the first output that is enabled. It "fakes" out the executive by passing a custom created sinkList that has only one element in it. The sinkList that the executive manages is never changed in any way.

 
 

Revised: 26 Mar 1998