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


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

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

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

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