Пример #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);
 }