Forum Discussion
Jerome_O_Neil_1
Nimbostratus
Jan 05, 2006LBPool.create Parameters
I'm having problems understanding the call syntax for LBPool.create.
The javadoc says:
stub.create(String [], LBMethod [], IPPortDefinition [][]);
Why the two dimensional...
Jan 05, 2006
This allows you to create more than one pool for each request.
The easiest way to think of this is as if we defined the API for a single pool
LocalLB::Pool::create(string, LBMethod, IPPortDefinition[]);
That makes sense as you will more than likely want to add multiple members (IP, port combination) to the pool you create so you'll have to be able to pass in an array of them for your pool.
Now, just expand each entry into an array to allow for multiple pools. Index 0 on each parameter is for the first pool, index 1 for the second, ....
If you are only trying to create a single pool, then just use an array of size one for the first dimension in all the arrays.
I know this is somewhat harder to create an array for each parameter but we made the decision in 9.x to convert all our methods to "bulk" to avoid users having to make many methods calls just to do the same operation on multiple "like" objects.
Make sense???
-Joe
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects