/** Returns the statistics for a load-balanced server instance
* @return an array of {@link Statistic}
*/
public Statistic[] getStatistics() {
LoadBalancerStatsInterface lbstats = lbff.getLoadBalancerMonitoringStats(lbConfigName,lbName);
Statistic[] statArr1 = new Statistic[3];
StringStatistic stat11 = new StringStatisticImpl("Health", "Instance Health", "state of the server", 0, 0, "");
CountStatistic stat21 = new CountStatisticImpl("NumberOfActiveRequests", "Number Of Active Requests", "count", 0, 0, 0);
CountStatistic stat31 = new CountStatisticImpl("NumberOfTotalRequests", "Number Of Total Requests", "count", 0, 0, 0);
statArr1[0]=stat11;
statArr1[1]=stat21;
statArr1[2]=stat31;
if(lbstats == null)
return statArr1;
ClusterStats [] cstats = lbstats.getClusterStats();
for(ClusterStats cstat :cstats){
for(InstanceStats istat : cstat.getInstanceStats()){
if(!istat.getId().equals(instanceName))
continue;
Statistic[] statArr = new Statistic[3];