Class DataHelper


  • public class DataHelper
    extends java.lang.Object
    Helper class that gets all the information shown by System Info service.
    Since:
    5.6.0
    Version:
    $Revision: 26230 $ $Date: 2024-02-15 17:22:32 -0300 (Thu, 15 Feb 2024) $
    • Constructor Summary

      Constructors 
      Constructor Description
      DataHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void appendDataInformation​(java.lang.StringBuilder sb, java.lang.String sourceTitle, java.util.Map<?,​?> dataMap)
      Appends the information in the map as a string in the string builder.
      static java.lang.String obtainAllInformationAsString​(HttpServletRequest request)
      Builds a string with all the information (database, environment, general info, etc).
      static java.util.Map<java.lang.String,​java.lang.String> obtainCachedPagesInformation()
      Returns a map with the cached pages information.
      static java.util.Map<java.lang.String,​java.lang.String> obtainClusterInformation()
      Returns a map with the platform cluster basic information.
      static java.util.Map<java.lang.String,​java.lang.String> obtainDatabaseInformation()
      Builds a map with the database information.
      static java.util.Map<java.lang.String,​java.lang.String> obtainElasticsearchInformation()
      Returns a map with elasticsearch repository information.
      static java.util.Map<java.lang.String,​java.lang.String> obtainEnvironmentData()
      Builds a map with the environment variables.
      static java.util.Map<java.lang.String,​java.lang.String> obtainGeneralInformation​(HttpServletRequest request)
      Builds a map with general information like date, user timezone, user locale, etc.
      static java.util.Map<java.lang.String,​java.lang.String> obtainMemoryUseInformation()
      Builds a map with memory use information.
      static java.util.Map<java.lang.String,​java.lang.String> obtainPageAccessInformation()
      Returns a map with the last month page access information.
      static java.util.Map<java.lang.String,​java.lang.String> obtainPageCacheCleanerInformation()
      Builds a map with the page cache cleaner information.
      static java.util.Map<java.lang.String,​java.lang.String> obtainPageCacheGeneratorProfileInformation()
      Returns a map with the lum_PCGeneratorProfile table information.
      static java.util.Map<java.lang.String,​java.lang.String> obtainPageCacheQueueInformation()
      Returns a map with the lum_PCQueue table information.
      static java.util.Map<java.lang.String,​java.lang.String> obtainPCGeneratorConfigInformation()
      Returns a map with the lum_PCGeneratorConfig table information.
      static java.util.Map<java.lang.String,​java.lang.String> obtainPortalInformation()
      Builds a map with the portal information.
      static java.util.Map<java.lang.String,​java.lang.String> obtainSystemProperties()
      Builds a map with the system properties.
      static java.util.Map<java.lang.String,​java.lang.String> obtainThreadInformation()
      Builds a map with the thread information.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataHelper

        public DataHelper()
    • Method Detail

      • obtainDatabaseInformation

        public static java.util.Map<java.lang.String,​java.lang.String> obtainDatabaseInformation()
        Builds a map with the database information.
        Returns:
        a map containing the database information.
        Since:
        5.6.0
      • obtainEnvironmentData

        public static java.util.Map<java.lang.String,​java.lang.String> obtainEnvironmentData()
        Builds a map with the environment variables.
        Returns:
        a map containing the environment variables.
        Since:
        5.6.0
      • obtainGeneralInformation

        public static java.util.Map<java.lang.String,​java.lang.String> obtainGeneralInformation​(HttpServletRequest request)
        Builds a map with general information like date, user timezone, user locale, etc.
        Returns:
        a map containing general information.
        Since:
        5.6.0
      • obtainMemoryUseInformation

        public static java.util.Map<java.lang.String,​java.lang.String> obtainMemoryUseInformation()
        Builds a map with memory use information.
        Returns:
        a map containing the memory use information.
        Since:
        5.6.0
      • obtainPageCacheCleanerInformation

        public static java.util.Map<java.lang.String,​java.lang.String> obtainPageCacheCleanerInformation()
        Builds a map with the page cache cleaner information.
        Returns:
        a map containing the page cache cleaner information.
        Since:
        5.6.0
      • obtainPortalInformation

        public static java.util.Map<java.lang.String,​java.lang.String> obtainPortalInformation()
        Builds a map with the portal information.
        Returns:
        a map containing the portal information.
        Since:
        5.6.0
      • obtainSystemProperties

        public static java.util.Map<java.lang.String,​java.lang.String> obtainSystemProperties()
        Builds a map with the system properties.
        Returns:
        a map containing the system properties.
        Since:
        5.6.0
      • obtainThreadInformation

        public static java.util.Map<java.lang.String,​java.lang.String> obtainThreadInformation()
        Builds a map with the thread information.
        Returns:
        a map containing the thread information.
        Since:
        5.6.0
      • obtainAllInformationAsString

        public static java.lang.String obtainAllInformationAsString​(HttpServletRequest request)
        Builds a string with all the information (database, environment, general info, etc).
        Returns:
        a string representation of all information.
        Since:
        5.6.0
      • obtainCachedPagesInformation

        public static java.util.Map<java.lang.String,​java.lang.String> obtainCachedPagesInformation()
        Returns a map with the cached pages information.
        Returns:
        a map with the cached pages information.
        Since:
        12.1.0
      • obtainElasticsearchInformation

        public static java.util.Map<java.lang.String,​java.lang.String> obtainElasticsearchInformation()
        Returns a map with elasticsearch repository information.
        Returns:
        a map with elasticsearch repository information.
        Since:
        12.1.0
      • obtainClusterInformation

        public static java.util.Map<java.lang.String,​java.lang.String> obtainClusterInformation()
        Returns a map with the platform cluster basic information.
        Returns:
        a map with the platform cluster basic information.
        Since:
        12.1.0
      • obtainPageAccessInformation

        public static java.util.Map<java.lang.String,​java.lang.String> obtainPageAccessInformation()
        Returns a map with the last month page access information.
        Returns:
        a map with the last month page access information.
        Since:
        12.1.0
      • obtainPageCacheQueueInformation

        public static java.util.Map<java.lang.String,​java.lang.String> obtainPageCacheQueueInformation()
        Returns a map with the lum_PCQueue table information.
        Returns:
        a map with the lum_PCQueue table information.
        Since:
        12.1.0
      • obtainPCGeneratorConfigInformation

        public static java.util.Map<java.lang.String,​java.lang.String> obtainPCGeneratorConfigInformation()
        Returns a map with the lum_PCGeneratorConfig table information.
        Returns:
        a map with the lum_PCGeneratorConfig table information.
        Since:
        12.1.0
      • obtainPageCacheGeneratorProfileInformation

        public static java.util.Map<java.lang.String,​java.lang.String> obtainPageCacheGeneratorProfileInformation()
        Returns a map with the lum_PCGeneratorProfile table information.
        Returns:
        a map with the lum_PCGeneratorProfile table information.
        Since:
        12.1.0
      • appendDataInformation

        public static void appendDataInformation​(java.lang.StringBuilder sb,
                                                 java.lang.String sourceTitle,
                                                 java.util.Map<?,​?> dataMap)
        Appends the information in the map as a string in the string builder.
        Parameters:
        sb - the instance of StringBuilder in which the map will be appended.
        sourceTitle - a title used to the information inside the map.
        dataMap - the map containing the information.
        Since:
        5.6.0