Hi, is it possible to have access to metrics like the ones in https://jackrabbit.apache.org/oak/docs/nodestore/document/metrics.html in a non osgi environment? Should I create a StatisticsProvider and use getCounterStats?
Jorge El dom., 17 may. 2020 a las 10:00, jorgeeflorez . (< [email protected]>) escribió: > Hi all, > I would like to know some statistics from a repository (a rather large > repository): > 1. Node count from each node type. > 2. Total node count (from user created node types). > 3. Total file size (maybe including/excluding version files). > 4. How many files are stored for a specific extension. > 5. The smallest file stored (and its size), maybe for a specific > extension. > 6. The largest file stored (and its size) , maybe for a specific > extension. > > I think node counts can be known by making a query (e.g. SELECT [name()] > FROM [MyType]), iterating and counting, but that can take some time in my > repository and for each node type. Is there another way? > I am not sure how would I get file size statistics, maybe with some method > from the node/data store? > > Any help is appreciated :) > > Best Regards. > > Jorge >
