Auto-count Active Users Plugin Configuration
Auto-count Active Users Plugin Configuration
1 Overview
Auto-count Active Users component is used to calculate automatically the number of active users. A user is considered as an active user only when he/she often adds topic/post in Forum and his/her last post date satisfies with the interval time that is predefined. For example, after 15 days if one user does not have any new post, he/she is not considered as an active user. When Job Schedule Service runs, it will get values which are returned from Auto-count Active Users plugin component to identify the number of active users. This value is updated at Active Members information when viewing Forum statistics.2 Configuration
The properties of Auto-count Active Users plugin is configured in ks-plugins-configuration.xml file. In details: At Job Schedule Service runtime, Auto-count Active Users plugin component is called, then ks-plugins-configuration.xml file is executed, the component-plugin named RecountActiveUserJob will be referred to org.exoplatform.forum.service.conf.RecountActiveUserPeriodJob to calculate number active users.<component-plugin> <name>RecountActiveUserJob</name> <set-method>addPeriodJob</set-method> <type>org.exoplatform.forum.service.conf.RecountActiveUserPeriodJob</type> <description>add a RecountActiveUser job to the JobSchedulerService</description> <init-params> <properties-param> <name>job.info</name> <description>save the monitor data periodically</description> <property name="jobName" value="RecountActiveUserJob"/> <property name="groupName" value="KnowlegedSuite"/> <property name="job" value="org.exoplatform.forum.service.conf.RecountActiveUserJob"/> <property name="repeatCount" value="0"/> <property name="period" value="7200000"/> <!-- 2 hours--> <property name="startTime" value="+0"/> <property name="endTime" value=""/> </properties-param> <properties-param> <name>RecountActiveUser.info</name> <description></description> <property name="lastPost" value="15"/> <!-- users are active if have last posts in 15 day --> </properties-param> </init-params> </component-plugin>
...
<property name="jobName" value="RecountActiveUserJob"/>
<property name="groupName" value="KnowlegedSuite"/>
<property name="job" value="org.exoplatform.forum.service.conf.RecountActiveUserJob"/>
<property name="repeatCount" value="0"/>
<property name="period" value="7200000"/> <!-- 2 hours-->
<property name="startTime" value="+0"/>
<property name="endTime" value=""/>
...
<property name="lastPost" value="15"/>
...| property | description | value |
|---|---|---|
| jobname | The name of job which will be executed. | RecountActiveUserJob |
| groupname | The name of the application which will be executed. | KnowlegedSuite |
| job | The reference function of the job which will be executed. | org.exoplatform.forum.service.conf.RecountActiveUserJob |
| repeatCount | The repeat time for the job. It means that how many time the job will be executed. repeatCount is 0. It means that RecountActiveUserJob is called at runtime only. It is does not repeat. Assume that the value is 2 or 3, RecountActiveUserJob is called 2 or 3 times. | 0 any value |
| period | The time interval the job will be executed. | 7200000 (millisecond) (equal to 2 hours) |
| starttime | The start time when the function will be executed. starttime is +0. It means that the time to start executing RecountActiveUserJob is the runtime. | 0 any value |
| endtime | The end time when the function will be stopped executing. endtime is blank. It means that there is no limitation for the end time for RecountActiveUserJob . | null |
| property | description | value |
|---|---|---|
| lastPost | The number of days that the user has added last post. lastPost is 15. It means that all users, within 15 days since their last post date, have any new post, they are active members. | numeric value |