@Service public class ProStatSystem extends StatSystem implements AlarmListener
Modifier and Type | Class and Description |
---|---|
class |
ProStatSystem.Admin |
static class |
ProStatSystem.UpMeterValue |
StatSystem.JmxItem, StatSystem.Sample
Modifier and Type | Field and Description |
---|---|
static int |
START_PRIORITY |
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 and Type | Method and Description |
---|---|
void |
addAnalyzer(HealthAnalyzer analyzer) |
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) |
static ProStatSystem |
createAndAddService() |
void |
destroy()
Destroys the service.
|
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() |
DownTime[] |
getDownTimes(int index,
long beginTime,
long endTime) |
double |
getLastValue(long id) |
double |
getLastValue(java.lang.String name) |
AbstractMeter |
getMeter(java.lang.String name) |
MeterGraphPageInfo |
getMeterGraphPage(java.lang.String name) |
MeterGraphPageInfo[] |
getMeterGraphPages() |
MeterGraphInfo[] |
getMeterGraphs() |
long |
getSamplePeriod()
Returns the sample period
|
int |
getStartPriority()
Returns the start priority of the service, used to determine which
services to start first.
|
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 |
handleAlarm(Alarm alarm)
Handles a callback from an alarm.
|
void |
init() |
java.util.Set |
queryNames(java.lang.String objectName) |
void |
setSamplePeriod(Period period)
Sets the sample period
|
void |
start()
Starts the service.
|
void |
stop()
Stops the service.
|
java.lang.String |
toString() |
getCurrent
getStopPriority, isActive, preCreate
public static final int START_PRIORITY
public static ProStatSystem createAndAddService()
public void setSamplePeriod(Period period)
setSamplePeriod
in class StatSystem
public long getSamplePeriod()
getSamplePeriod
in class StatSystem
@PostConstruct public void init()
init
in class StatSystem
@PreDestroy public void destroy()
ResinSubSystem
destroy
in interface ResinSubSystem
destroy
in class AbstractResinSubSystem
public int getStartPriority()
ResinSubSystem
getStartPriority
in interface ResinSubSystem
getStartPriority
in class AbstractResinSubSystem
public void start()
ResinSubSystem
start
in interface ResinSubSystem
start
in class AbstractResinSubSystem
public java.util.ArrayList<AbstractMeter> getCpuMeters()
getCpuMeters
in class StatSystem
public java.util.Set queryNames(java.lang.String objectName)
queryNames
in class StatSystem
public void addJmxMeter(java.lang.String name, java.lang.String objectName, java.lang.String attribute)
addJmxMeter
in class StatSystem
public void addJmx(StatSystem.JmxItem item)
addJmx
in class StatSystem
public void addJmxDelta(StatSystem.JmxItem item)
addJmxDelta
in class StatSystem
public void addJmxDeltaMeter(java.lang.String name, java.lang.String objectName, java.lang.String attribute)
addJmxDeltaMeter
in class StatSystem
public void addJmxPercentMeter(java.lang.String name, java.lang.String objectName, java.lang.String attribute)
addJmxPercentMeter
in class StatSystem
public void addAnalyzer(HealthAnalyzer analyzer)
public void addMeter(AbstractMeter probe)
addMeter
in class StatSystem
public AbstractMeter getMeter(java.lang.String name)
public void addSample(StatSystem.Sample sample)
addSample
in class StatSystem
@PreDestroy public void stop()
ResinSubSystem
stop
in interface ResinSubSystem
stop
in class AbstractResinSubSystem
public void addSample(long now, long id, double data)
addSample
in class StatSystem
public void addSample(long now, long[] sampleIds, double[] sampleData)
addSample
in class StatSystem
public double getCpuLoad()
getCpuLoad
in class StatSystem
public void handleAlarm(Alarm alarm)
AlarmListener
handleAlarm
in interface AlarmListener
public java.lang.String toString()
toString
in class AbstractResinSubSystem
public StatServiceValue[] getStatisticsData(java.lang.String name, long beginTime, long endTime, long step)
getStatisticsData
in class StatSystem
public StatServiceValue[] getStatisticsData(long id, long beginTime, long endTime, long step)
getStatisticsData
in class StatSystem
public double getLastValue(java.lang.String name)
getLastValue
in class StatSystem
public double getLastValue(long id)
getLastValue
in class StatSystem
public BaselineQueryResult getBaseline(java.lang.String name, long beginTime, long endTime, int minSampleSize)
getBaseline
in class StatSystem
public BaselineQueryResult getBaseline(long id, long beginTime, long endTime, int minSampleSize)
getBaseline
in class StatSystem
public java.lang.String[] getStatisticsNames()
getStatisticsNames
in class StatSystem
public void addMeterGraph(MeterGraphInfo meterGraph)
addMeterGraph
in class StatSystem
public void addMeterGraphPage(MeterGraphPageInfo meterGraphPage)
addMeterGraphPage
in class StatSystem
public MeterGraphInfo[] getMeterGraphs()
getMeterGraphs
in class StatSystem
public MeterGraphPageInfo[] getMeterGraphPages()
getMeterGraphPages
in class StatSystem
public MeterGraphPageInfo getMeterGraphPage(java.lang.String name)
getMeterGraphPage
in class StatSystem
public long[] getStartTimes(int index, long startTime, long endTime)
getStartTimes
in class StatSystem
public DownTime[] getDownTimes(int index, long beginTime, long endTime)
getDownTimes
in class StatSystem