Package tigase.stats
Class CounterDataArchivizer
- java.lang.Object
-
- tigase.stats.CounterDataArchivizer
-
- All Implemented Interfaces:
ConfigurationChangedAware,Initializable,StatisticsArchivizerIfc
public class CounterDataArchivizer extends java.lang.Object implements StatisticsArchivizerIfc, ConfigurationChangedAware, Initializable
Created: Mar 25, 2010 8:55:11 PM- Author:
- Artur Hefczyc
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDB_URL_PROP_KEYstatic java.lang.StringKEY_FIELD_PROP_KEYstatic java.lang.StringTABLE_NAME_PROP_KEYstatic java.lang.StringVAL_FIELD_PROP_KEY
-
Constructor Summary
Constructors Constructor Description CounterDataArchivizer()
-
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()voidinitData(java.lang.String key, java.lang.String value)voidinitialize()Method will be called, when bean will be created, configured and ready to use.voidinitRepository(java.lang.String conn_str, java.util.Map<java.lang.String,java.lang.String> params)voidrelease()voidupdateData(java.lang.String key, java.lang.String value)
-
-
-
Field Detail
-
DB_URL_PROP_KEY
public static final java.lang.String DB_URL_PROP_KEY
- See Also:
- Constant Field Values
-
KEY_FIELD_PROP_KEY
public static final java.lang.String KEY_FIELD_PROP_KEY
- See Also:
- Constant Field Values
-
TABLE_NAME_PROP_KEY
public static final java.lang.String TABLE_NAME_PROP_KEY
- See Also:
- Constant Field Values
-
VAL_FIELD_PROP_KEY
public static final java.lang.String VAL_FIELD_PROP_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public void execute(StatisticsProvider sp)
- Specified by:
executein interfaceStatisticsArchivizerIfc
-
initData
public void initData(java.lang.String key, java.lang.String value)
-
initRepository
public void initRepository(java.lang.String conn_str, java.util.Map<java.lang.String,java.lang.String> params) throws java.sql.SQLException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, DBInitException- Throws:
java.sql.SQLExceptionjava.lang.ClassNotFoundExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionDBInitException
-
release
public void release()
- Specified by:
releasein interfaceStatisticsArchivizerIfc
-
updateData
public void updateData(java.lang.String key, java.lang.String value)
-
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
-
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
-
-