jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torgeir Veimo <torg...@pobox.com>
Subject Re: best practice - node view count
Date Tue, 21 Feb 2006 10:53:50 GMT
On Tue, 2006-02-21 at 11:39 +0100, Tobias Bocanegra wrote:
> hi torgeir,
> there is a descriptor that provides you with this information:
> 
> RepositoryImpl
> .
> .
>     // names of well-known repository properties
>     public static final String STATS_NODE_COUNT_PROPERTY =
> "jcr.repository.stats.nodes.count";
>     public static final String STATS_PROP_COUNT_PROPERTY =
> "jcr.repository.stats.properties.count";
> .
> .
> so just call: repository.getDescriptor("jcr.repository.stats.nodes.count");

Nice, I didn't know. Thx.

Is it possible to control how this counter is incremented as well?

A node can be read many times when the content is not really read by a
person, eg by a content admin system redering a list of documents.

-- 
Torgeir Veimo <torgeir@pobox.com>


Mime
View raw message