Package com.citrix.sdx.nitro.service

Examples of com.citrix.sdx.nitro.service.options


  * filter string should be in JSON format.eg: "vm_state:DOWN,name:[a-z]+"
  */
  public static xen_appcvpx_image[] get_filtered(nitro_service service, String filter) throws Exception
  {
    xen_appcvpx_image obj = new xen_appcvpx_image();
    options option = new options();
    option.set_filter(filter);
    xen_appcvpx_image[] response = (xen_appcvpx_image[]) obj.getfiltered(service, option);
    return response;
  }
View Full Code Here


  * set the filter parameter values in filtervalue object.
  */
  public static xen_appcvpx_image[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception
  {
    xen_appcvpx_image obj = new xen_appcvpx_image();
    options option = new options();
    option.set_filter(filter);
    xen_appcvpx_image[] response = (xen_appcvpx_image[]) obj.getfiltered(service, option);
    return response;
  }
View Full Code Here

  * Use this API to count the xen_appcvpx_image resources configured on NetScaler SDX.
  */
  public static long count(nitro_service service) throws Exception
  {
    xen_appcvpx_image obj = new xen_appcvpx_image();
    options option = new options();
    option.set_count(true);
    xen_appcvpx_image[] response = (xen_appcvpx_image[])obj.get_resources(service, option);
    if (response != null && response.length > 0)
      return response[0].__count;
    return 0;
  }
View Full Code Here

  * filter string should be in JSON format.eg: "vm_state:DOWN,name:[a-z]+"
  */
  public static long count_filtered(nitro_service service, String filter) throws Exception
  {
    xen_appcvpx_image obj = new xen_appcvpx_image();
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    xen_appcvpx_image[] response = (xen_appcvpx_image[])obj.get_resources(service, option);
    if (response != null && response.length > 0)
      return response[0].__count;
    return 0;
  }
View Full Code Here

  * filter string should be in JSON format.eg: "vm_state:DOWN,name:[a-z]+"
  */
  public static vm_device[] get_filtered(nitro_service service, String filter) throws Exception
  {
    vm_device obj = new vm_device();
    options option = new options();
    option.set_filter(filter);
    vm_device[] response = (vm_device[]) obj.getfiltered(service, option);
    return response;
  }
View Full Code Here

  * set the filter parameter values in filtervalue object.
  */
  public static long count_filtered(nitro_service service, filtervalue[] filter) throws Exception
  {
    xen_appcvpx_image obj = new xen_appcvpx_image();
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    xen_appcvpx_image[] response = (xen_appcvpx_image[])obj.get_resources(service, option);
    if (response != null && response.length > 0)
      return response[0].__count;
    return 0;
  }
View Full Code Here

  * set the filter parameter values in filtervalue object.
  */
  public static vm_device[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception
  {
    vm_device obj = new vm_device();
    options option = new options();
    option.set_filter(filter);
    vm_device[] response = (vm_device[]) obj.getfiltered(service, option);
    return response;
  }
View Full Code Here

  * Use this API to count the vm_device resources configured on NetScaler SDX.
  */
  public static long count(nitro_service service) throws Exception
  {
    vm_device obj = new vm_device();
    options option = new options();
    option.set_count(true);
    vm_device[] response = (vm_device[])obj.get_resources(service, option);
    if (response != null && response.length > 0)
      return response[0].__count;
    return 0;
  }
View Full Code Here

  * filter string should be in JSON format.eg: "vm_state:DOWN,name:[a-z]+"
  */
  public static long count_filtered(nitro_service service, String filter) throws Exception
  {
    vm_device obj = new vm_device();
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    vm_device[] response = (vm_device[])obj.get_resources(service, option);
    if (response != null && response.length > 0)
      return response[0].__count;
    return 0;
  }
View Full Code Here

  * set the filter parameter values in filtervalue object.
  */
  public static long count_filtered(nitro_service service, filtervalue[] filter) throws Exception
  {
    vm_device obj = new vm_device();
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    vm_device[] response = (vm_device[])obj.get_resources(service, option);
    if (response != null && response.length > 0)
      return response[0].__count;
    return 0;
  }
View Full Code Here

TOP

Related Classes of com.citrix.sdx.nitro.service.options

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.