pa-init-parent-array
Applicable in Init-class directives.
The pa-init-parent-array function initializes
a parent array member and specifies information about the PAT file
for the parent array of which it is a member.
Note – The load modules directive should come
before the pa-init-proxy-array function in the obj.conf file.
Syntax
Init fn=pa-init-parent-array set-status-fn=pa-set-member-status
poll="yes|no"
file="absolute filename"
pollhost="host name"
pollport="port number"
pollhdrs="absolute filename"
pollurl="url"
status="on|off"
Parameters
The following table describes the parameter for the pa-init-parent-array function.
Table 5–16
pa-init-parent-array Parameters
Parameter
|
Description
|
set-status-fn
|
Specifies the function that sets the status for the member.
|
poll
|
Indicates whether the array member should poll for a PAT file.
-
yes means that the member should
poll for the PAT file. A member should only poll for a PAT file if
it is not the master proxy. The master proxy has a local copy of the
PAT file, and therefore does not need to poll for it.
-
no means that the member should
not poll for the PAT file. A member should not poll for the PAT file
if it is the master proxy.
|
file
|
The full path name of the PAT file.
|
pollhost
|
The host name of the proxy to be polled for the PAT file. Specify
this parameter only if the poll parameter is set
to yes, meaning that the member is not the master
proxy.
|
pollport
|
The port number on the poll host that should be contacted when
polling for the PAT file. Specify this parameter only if the poll parameter is set to yes, meaning that
the member is not the master proxy.
|
pollhdrs
|
The full path name of the file that contains any special headers
that must be sent with the HTTP request for the PAT file. This parameter
is optional and should be specified only if the poll parameter
is set to yes, meaning that the member is not the
master proxy.
|
pollurl
|
The URL of the PAT file to be polled for. Specify this parameter
only if the poll parameter is set to yes,
meaning that the member is not the master proxy.
|
status
|
Specifies whether the parent array member is on or off.
|
Example
The following example indicates that the member should not poll
for the PAT file. This example would apply to a master proxy.
Init fn=pa-init-parent-array poll="no"
file="c:/netscape/server/bin/proxy/pa1.pat"
The following example specifies that the member should poll
for a PAT file. This member is not the master proxy.
Init fn=pa-init-parent-array poll="yes"
file="c:/netscape/server/bin/proxy/pa2.pat"
pollhost="proxy1" pollport="8080"
pollhdrs="c:/netscape/server/proxy-name/parray/pa2.hdr"
status="on" set-status-fn=set-member-status pollurl="/pat"