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 logical_disk[] get_filtered(nitro_service service, String filter) throws Exception
  {
    logical_disk obj = new logical_disk();
    options option = new options();
    option.set_filter(filter);
    logical_disk[] response = (logical_disk[]) obj.getfiltered(service, option);
    return response;
  }
View Full Code Here


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

  * Use this API to count the logical_disk resources configured on NetScaler SDX.
  */
  public static long count(nitro_service service) throws Exception
  {
    logical_disk obj = new logical_disk();
    options option = new options();
    option.set_count(true);
    logical_disk[] response = (logical_disk[])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
  {
    logical_disk obj = new logical_disk();
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    logical_disk[] response = (logical_disk[])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
  {
    logical_disk obj = new logical_disk();
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    logical_disk[] response = (logical_disk[])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 sdxtools_image[] get_filtered(nitro_service service, String filter) throws Exception
  {
    sdxtools_image obj = new sdxtools_image();
    options option = new options();
    option.set_filter(filter);
    sdxtools_image[] response = (sdxtools_image[]) obj.getfiltered(service, option);
    return response;
  }
View Full Code Here

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

  * Use this API to count the sdxtools_image resources configured on NetScaler SDX.
  */
  public static long count(nitro_service service) throws Exception
  {
    sdxtools_image obj = new sdxtools_image();
    options option = new options();
    option.set_count(true);
    sdxtools_image[] response = (sdxtools_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
  {
    sdxtools_image obj = new sdxtools_image();
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    sdxtools_image[] response = (sdxtools_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 long count_filtered(nitro_service service, filtervalue[] filter) throws Exception
  {
    sdxtools_image obj = new sdxtools_image();
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    sdxtools_image[] response = (sdxtools_image[])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.