Forum Discussion
StainlessSteelR
Nimbostratus
Feb 04, 2004LBMethod
Hi there,
I'm trying to create a pool using the SOAP call 'create' in Java. The method signature from the iControl docs mentions the parameter lb_method which seems to want the LBMetho...
Feb 04, 2004
Sorry I didn't catch this sooner, I haven't been in the java/SOAP code for quite a while...
For v4.5 and below of the products, the LBMethod is implemented as an Integer (as are all enums). In the next version of our products we are fully supporting enum types.
The correct use is the example from your first post where you declare the LBMethod as a Integer. Here's a code snippet to go by
...
Integer LB_METHOD_ROUND_ROBIN = 0;
Integer LB_METHOD_RATIO = 1;
Integer LB_METHOD_FASTEST = 2;
Integer LB_METHOD_RATIO_MEMBER = 3;
Integer LB_METHOD_LEAST_CONN_MEMBER = 4;
Integer LB_METHOD_OBSERVED_MEMBER = 5;
Integer LB_METHOD_PREDICTIVE_MEMBER = 6;
Integer LB_METHOD_OBSERVED_NODE_ADDR = 7;
Integer LB_METHOD_PREDICTIVE_NODE_ADDR = 8;
Integer LB_METHOD_DYNAMIC_RATIO = 9;
...
params.addElement(new Parameter("lb_method", Integer.class, LB_METHOD_ROUND_ROBIN, null));
...
Let us know if there is anything else we can help out with.
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
