Forum Discussion
adurstewitz_188
Nimbostratus
Feb 14, 2011Java GTM Pool Member CommonIPPortDefinition
I'm trying to up-fit the sample PoolMemberControl code to get the properties of a GTM pool member.
LTM Code:
iControl.CommonIPPortDefinition [][] memberDefAofA =
m_interfaces.getLocalLBPool().get_member(pool_list);
Attempted GTM Code:
iControl.CommonIPPortDefinition [][] memberDefAofA = m_interfaces.getGlobalLBPool().get_member(pool_list);
However, do this gives me a type incompatibility. Does anyone know the right way/method to populate the CommonIPPortDefinition array with a GTM Pool Member?
Thanks,
Andrew J Durstewitz
- Hi Andrew, the function prototype for the GlobalLB.Pool.get_member() method is different from the LocalLB.Pool.get_member() method. The API reference is here:
struct GlobalLB.Pool.PoolMemberDefinition { IPPortDefinition member; long order; }; GlobalLB.Pool.PoolMemberDefinition [] [] GlobalLB.Pool.get_member( in String [] pool_names );
iControl.GlobalLBPoolPoolMemberDefinition [][] memberDefAofA = m_interfaces.getGlobalLBPool().get_member(pool_list);
- adurstewitz_188
Nimbostratus
Hi Joe - - Here's how you iterate over the returned memberDefAofA 2-D array.
// Iterate over the first dimension (each pool pass in as input). for(int i=0; i Hope this helps... -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