Ejemplo n.º 1
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;
 }
Ejemplo n.º 2
0
 /**
  * Use this API to count the filtered set of xen_health_resource resources. set the filter
  * parameter values in filtervalue object.
  */
 public static long count_filtered(nitro_service service, filtervalue[] filter) throws Exception {
   xen_health_resource obj = new xen_health_resource();
   options option = new options();
   option.set_count(true);
   option.set_filter(filter);
   xen_health_resource[] response = (xen_health_resource[]) obj.get_resources(service, option);
   if (response != null && response.length > 0) return response[0].__count;
   return 0;
 }