예제 #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;
 }
예제 #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;
 }
예제 #3
0
 /** Use this operation to get the current values of the resources. */
 public static xen_health_resource get(nitro_service client, xen_health_resource resource)
     throws Exception {
   resource.validate("get");
   return ((xen_health_resource[]) resource.get_resources(client))[0];
 }
예제 #4
0
 /**
  *
  *
  * <pre>
  * Use this operation to get the current values of the resources.
  * </pre>
  */
 public static xen_health_resource[] get(nitro_service client) throws Exception {
   xen_health_resource resource = new xen_health_resource();
   resource.validate("get");
   return (xen_health_resource[]) resource.get_resources(client);
 }