Package tigase.stats
Class CounterDataLogger
- java.lang.Object
-
- tigase.stats.CounterDataLogger
-
- All Implemented Interfaces:
ConfigurationChangedAware,Initializable,RegistrarBean,StatisticsArchivizerIfc
@Bean(name="counter-data-logger", parent=StatisticsCollector.class, active=false) public class CounterDataLogger extends java.lang.Object implements StatisticsArchivizerIfc, ConfigurationChangedAware, Initializable, RegistrarBean
Created: Apr 20, 2010 6:39:05 PM- Author:
- Artur Hefczyc
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringdefaultHostname
-
Constructor Summary
Constructors Constructor Description CounterDataLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeanConfigurationChanged(java.util.Collection<java.lang.String> changedFields)Method called when configuration was applied to bean.voidexecute(StatisticsProvider sp)longgetFrequency()voidinitialize()Method will be called, when bean will be created, configured and ready to use.voidregister(Kernel kernel)Method called when bean is being registered allowing developer to programatically register other beans.voidrelease()voidunregister(Kernel kernel)Method called while bean is being unregistered.
-
-
-
Method Detail
-
beanConfigurationChanged
public void beanConfigurationChanged(java.util.Collection<java.lang.String> changedFields)
Description copied from interface:ConfigurationChangedAwareMethod called when configuration was applied to bean.- Specified by:
beanConfigurationChangedin interfaceConfigurationChangedAware- Parameters:
changedFields- collection of field names which were changed
-
execute
public void execute(StatisticsProvider sp)
- Specified by:
executein interfaceStatisticsArchivizerIfc
-
getFrequency
public long getFrequency()
- Specified by:
getFrequencyin interfaceStatisticsArchivizerIfc
-
initialize
public void initialize()
Description copied from interface:InitializableMethod will be called, when bean will be created, configured and ready to use.- Specified by:
initializein interfaceInitializable
-
register
public void register(Kernel kernel)
Description copied from interface:RegistrarBeanMethod called when bean is being registered allowing developer to programatically register other beans.- Specified by:
registerin interfaceRegistrarBean- Parameters:
kernel- - instance from local scope
-
unregister
public void unregister(Kernel kernel)
Description copied from interface:RegistrarBeanMethod called while bean is being unregistered.- Specified by:
unregisterin interfaceRegistrarBean- Parameters:
kernel- - instance from local scope
-
release
public void release()
- Specified by:
releasein interfaceStatisticsArchivizerIfc
-
-