# Extension Properties # The cluster administrator must set the value of this property to point to the # directory that contains the configuration files used by the application. # For this application, DNS, specify the path of the DNS configuration file on # PXFS (typically named.conf). { PROPERTY = Confdir; EXTENSION; STRING; TUNABLE = AT_CREATION; DESCRIPTION = “The Configuration Directory Path”; } # Time out value in seconds before declaring the probe as failed. { PROPERTY = Probe_timeout; EXTENSION; INT; DEFAULT = 120; TUNABLE = ANYTIME; DESCRIPTION = “Time out value for the probe (seconds)”; }
RTR 檔案範例定義 Confdir 與 Probe_timeout 兩個延伸特性。Confdir 指定 DNS 配置目錄的路徑。此目錄包含 in.named 檔案,DNS 需要此檔案才能成功執行。資料服務範例的 Start 方法與 Validate 方法都將使用此特性,以驗證在啟動 DNS 之前配置目錄與 in.named 檔案是否均可存取。
配置資料服務時,Validate 方法將驗證新目錄是否可存取。
資料服務範例的 PROBE 方法不是 Sun Cluster 回呼方法,而是使用者定義的方法。因此,Sun Cluster 不為其提供 Probe_timeout 特性。開發者已在 RTR 檔案中定義了延伸特性,以允許叢集管理員配置 Probe_timeout 值。