Returns the statistics of the requested statistics element.
See <code>StatList</code> for a list of possible items returned
by getServerStat.

@param stat the statistic desired
@return the requested statistic
326550
private Number getStat(StatList stat) {
        LocalDateTime now = this.clock.now();
        if (now.minusSeconds(this.expiryInterval).isAfter(this.responseDate)) {
            this.responseDate = now;
            this.cachedResponse = commandExecutor.sendCommand(serverProperties.getStats());
        }

        for (String line : cachedResponse) {
            if (line.startsWith(stat.getStatPrefix())) {
                try {
                    return (NumberFormat.getInstance()).parse(line.substring(stat.getStatPrefix().length()).trim());
                } catch (ParseException e) {
                    LOGGER.warn("Could not parse server statistic", e);
                    return 0;
                }
            }
        }

        return 0;
    }
1085198
public static nsacl_stats[] get(nitro_service service) throws Exception{
		nsacl_stats obj = new nsacl_stats();
		nsacl_stats[] response = (nsacl_stats[])obj.stat_resources(service);
		return response;
	}
1083780
public static cmppolicy_stats[] get(nitro_service service) throws Exception{
		cmppolicy_stats obj = new cmppolicy_stats();
		cmppolicy_stats[] response = (cmppolicy_stats[])obj.stat_resources(service);
		return response;
	}
1005750
public static clusternode_stats get(nitro_service service, Long nodeid) throws Exception{
		clusternode_stats obj = new clusternode_stats();
		obj.set_nodeid(nodeid);
		clusternode_stats response = (clusternode_stats) obj.stat_resource(service);
		return response;
	}
1003950
public void statistics(Statistic stats) {
    if(stats != null) {
      log(Level.STATISTICS, stats.getKey() + ": " + stats.formatValue());
    }
  }
919038
public static gslbservice_stats[] get(nitro_service service) throws Exception{
		gslbservice_stats obj = new gslbservice_stats();
		gslbservice_stats[] response = (gslbservice_stats[])obj.stat_resources(service);
		return response;
	}
1118082
public static authorizationpolicylabel_stats[] get(nitro_service service) throws Exception{
		authorizationpolicylabel_stats obj = new authorizationpolicylabel_stats();
		authorizationpolicylabel_stats[] response = (authorizationpolicylabel_stats[])obj.stat_resources(service);
		return response;
	}
716305
public static Interface_stats[] get(nitro_service service) throws Exception{
		Interface_stats obj = new Interface_stats();
		Interface_stats[] response = (Interface_stats[])obj.stat_resources(service);
		return response;
	}
973810
public static dns_stats get(nitro_service service) throws Exception{
		dns_stats obj = new dns_stats();
		dns_stats[] response = (dns_stats[])obj.stat_resources(service);
		return response[0];
	}
90684
public static service_stats get(nitro_service service, String name) throws Exception{
		service_stats obj = new service_stats();
		obj.set_name(name);
		service_stats response = (service_stats) obj.stat_resource(service);
		return response;
	}
525967
public static protocoltcp_stats get(nitro_service service) throws Exception{
		protocoltcp_stats obj = new protocoltcp_stats();
		protocoltcp_stats[] response = (protocoltcp_stats[])obj.stat_resources(service);
		return response[0];
	}
453580
public static dospolicy_stats[] get(nitro_service service) throws Exception{
		dospolicy_stats obj = new dospolicy_stats();
		dospolicy_stats[] response = (dospolicy_stats[])obj.stat_resources(service);
		return response;
	}
208156
public static synchronized Map<String, Statistics> getStatistics() {
    Map<String, Statistics> result = new HashMap<String, Statistics>();
    for(Statistics stat: statisticsTable.values()) {
      result.put(stat.getScheme(), stat);
    }
    return result;
  }
888982
public static lbvserver_stats get(nitro_service service, String name) throws Exception{
		lbvserver_stats obj = new lbvserver_stats();
		obj.set_name(name);
		lbvserver_stats response = (lbvserver_stats) obj.stat_resource(service);
		return response;
	}
929858
public static vlan_stats[] get(nitro_service service) throws Exception{
		vlan_stats obj = new vlan_stats();
		vlan_stats[] response = (vlan_stats[])obj.stat_resources(service);
		return response;
	}
277739
def get_stats(self, stat_name):
        

        return [self.get_stat(r, stat_name) for r in self.statistics.keys()]
1284139
public static crvserver_stats[] get(nitro_service service) throws Exception{
		crvserver_stats obj = new crvserver_stats();
		crvserver_stats[] response = (crvserver_stats[])obj.stat_resources(service);
		return response;
	}