public class MeterSQL extends Object
| Constructor and Description |
|---|
MeterSQL() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int elapsed,
boolean err) |
int |
getAvgTime(int period) |
int |
getCount(int period) |
int |
getErrorCount(int period) |
float |
getErrorRate(int period) |
static MeterSQL |
getInstance() |
long |
getSumTime(int period) |
float |
getTps(int period) |
public static MeterSQL getInstance()
public void add(int elapsed,
boolean err)
public float getTps(int period)
public int getAvgTime(int period)
public long getSumTime(int period)
public int getCount(int period)
public int getErrorCount(int period)
public float getErrorRate(int period)
Copyright © 2021. All rights reserved.