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, setProperties
public AbstractScheduledReporterFactoryBean()
public void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
protected abstract long getPeriod()
protected long convertDurationString(String duration)
duration
- a string representing a durationpublic int getPhase()
getPhase
in interface org.springframework.context.Phased
public void stop(Runnable callback)
stop
in interface org.springframework.context.SmartLifecycle
public boolean isAutoStartup()
isAutoStartup
in interface org.springframework.context.SmartLifecycle
Copyright © 2012-2013. All Rights Reserved.