Exemplo n.º 1
0
 /** Use this API to count the xen_health_resource resources configured on NetScaler SDX. */
 public static long count(nitro_service service) throws Exception {
   xen_health_resource obj = new xen_health_resource();
   options option = new options();
   option.set_count(true);
   xen_health_resource[] response = (xen_health_resource[]) obj.get_resources(service, option);
   if (response != null && response.length > 0) return response[0].__count;
   return 0;
 }
Exemplo n.º 2
0
 /**
  * Use this API to fetch filtered set of xen_health_resource resources. set the filter parameter
  * values in filtervalue object.
  */
 public static xen_health_resource[] get_filtered(nitro_service service, filtervalue[] filter)
     throws Exception {
   xen_health_resource obj = new xen_health_resource();
   options option = new options();
   option.set_filter(filter);
   xen_health_resource[] response = (xen_health_resource[]) obj.getfiltered(service, option);
   return response;
 }