Download Netra Proxy Cache Server User`s Manual

Transcript
1. If subexpression i in a regular expression is not contained within another
subexpression, and it participated in the match several times, then the byte offsets
in pmatch[i] will delimit the last such match.
2. If subexpression i is not contained within another subexpression, and it did not
participate in an otherwise successful match, the byte offsets in pmatch[i] will
be -1. A subexpression does not participate in the match when:
4 * or \{ \} appears immediately after the subexpression in a basic regular
expression, or *, ?, or {} appears immediately after the subexpression in an
extended regular expression, and the subexpression did not match (matched zero
times)
or
4 | is used in an extended regular expression to select this subexpression or another,
and the other subexpression matched.
1. If subexpression i is contained within another subexpression j, and i is not
contained within any other subexpression that is contained within j, and a match
of subexpression j is reported in pmatch[j], then the match or non-match of
subexpression i reported in pmatch[i] will be as described in 1. and 2. above,
but within the substring reported in pmatch[j] rather than the whole string.
2. If subexpression i is contained in subexpression j, and the byte offsets in
pmatch[j] are -1, then the pointers in pmatch[i] also will be -1.
3. If subexpression i matched a zero-length string, then both byte offsets in
pmatch[i] will be the byte offset of the character or NULL terminator
immediately following the zero-length string.
Test and Load Objects
Test and load objects are pieces of software that run in the context of the Netra Proxy
Cache array daemon, communicating the health of a service/host instantiation to the
monitor object (cache_monitor or dns_monitor) in that daemon. The monitor
object is responsible for monitoring a service on a given array host.
The format of the values returned by test and load objects are:
4 From a test object, a monitor object expects a boolean value, indicating, for
example, whether an interface is up or whether a service is available.
4 From a load object, a monitor object expects two integers, one for current load, the
other for current capacity.
The return values for test and load objects can be applied to a wide variety of
resources. For example, a memory-intensive service might call for a load object to
measure the availability of swap space.
116
Netra Proxy Cache Server User’s Manual ♦ Revision A, January 1998