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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beanConfigurationChanged
(Collection<String> changedFields) Method called when configuration was applied to bean.void
long
void
void
Method will be called, when bean will be created, configured and ready to use.void
initRepository
(String conn_str, Map<String, String> params) void
release()
void
updateData
(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:
execute
in 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:
release
in interfaceStatisticsArchivizerIfc
-
updateData
-
beanConfigurationChanged
Description copied from interface:ConfigurationChangedAware
Method called when configuration was applied to bean.- Specified by:
beanConfigurationChanged
in interfaceConfigurationChangedAware
- Parameters:
changedFields
- collection of field names which were changed
-
getFrequency
public long getFrequency()- Specified by:
getFrequency
in interfaceStatisticsArchivizerIfc
-
initialize
public void initialize()Description copied from interface:Initializable
Method will be called, when bean will be created, configured and ready to use.- Specified by:
initialize
in interfaceInitializable
-