acs::Cluster method preferred_location (protected)

 <instance of acs::Cluster[i]> preferred_location locations

Defined in packages/acs-tcl/tcl/cluster-procs.tcl

Return the preferred location.

Parameters:
locations (required)

Testcases:
No testcase defined.
Source code:
set preferred_location_regexp [parameter::get  -package_id $::acs::kernel_id  -parameter ClusterPreferredLocationRegexp  -default https:// ]

set preferred_location ""
foreach location $locations {
    if {[regexp $preferred_location_regexp $location]} {
        set preferred_location $location
        break
    }
}
if {$preferred_location eq ""} {
    set preferred_location [lindex $locations 0]
}

return [:map_inaddr_any $preferred_location]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: