# 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 配置目录的路径。 此目录中包含 DNS 要成功地进行操作所需的 in.named 文件。 在启动 DNS 之前,数据服务样例的 Start 和 Validate 方法将使用此特性来检验配置目录和 in.named 文件是否可以存取。
配置数据服务之后,Validate 方法将检验新目录是否可以存取。
数据服务样例的 PROBE 方法不是 Sun Cluster 回叫方法,而是用户定义的方法, 因此,Sun Cluster 未为该方法提供 Probe_timeout 特性。 开发者已在 RTR 文件中定义了一个扩展特性,以便群集管理员配置 Probe_timeout 值。