Class HealthCheckGeneral


  • public class HealthCheckGeneral
    extends Object
    • Field Detail

      • timeToLoadPrincipalBulkCache

        public static final AtomicLong timeToLoadPrincipalBulkCache
      • timeToLoadGroupBulkCache

        public static final AtomicLong timeToLoadGroupBulkCache
      • countProblemsOpenConnection

        public static final AtomicLong countProblemsOpenConnection
    • Constructor Detail

      • HealthCheckGeneral

        public HealthCheckGeneral()
    • Method Detail

      • checkMediaPublicFiles

        public void checkMediaPublicFiles()
                                   throws Exception
        Throws:
        Exception
      • checkDocumentPublicFiles

        public void checkDocumentPublicFiles()
                                      throws Exception
        Throws:
        Exception
      • checkRunningClocks

        public void checkRunningClocks()
                                throws Exception
        Throws:
        Exception
      • checkTenSecDurationClocks

        public void checkTenSecDurationClocks()
                                       throws Exception
        Throws:
        Exception
      • checkFileManagerConsistency

        public void checkFileManagerConsistency()
                                         throws Exception
        Throws:
        Exception
      • checkLostEntriesLRResource

        public void checkLostEntriesLRResource()
                                        throws Exception
        Throws:
        Exception
      • checkMySQLMaxAllowedPacket

        public void checkMySQLMaxAllowedPacket()
                                        throws Exception
        Throws:
        Exception
      • checkCacheEnableTemplates

        public void checkCacheEnableTemplates()
                                       throws Exception
        Throws:
        Exception
      • checkProductionEnvironment

        public void checkProductionEnvironment()
                                        throws Exception
        Throws:
        Exception
      • checkThemeDefinitionExists

        public void checkThemeDefinitionExists()
                                        throws Exception
        Throws:
        Exception
      • checkPortalCacheSize

        public void checkPortalCacheSize()
                                  throws Exception
        Throws:
        Exception
      • checkWebResourceRenderTime

        public void checkWebResourceRenderTime()
                                        throws Exception
        Throws:
        Exception
      • checkApacheReadStaticFileFromTomcat

        public void checkApacheReadStaticFileFromTomcat()
                                                 throws Exception
        Throws:
        Exception
      • checkInterfaceRenderXmlSize

        public void checkInterfaceRenderXmlSize()
                                         throws Exception
        Throws:
        Exception
      • checkDataBaseLatency

        public void checkDataBaseLatency()
                                  throws Exception
        Throws:
        Exception
      • checkDataBaseBenchmark

        public void checkDataBaseBenchmark()
                                    throws Exception
        Throws:
        Exception
      • checkCachedPageStatus

        public void checkCachedPageStatus()
                                   throws Exception
        Throws:
        Exception
      • checkLanguageConfiguration

        public void checkLanguageConfiguration()
                                        throws Exception
        Throws:
        Exception
      • getDatabaseTime

        protected Date getDatabaseTime()
      • checkTempFilesOnInstalledModules

        public void checkTempFilesOnInstalledModules()
                                              throws Exception
        Throws:
        Exception
      • checkWritingAndReadingTimeOnDisk

        public void checkWritingAndReadingTimeOnDisk()
                                              throws Exception
        Throws:
        Exception
      • writeFileOnDisk

        protected long writeFileOnDisk​(IFile file,
                                       byte[] input)
                                throws IOException
        Method to write a file with the given input array as the content.
        Parameters:
        file - the file.
        input - the input.
        Returns:
        the writing time spent in milliseconds.
        Throws:
        IOException
        Since:
        11.0.0
      • readFileOnDisk

        protected Tuple2<byte[],​Long> readFileOnDisk​(IFile file)
                                                    throws IOException
        Method to read a file from disk.
        Parameters:
        file - the file.
        Returns:
        a map with the file bytes and the reading time.
        Throws:
        IOException
        Since:
        11.0.0
      • checkProcessQueueForFailedItems

        public void checkProcessQueueForFailedItems()
                                             throws Exception
        Throws:
        Exception
      • checkBigDataRepositoryStatus

        public void checkBigDataRepositoryStatus()
                                          throws Exception
        Throws:
        Exception
      • checkInterfaceDataLoadedVsHTML

        public void checkInterfaceDataLoadedVsHTML()
                                            throws Exception
        Throws:
        Exception
      • getMostLowHtmlForBigXml

        protected List<Map<String,​Object>> getMostLowHtmlForBigXml()
        Returns the cases that interfaces instances has the minor usage XML Data in your HTML.
        Returns:
        a list with map that container interfaces instances, URL and ratio.
        Since:
        11.2.0
      • getSourceFieldValue

        public static Object getSourceFieldValue​(org.elasticsearch.search.SearchHit hit,
                                                 String... fieldPath)
        Get value of field path in elasticsearch document.
        Parameters:
        hit - a document hit from elasticsearch search.
        fieldPath - strings that compose a unique field path. For example, suppose that you have a field "user.name", the parameter will be "user" and "name".
        Returns:
        the field value.
        Since:
        11.2.0
      • checkSingleCopyFileLock

        public void checkSingleCopyFileLock()
                                     throws Throwable
        Throws:
        Throwable
      • checkWaitingTimeInProcessQueue

        public void checkWaitingTimeInProcessQueue()
                                            throws Throwable
        Throws:
        Throwable
      • checkTimeToLoadPrincipalBulkCache

        public void checkTimeToLoadPrincipalBulkCache()
                                               throws Throwable
        Throws:
        Throwable
      • checkTimeToLoadGroupBulkCache

        public void checkTimeToLoadGroupBulkCache()
                                           throws Throwable
        Throws:
        Throwable
      • checkCountProblemsOpenConnection

        public void checkCountProblemsOpenConnection()
                                              throws Throwable
        Throws:
        Throwable
      • checkWebResourcePathClash

        public void checkWebResourcePathClash()
                                       throws Throwable
        Throws:
        Throwable
      • checkRatioPoolSizeByWebThreads

        public void checkRatioPoolSizeByWebThreads()
                                            throws Throwable
        Throws:
        Throwable
      • checkFileDownloadControllerHtmlForPublicFilesAccess

        public void checkFileDownloadControllerHtmlForPublicFilesAccess()
                                                                 throws Throwable
        Throws:
        Throwable
      • checkMassivePageCacheCleaning

        public void checkMassivePageCacheCleaning()
                                           throws Throwable
        Throws:
        Throwable
      • checkSystemRequirements

        public void checkSystemRequirements()
                                     throws Throwable
        Throws:
        Throwable
      • checkCollectedUniqueIps

        public void checkCollectedUniqueIps()
                                     throws Throwable
        Throws:
        Throwable