public class SystemPublicMetrics extends Object implements PublicMetrics, org.springframework.core.Ordered
PublicMetrics
implementation that provides various system-related metrics.Constructor and Description |
---|
SystemPublicMetrics() |
Modifier and Type | Method and Description |
---|---|
protected void |
addBasicMetrics(Collection<Metric<?>> result)
Add basic system metrics.
|
protected void |
addClassLoadingMetrics(Collection<Metric<?>> result)
Add class loading metrics.
|
protected void |
addGarbageCollectionMetrics(Collection<Metric<?>> result)
Add garbage collection metrics.
|
protected void |
addHeapMetrics(Collection<Metric<?>> result)
Add JVM heap metrics.
|
protected void |
addThreadMetrics(Collection<Metric<?>> result)
Add thread metrics.
|
int |
getOrder() |
Collection<Metric<?>> |
metrics()
Return an indication of current state through metrics.
|
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public Collection<Metric<?>> metrics()
PublicMetrics
metrics
in interface PublicMetrics
protected void addBasicMetrics(Collection<Metric<?>> result)
result
- the resultprotected void addHeapMetrics(Collection<Metric<?>> result)
result
- the resultprotected void addThreadMetrics(Collection<Metric<?>> result)
result
- the resultprotected void addClassLoadingMetrics(Collection<Metric<?>> result)
result
- the resultprotected void addGarbageCollectionMetrics(Collection<Metric<?>> result)
result
- the resultCopyright © 2017 Pivotal Software, Inc.. All rights reserved.