Forum Discussion

Chun_Kit_Cheng_'s avatar
Chun_Kit_Cheng_
Icon for Nimbostratus rankNimbostratus
Nov 06, 2006

Setting a Virtual Server type to "Performance (Layer 4)" with Java

Is there a (simple) way to set a virtual server to type "Performance (Layer 4)" with iControl/Java?

 

 

I've tried doing something like this...

 


  LocalLBVirtualServerBindingStub vss = ...; /* initialization etc */
  vss.set_type(new String[] { "myFastL4VS" }, new LocalLBVirtualServerVirtualServerType[] { LocalLBVirtualServerVirtualServerType.RESOURCE_TYPE_FAST_L4 });

 

without success - after executing the above code the GUI still shows it as a "Standard" type virtual server. If this has to be set via adding profile, is there an enumeration somewhere to be referred as the fast layer 4 profile?

 

 

By the way, the call

 


  LocalLBVirtualServerVirtualServerType types[] = vss.get_type(new String[] { "fastL4VSFromGUI" });
  System.out.println(types[0]);

 

returns "RESOURCE_TYPE_POOL" as well, even I manually set it to be "Performance (Layer 4)" in the GUI.
  • I faced the same problem, with difference that I was needed to set it during server creation and in C. I fixed it with setting profile name:

     

    LocalLBVirtualServerVirtualServerProfile vsProfile = new LocalLBVirtualServerVirtualServerProfile(); vsProfile.profile_name="fastL4";

     

    Hope this helps, Ilya.