
Uttu::Resource::pool - <pool/> handler for resource definitions

In resource definition file:
<resources id="gst">
<pool id="ldap"
policy="RoundRobin"
maxtry="4"
sleeponfail="1, 2, 3, 4"
weight="1"
suspendtimeout="5"
>
<!-- resources within pool -->
</pool>
</resources>
or
<resources id="gst"> <pool xref="gst.ldap"/> </resources>
In parser:
my $xp = XML::XPath(filename => 'resources.xml');
my $prefix = $xp -> findvalue('/resources/@id');
my $pools = $xp -> find('/resources/pool');
foreach my $node ($pools -> get_nodelist) {
my $loadbalancer =
Uttu::Resource::pool -> parse($prefix, $xp, $node);
# do something with ResourcePool::LoadBalancer object
}


This required attribute identifies the resource pool.
The maximum number of retries.
This refers to a resource pool defined elsewhere. The reference string is the fully qualified id of the pool, beginning with the id attribute of the <resources/> element.
Only suspendtimeout and weight are used in conjunction with xref.

Please report bugs to either the request tracker for CPAN (http://rt.cpan.org/|http://rt.cpan.org/) or on the SourceForge project (http://sourceforge.net/projects/gestinanna/|http://sourceforge.net/projects/gestinanna/).

James Smith, <jsmith@cpan.org>
