choiceDataCenter
This type of datacenter allows for a choice to be made between several data centers based on characteristics of an event and channel. It goes through each of the choices in order, and if the subsetter inside of a choice matches, it uses it. If no choice matches, the data center in the otherwise is used. The example gets data from the POND from half a year ago up until 8 weeks ago. For anything more recent, it gets data from the BUD. Other uses for this are to switch datacenters based on the preferred datacenter for a station, or to use the POND to retrieve data if an event meets the POND criteria but use the Archive otherwise.
Example
<choiceDataCenter> <choice> <embeddedEventStation> <embeddedOriginSubsetter> <originTimeRange> <startTime> <earlier> <timeInterval> <value>26</value> <unit>WEEK</unit> </timeInterval> </earlier> </startTime> <endTime> <earlier> <timeInterval> <value>8</value> <unit>WEEK</unit> </timeInterval> </earlier> </endTime> </originTimeRange> </embeddedOriginSubsetter> </embeddedEventStation> <fixedDataCenter> <name>IRIS_PondDataCenter</name> <dns>edu/iris/dmc</dns> </fixedDataCenter> </choice> <otherwise> <fixedDataCenter> <name>IRIS_BudDataCenter</name> <dns>edu/iris/dmc</dns> </fixedDataCenter> </otherwise> </choiceDataCenter>
This consists of
Places this can be found
In dataCenter there is a choice between all of the following