|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectakka.cluster.JmxMetricsCollector
public class JmxMetricsCollector
Loads JVM and system metrics through JMX monitoring beans.
param: address The Address
of the node being sampled
param: decay how quickly the exponential weighting of past data is decayed
Constructor Summary | |
---|---|
JmxMetricsCollector(ActorSystem system)
This constructor is used when creating an instance from configured FQCN |
|
JmxMetricsCollector(Address address,
double decayFactor)
|
Method Summary | |
---|---|
void |
close()
|
scala.Option<Metric> |
heapCommitted(java.lang.management.MemoryUsage heap)
(JMX) Returns the current sum of heap memory guaranteed to be available to the JVM from all heap memory pools (in bytes). |
scala.Option<Metric> |
heapMax(java.lang.management.MemoryUsage heap)
(JMX) Returns the maximum amount of memory (in bytes) that can be used for JVM memory management. |
java.lang.management.MemoryUsage |
heapMemoryUsage()
Current heap to be passed in to heapUsed, heapCommitted and heapMax |
scala.Option<Metric> |
heapUsed(java.lang.management.MemoryUsage heap)
(JMX) Returns the current sum of heap memory used from all heap memory pools (in bytes). |
scala.collection.immutable.Set<Metric> |
metrics()
|
scala.Option<Metric> |
processors()
(JMX) Returns the number of available processors Creates a new instance each time. |
NodeMetrics |
sample()
Samples and collects new data points. |
scala.Option<Metric> |
systemLoadAverage()
JMX Returns the OS-specific average load on the CPUs in the system, for the past 1 minute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JmxMetricsCollector(Address address, double decayFactor)
public JmxMetricsCollector(ActorSystem system)
system
- (undocumented)Method Detail |
---|
public NodeMetrics sample()
sample
in interface MetricsCollector
public scala.collection.immutable.Set<Metric> metrics()
public scala.Option<Metric> systemLoadAverage()
public scala.Option<Metric> processors()
public java.lang.management.MemoryUsage heapMemoryUsage()
public scala.Option<Metric> heapUsed(java.lang.management.MemoryUsage heap)
heap
- (undocumented)
public scala.Option<Metric> heapCommitted(java.lang.management.MemoryUsage heap)
heap
- (undocumented)
public scala.Option<Metric> heapMax(java.lang.management.MemoryUsage heap)
heap
- (undocumented)
public void close()
close
in interface java.io.Closeable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |