@Service public class StatSystem extends AbstractResinSubSystem
Modifier and Type | Class and Description |
---|---|
static class |
StatSystem.JmxItem |
protected static class |
StatSystem.Sample |
START_PRIORITY_CACHE_SERVICE, START_PRIORITY_CLASSLOADER, START_PRIORITY_CLUSTER_SERVICE, START_PRIORITY_DATABASE_SYSTEM, START_PRIORITY_DEFAULT, START_PRIORITY_ENV_SYSTEM, START_PRIORITY_NETWORK_CLUSTER, STOP_PRIORITY_CLASSLOADER
Modifier | Constructor and Description |
---|---|
protected |
StatSystem() |
Modifier and Type | Method and Description |
---|---|
void |
addJmx(StatSystem.JmxItem item) |
void |
addJmxDelta(StatSystem.JmxItem item) |
void |
addJmxDeltaMeter(java.lang.String name,
java.lang.String objectName,
java.lang.String attribute) |
void |
addJmxMeter(java.lang.String name,
java.lang.String objectName,
java.lang.String attribute) |
void |
addJmxPercentMeter(java.lang.String name,
java.lang.String objectName,
java.lang.String attribute) |
void |
addMeter(AbstractMeter probe) |
void |
addMeterGraph(MeterGraphInfo meterGraph) |
void |
addMeterGraphPage(MeterGraphPageInfo meterGraphPage) |
void |
addSample(long now,
long[] sampleIds,
double[] sampleData) |
void |
addSample(long now,
long id,
double data) |
void |
addSample(StatSystem.Sample sample) |
BaselineQueryResult |
getBaseline(long id,
long beginTime,
long endTime,
int minSampleSize) |
BaselineQueryResult |
getBaseline(java.lang.String name,
long beginTime,
long endTime,
int minSampleSize) |
double |
getCpuLoad() |
java.util.ArrayList<AbstractMeter> |
getCpuMeters() |
static StatSystem |
getCurrent() |
DownTime[] |
getDownTimes(int index,
long beginTime,
long endTime) |
double |
getLastValue(long id) |
double |
getLastValue(java.lang.String name) |
MeterGraphPageInfo |
getMeterGraphPage(java.lang.String name) |
MeterGraphPageInfo[] |
getMeterGraphPages() |
MeterGraphInfo[] |
getMeterGraphs() |
long |
getSamplePeriod() |
long[] |
getStartTimes(int index,
long startTime,
long endTime) |
StatServiceValue[] |
getStatisticsData(long id,
long beginTime,
long endTime,
long step) |
StatServiceValue[] |
getStatisticsData(java.lang.String name,
long beginTime,
long endTime,
long step) |
java.lang.String[] |
getStatisticsNames() |
void |
init() |
java.util.Set |
queryNames(java.lang.String objectName) |
void |
setSamplePeriod(Period period) |
destroy, getStartPriority, getStopPriority, isActive, preCreate, start, stop, toString
public static StatSystem getCurrent()
@PostConstruct public void init()
public void setSamplePeriod(Period period)
public long getSamplePeriod()
public java.util.Set queryNames(java.lang.String objectName)
public void addJmxMeter(java.lang.String name, java.lang.String objectName, java.lang.String attribute)
public void addJmx(StatSystem.JmxItem item)
public void addJmxDelta(StatSystem.JmxItem item)
public void addJmxDeltaMeter(java.lang.String name, java.lang.String objectName, java.lang.String attribute)
public void addJmxPercentMeter(java.lang.String name, java.lang.String objectName, java.lang.String attribute)
public void addMeter(AbstractMeter probe)
public void addSample(StatSystem.Sample sample)
public void addSample(long now, long id, double data)
public void addSample(long now, long[] sampleIds, double[] sampleData)
public double getCpuLoad()
public StatServiceValue[] getStatisticsData(java.lang.String name, long beginTime, long endTime, long step)
public StatServiceValue[] getStatisticsData(long id, long beginTime, long endTime, long step)
public double getLastValue(java.lang.String name)
public double getLastValue(long id)
public BaselineQueryResult getBaseline(java.lang.String name, long beginTime, long endTime, int minSampleSize)
public BaselineQueryResult getBaseline(long id, long beginTime, long endTime, int minSampleSize)
public java.lang.String[] getStatisticsNames()
public void addMeterGraph(MeterGraphInfo meterGraph)
public void addMeterGraphPage(MeterGraphPageInfo meterGraphPage)
public MeterGraphInfo[] getMeterGraphs()
public MeterGraphPageInfo[] getMeterGraphPages()
public MeterGraphPageInfo getMeterGraphPage(java.lang.String name)
public long[] getStartTimes(int index, long startTime, long endTime)
public DownTime[] getDownTimes(int index, long beginTime, long endTime)
public java.util.ArrayList<AbstractMeter> getCpuMeters()