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


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

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

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

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

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