public abstract class AbstractScheduledReporterFactoryBean<T extends com.codahale.metrics.ScheduledReporter> extends AbstractReporterFactoryBean<T> implements org.springframework.context.SmartLifecycle, org.springframework.beans.factory.DisposableBean
FILTER_PATTERN, FILTER_REF| Constructor and Description |
|---|
AbstractScheduledReporterFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
protected long |
convertDurationString(String duration)
Parses and converts to nanoseconds a string representing
a duration, ie: 500ms, 30s, 5m, 1h, etc
|
void |
destroy() |
protected abstract long |
getPeriod() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
afterPropertiesSet, createInstance, getBeanFactory, getConversionService, getMetricFilter, getMetricRegistry, getObject, getObjectType, getProperties, getProperty, getProperty, getProperty, getProperty, getPropertyRef, getPropertyRef, hasProperty, isEnabled, isSingleton, metricFilterPattern, setBeanFactory, setEnabled, setMetricRegistry, setPropertiespublic AbstractScheduledReporterFactoryBean()
public void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionprotected abstract long getPeriod()
protected long convertDurationString(String duration)
duration - a string representing a durationpublic int getPhase()
getPhase in interface org.springframework.context.Phasedpublic void stop(Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecycleCopyright © 2012-2013. All Rights Reserved.