public interface MetricController
extends java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TARGET_NAME |
Modifier and Type | Method and Description |
---|---|
com.itko.lisa.stats.MetricStatusInfo |
addCollector(MetricCollector mc)
Maybe the most important method here, you use this guy to put a MetricCollector
into my list of things to collect.
|
int |
getIntervalSize()
Gets the size of a sample interval.
|
com.itko.lisa.stats.MetricStatusInfo |
getMetric(java.lang.String shortName)
Called to fetch a specific MetricStatusInfo from the list by the metric's short name
|
MetricData |
getMetricData()
Returns the MetricData object reference that we are maintaining.
|
java.util.List<com.itko.lisa.stats.MetricStatusInfo> |
getMSIList()
Returns the collection of MetricStatusInfo objects we are managing.
|
int |
getSampleRate()
In case you want to know how often we collect...
|
boolean |
isPaused()
If you haven't called startCollecting() yet, or you called .pauseCollecting(),
you'll get true here.
|
void |
modifyScaleLive(java.lang.String shortName,
double scale)
Called to update the scale value of a MetricCollector live.
|
void |
pauseCollecting()
Call to temporarily pause sampling.
|
void |
removeCollector(java.lang.String shortName)
Called to remove a MetricCollector from the query list
|
void |
setCollectTimeout(int timeoutSeconds)
Tell this Controller how long to wait for a collector to remain hanging before
we interupt its thread and attempt to try again.
|
void |
setIntervalSize(int intervalSize)
Call to change the size of a sample interval.
|
void |
setSampleRate(int newSamp)
Call to change the sample rate.
|
void |
startCollecting()
Called to start or restart sampling for values
|
void |
stopCollecting()
Called to inform this object that we are done sampling the systems in
our collection collection :) nice play on words...
|
void setIntervalSize(int intervalSize) throws java.rmi.RemoteException
intervalSize
- is the size of an interval in samplesjava.rmi.RemoteException
int getIntervalSize() throws java.rmi.RemoteException
java.rmi.RemoteException
void setSampleRate(int newSamp) throws java.rmi.RemoteException
newSamp
- is the sample rate in seconds to query collection of metricsjava.rmi.RemoteException
int getSampleRate() throws java.rmi.RemoteException
java.rmi.RemoteException
void setCollectTimeout(int timeoutSeconds) throws java.rmi.RemoteException
timeoutSeconds
- how long to wait before failing a collect attemptjava.rmi.RemoteException
MetricData getMetricData() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.List<com.itko.lisa.stats.MetricStatusInfo> getMSIList() throws java.rmi.RemoteException
java.rmi.RemoteException
com.itko.lisa.stats.MetricStatusInfo getMetric(java.lang.String shortName) throws java.rmi.RemoteException
shortName
- - the collector's short name to fetchjava.rmi.RemoteException
com.itko.lisa.stats.MetricStatusInfo addCollector(MetricCollector mc) throws java.rmi.RemoteException
mc
- - the collector to addjava.rmi.RemoteException
void removeCollector(java.lang.String shortName) throws java.rmi.RemoteException
shortName
- - the collector to remove by his short namejava.rmi.RemoteException
void modifyScaleLive(java.lang.String shortName, double scale) throws java.rmi.RemoteException
shortName
- - the collector to removescale
- - the new scale value to usejava.rmi.RemoteException
void startCollecting() throws java.rmi.RemoteException
java.rmi.RemoteException
void pauseCollecting() throws java.rmi.RemoteException
java.rmi.RemoteException
boolean isPaused() throws java.rmi.RemoteException
java.rmi.RemoteException
void stopCollecting() throws java.rmi.RemoteException
java.rmi.RemoteException
Copyright © 1998-2014 CA, Inc. All Rights Reserved.