Package tigase.stats
Class CounterDataArchivizer
java.lang.Object
tigase.stats.CounterDataArchivizer
- All Implemented Interfaces:
ConfigurationChangedAware,Initializable,StatisticsArchivizerIfc
public class CounterDataArchivizer
extends Object
implements StatisticsArchivizerIfc, ConfigurationChangedAware, Initializable
Created: Mar 25, 2010 8:55:11 PM
- Author:
- Artur Hefczyc
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeanConfigurationChanged(Collection<String> changedFields) Method called when configuration was applied to bean.voidlongvoidvoidMethod will be called, when bean will be created, configured and ready to use.voidinitRepository(String conn_str, Map<String, String> params) voidrelease()voidupdateData(String key, String value)
-
Field Details
-
DB_URL_PROP_KEY
- See Also:
-
KEY_FIELD_PROP_KEY
- See Also:
-
TABLE_NAME_PROP_KEY
- See Also:
-
VAL_FIELD_PROP_KEY
- See Also:
-
-
Constructor Details
-
CounterDataArchivizer
public CounterDataArchivizer()
-
-
Method Details
-
execute
- Specified by:
executein interfaceStatisticsArchivizerIfc
-
initData
-
initRepository
public void initRepository(String conn_str, Map<String, String> params) throws SQLException, ClassNotFoundException, InstantiationException, IllegalAccessException, DBInitException -
release
public void release()- Specified by:
releasein interfaceStatisticsArchivizerIfc
-
updateData
-
beanConfigurationChanged
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
-
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
-