Interface ComponentStatisticsProvider


  • public interface ComponentStatisticsProvider
    A provider of statistics data about some resources managed in a given Silverpeas Component. Each statistics provider must be managed in CDI and retrieved by a name that qualifies them (annotation @Named). This name must satisfy the following rule: the name of the component that provides this statistics provider suffixed by the value of the QUALIFIER_SUFFIX constant.
    • Field Detail

      • QUALIFIER_SUFFIX

        static final String QUALIFIER_SUFFIX
        The suffix of the name for each statistics provider.
        See Also:
        Constant Field Values
    • Method Detail

      • memorySizeOfSpecificFiles

        default long memorySizeOfSpecificFiles​(String componentId)
        Gets the memory size of documents of the application instance by taking into account only the specific files handled by the application.

        The files handled by transverse services are taken into account by other statistic services.

        Parameters:
        componentId - the identifier of the current looked component instance.
        Returns:
        a long.
      • countSpecificFiles

        default long countSpecificFiles​(String componentId)
        Counts the number of document the application instance uses by taking into account only the specific files handled by the application.

        The files handled by transverse services are taken into account by other statistic services.

        Parameters:
        componentId - the identifier of the current looked component instance.
        Returns:
        a long.