Package lumis.portal.healthmonitor
Class HealthCheckGeneral
- java.lang.Object
-
- lumis.portal.healthmonitor.HealthCheckGeneral
-
public class HealthCheckGeneral extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static AtomicLong
countProblemsOpenConnection
static AtomicLong
timeToLoadGroupBulkCache
static AtomicLong
timeToLoadPrincipalBulkCache
-
Constructor Summary
Constructors Constructor Description HealthCheckGeneral()
-
Method Summary
-
-
-
Field Detail
-
timeToLoadPrincipalBulkCache
public static final AtomicLong timeToLoadPrincipalBulkCache
-
timeToLoadGroupBulkCache
public static final AtomicLong timeToLoadGroupBulkCache
-
countProblemsOpenConnection
public static final AtomicLong countProblemsOpenConnection
-
-
Method Detail
-
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
-
checkWebResourceRenderTime
public void checkWebResourceRenderTime() throws Exception
- Throws:
Exception
-
checkApacheReadStaticFileFromTomcat
public void checkApacheReadStaticFileFromTomcat() throws Exception
- Throws:
Exception
-
checkInterfaceRenderXmlSize
public void checkInterfaceRenderXmlSize() throws Exception
- Throws:
Exception
-
checkLanguageConfiguration
public void checkLanguageConfiguration() throws Exception
- Throws:
Exception
-
getLumisServersTime
protected Map<String,Date> getLumisServersTime() throws HealthCheckException, PortalException
Returns the LumisXP servers time.- Returns:
- the LumisXP servers time.
- Throws:
HealthCheckException
PortalException
- Since:
- 11.0.0
-
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
-
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
-
-