* @return an instance of {@link TimeStatistic}
*/
public TimeStatistic getResponseTime() {
LoadBalancerStatsInterface lbstats =
lbff.getLoadBalancerMonitoringStats(lbConfigName,lbName);
InstanceStatsInterface istat = getInstanceStats(lbstats);
if(istat!=null){
long avgRespTime = Long.parseLong(
istat.getApplicationStatsAverageResponseTime());
long maxRespTime = Long.parseLong(
istat.getApplicationStatsMaxResponseTime());
long minRespTime = Long.parseLong(
istat.getApplicationStatsMinResponseTime());
long totalRequests = Long.parseLong(
istat.getApplicationStatsNumTotalRequests());
long sampleTime = System.currentTimeMillis();
return createResponseTimeStat(maxRespTime,
totalRequests, sampleTime,
minRespTime, avgRespTime);
}