|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.probe.collectors.JCollector
public abstract class JCollector
This object represents a Collector in use. It may be associated to more than one JProbe It is abstract, because implementation may be various. These implementations are in separate modules.
| Field Summary | |
|---|---|
protected java.lang.String |
hostName
|
protected org.ow2.jasmine.probe.JasmineIndicator |
indicator
Indicator definition |
protected org.ow2.util.log.Log |
logger
Logger. |
protected java.lang.String |
name
Name used to identify this Collector |
protected int |
period
period of polling in seconds |
protected org.ow2.jasmine.probe.probemanager.ProbeManager |
probeManager
reference to the ProbeManager. |
| Constructor Summary | |
|---|---|
JCollector(java.lang.String name,
org.ow2.jasmine.probe.JasmineIndicator def,
int period)
Constructor |
|
| Method Summary | |
|---|---|
protected long |
addJsr(java.util.Collection<org.ow2.jasmine.probe.JasmineSingleResult> jsrs)
Add the values of a list of JSRs. |
protected long |
addValues(java.util.Collection<java.lang.Number> values)
Add a list of values of same type |
protected java.lang.Number |
averageJsr(java.util.Collection<org.ow2.jasmine.probe.JasmineSingleResult> jsrs)
|
protected long |
diffJsr(java.util.Collection<org.ow2.jasmine.probe.JasmineSingleResult> jsrs)
Make a diff between 2 same type values of a list containing 2 JSRs. |
protected long |
diffValues(java.lang.Number v1,
java.lang.Number v2)
Make a diff between 2 values |
protected float |
divideJsr(java.util.Collection<org.ow2.jasmine.probe.JasmineSingleResult> jsrs)
Make a division of 2 values of 2 JSRs contained in a given JSRs list |
protected float |
divideValues(java.lang.Number v1,
java.lang.Number v2)
Make a div between 2 values |
protected java.lang.String |
getDomainName()
|
org.ow2.jasmine.probe.JasmineIndicator |
getIndicator()
|
abstract org.ow2.jasmine.probe.JasmineIndicatorValue |
getLastResult()
return the last result for this indicator |
java.lang.String |
getName()
|
protected java.lang.String |
getServerName()
|
protected java.util.HashMap<java.lang.String,java.lang.String> |
jsrProps(java.util.Collection<org.ow2.jasmine.probe.JasmineSingleResult> jsrs)
Construct properties for a JSR by aggregating the properties of a collection of JSRs. |
protected long |
longValue(java.lang.Number nb)
Try to cast a Number into a long value |
protected java.lang.Number |
maxJsr(java.util.Collection<org.ow2.jasmine.probe.JasmineSingleResult> jsrs)
Return the max value in a collection of JSRs. |
protected java.lang.Number |
minJsr(java.util.Collection<org.ow2.jasmine.probe.JasmineSingleResult> jsrs)
Return the min value in a collection of JSRs. |
protected long |
multiplyJsr(java.util.Collection<org.ow2.jasmine.probe.JasmineSingleResult> jsrs)
Multiply the values of a list of JSRs. |
protected long |
multiplyValues(java.util.Collection<java.lang.Number> values)
Multiply a list of values of same type |
void |
setProbeManager(org.ow2.jasmine.probe.probemanager.ProbeManager probeManager)
Set the probeManager ref when it is needed, for some Collectors. |
abstract void |
startPolling()
Restart polling |
abstract void |
stopPolling()
Stop polling |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.ow2.util.log.Log logger
protected org.ow2.jasmine.probe.JasmineIndicator indicator
protected int period
protected java.lang.String name
protected org.ow2.jasmine.probe.probemanager.ProbeManager probeManager
protected java.lang.String hostName
| Constructor Detail |
|---|
public JCollector(java.lang.String name,
org.ow2.jasmine.probe.JasmineIndicator def,
int period)
| Method Detail |
|---|
public org.ow2.jasmine.probe.JasmineIndicator getIndicator()
public void setProbeManager(org.ow2.jasmine.probe.probemanager.ProbeManager probeManager)
probeManager - protected java.lang.String getDomainName()
protected java.lang.String getServerName()
public java.lang.String getName()
getName in interface org.ow2.jasmine.probe.collector.JasmineCollector
public abstract org.ow2.jasmine.probe.JasmineIndicatorValue getLastResult()
throws org.ow2.jasmine.probe.collector.JasmineCollectorException
getLastResult in interface org.ow2.jasmine.probe.collector.JasmineCollectororg.ow2.jasmine.probe.collector.JasmineCollectorExceptionpublic abstract void stopPolling()
stopPolling in interface org.ow2.jasmine.probe.collector.JasmineCollectorpublic abstract void startPolling()
startPolling in interface org.ow2.jasmine.probe.collector.JasmineCollector
protected java.lang.Number maxJsr(java.util.Collection<org.ow2.jasmine.probe.JasmineSingleResult> jsrs)
throws org.ow2.jasmine.probe.collector.JasmineCollectorException
jsrs - collection of JSRs to be aggregated
org.ow2.jasmine.probe.collector.JasmineCollectorException
protected java.lang.Number minJsr(java.util.Collection<org.ow2.jasmine.probe.JasmineSingleResult> jsrs)
throws org.ow2.jasmine.probe.collector.JasmineCollectorException
jsrs - collection of JSRs to be aggregated
org.ow2.jasmine.probe.collector.JasmineCollectorException
protected java.lang.Number averageJsr(java.util.Collection<org.ow2.jasmine.probe.JasmineSingleResult> jsrs)
throws org.ow2.jasmine.probe.collector.JasmineCollectorException
org.ow2.jasmine.probe.collector.JasmineCollectorException
protected long diffValues(java.lang.Number v1,
java.lang.Number v2)
throws org.ow2.jasmine.probe.collector.JasmineCollectorException
v1 - v2 -
org.ow2.jasmine.probe.collector.JasmineCollectorException
protected long diffJsr(java.util.Collection<org.ow2.jasmine.probe.JasmineSingleResult> jsrs)
throws org.ow2.jasmine.probe.collector.JasmineCollectorException
jsrs - the list of JSRs
org.ow2.jasmine.probe.collector.JasmineCollectorException
protected float divideValues(java.lang.Number v1,
java.lang.Number v2)
throws org.ow2.jasmine.probe.collector.JasmineCollectorException
v1 - v2 -
org.ow2.jasmine.probe.collector.JasmineCollectorException
protected float divideJsr(java.util.Collection<org.ow2.jasmine.probe.JasmineSingleResult> jsrs)
throws org.ow2.jasmine.probe.collector.JasmineCollectorException
jsrs - the list of 2 JSRs
org.ow2.jasmine.probe.collector.JasmineCollectorException
protected long addValues(java.util.Collection<java.lang.Number> values)
throws org.ow2.jasmine.probe.collector.JasmineCollectorException
values -
org.ow2.jasmine.probe.collector.JasmineCollectorException
protected long addJsr(java.util.Collection<org.ow2.jasmine.probe.JasmineSingleResult> jsrs)
throws org.ow2.jasmine.probe.collector.JasmineCollectorException
jsrs - the list of JSRs
org.ow2.jasmine.probe.collector.JasmineCollectorException
protected long multiplyValues(java.util.Collection<java.lang.Number> values)
throws org.ow2.jasmine.probe.collector.JasmineCollectorException
values -
org.ow2.jasmine.probe.collector.JasmineCollectorException
protected long multiplyJsr(java.util.Collection<org.ow2.jasmine.probe.JasmineSingleResult> jsrs)
throws org.ow2.jasmine.probe.collector.JasmineCollectorException
jsrs - the list of JSRs
org.ow2.jasmine.probe.collector.JasmineCollectorException
protected long longValue(java.lang.Number nb)
throws org.ow2.jasmine.probe.collector.JasmineCollectorException
nb -
org.ow2.jasmine.probe.collector.JasmineCollectorExceptionprotected java.util.HashMap<java.lang.String,java.lang.String> jsrProps(java.util.Collection<org.ow2.jasmine.probe.JasmineSingleResult> jsrs)
jsrs -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||