Package psiprobe.beans.stats.collectors
Class JvmMemoryStatsCollectorBean
- java.lang.Object
-
- psiprobe.beans.stats.collectors.AbstractStatsCollectorBean
-
- psiprobe.beans.stats.collectors.JvmMemoryStatsCollectorBean
-
public class JvmMemoryStatsCollectorBean extends AbstractStatsCollectorBean
The Class JvmMemoryStatsCollectorBean.
-
-
Field Summary
Fields Modifier and Type Field Description private JvmMemoryInfoAccessorBean
jvmMemoryInfoAccessor
The jvm memory info accessor.
-
Constructor Summary
Constructors Constructor Description JvmMemoryStatsCollectorBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collect()
Collect.JvmMemoryInfoAccessorBean
getJvmMemoryInfoAccessor()
Gets the jvm memory info accessor.void
setJvmMemoryInfoAccessor(JvmMemoryInfoAccessorBean jvmMemoryInfoAccessor)
Sets the jvm memory info accessor.void
setListeners(List<StatsCollectionListener> listeners)
Sets the listeners.void
setMaxSeries(long period, long span)
Sets the max series expression.-
Methods inherited from class psiprobe.beans.stats.collectors.AbstractStatsCollectorBean
buildAbsoluteStats, buildAbsoluteStats, buildDeltaStats, buildDeltaStats, buildTimePercentageStats, getListeners, getMaxSeries, getStatsCollection, resetStats, setMaxSeries, setStatsCollection
-
-
-
-
Field Detail
-
jvmMemoryInfoAccessor
@Inject private JvmMemoryInfoAccessorBean jvmMemoryInfoAccessor
The jvm memory info accessor.
-
-
Method Detail
-
getJvmMemoryInfoAccessor
public JvmMemoryInfoAccessorBean getJvmMemoryInfoAccessor()
Gets the jvm memory info accessor.- Returns:
- the jvm memory info accessor
-
setJvmMemoryInfoAccessor
public void setJvmMemoryInfoAccessor(JvmMemoryInfoAccessorBean jvmMemoryInfoAccessor)
Sets the jvm memory info accessor.- Parameters:
jvmMemoryInfoAccessor
- the new jvm memory info accessor
-
collect
public void collect() throws Exception
Description copied from class:AbstractStatsCollectorBean
Collect.- Specified by:
collect
in classAbstractStatsCollectorBean
- Throws:
Exception
- the exception
-
setMaxSeries
public void setMaxSeries(@Value("${psiprobe.beans.stats.collectors.memory.period}") long period, @Value("${psiprobe.beans.stats.collectors.memory.span}") long span)
Sets the max series expression.- Parameters:
period
- the periodspan
- the span
-
setListeners
@Autowired public void setListeners(List<StatsCollectionListener> listeners)
Description copied from class:AbstractStatsCollectorBean
Sets the listeners.- Overrides:
setListeners
in classAbstractStatsCollectorBean
- Parameters:
listeners
- the new listeners
-
-