Jetspeed2 Statistics Engine

By Java bug | February 25, 2009 | 173 views
Category Jetspeed2


About author  I am Java professional, working on java and Portal technoglies from last 5 years. I start techartifact with my some friends to share our knowledge and tips with world. Read more from this author


Jetspeed 2 has inbuilt feature of statics, statics engine track all the portlet, pages and users.
All this information stored in database. so can be access and used any time.

statics engine keep track of

Number of time served
Max time taken in executing page/portlet
Avg time taken in executing page/portlet
Min time taken in executing page/portlet

It doesn’t have very good interface, but very use full of statics purpose for porltet
As only container can tell exact time take in execution of a portlet

Jetpseed2 allows you to disable statistics engine. by tweaking [/WEB-INF/assembly/statistics.xml].
It also gives small performance boost.

logging to console can be enable/disable by changing the constructor-0 argument to ture or false.
Database logging can be enable/disable by changing the constructor-1 argument to true or false.

<beans>
<!-- Statistics Implementation -->
<bean id="PortalStatistics"
class="org.apache.jetspeed.statistics.impl.PortalStatisticsImpl"
init-method="springInit"
destroy-method="springDestroy"
>
<!-- logToCLF -->
<constructor-arg index='0' type="boolean"><value>false</value></constructor-arg>

<!-- logToDatabase -->
<constructor-arg  index='1'  type="boolean"><value>true</value></constructor-arg>
Read more post on Jetspeed2 Tips 

Leave a Comment

Name:

E-Mail :

Website :

Comments :