lumis.service.portalmanagement.systeminfo
Class DataHelper

Package class diagram package DataHelper
java.lang.Object
  extended by lumis.service.portalmanagement.systeminfo.DataHelper

public class DataHelper
extends Object

Helper class that gets all the information shown by System Info service.

Since:
5.6.0

Constructor Summary
DataHelper()
           
 
Method Summary
static void appendDataInformation(StringBuilder sb, String sourceTitle, Map<?,?> dataMap)
          Appends the information in the map as a string in the string builder.
static String obtainAllInformationAsString()
          Builds a string with all the information (database, environment, general info, etc).
static Map<String,String> obtainDatabaseInformation()
          Builds a map with the database information.
static Map<String,String> obtainEnvironmentData()
          Builds a map with the environment variables.
static Map<String,String> obtainGeneralInformation()
          Builds a map with general information like date, user timezone, user locale, etc.
static Map<String,String> obtainMemoryUseInformation()
          Builds a map with memory use information.
static Map<String,String> obtainPageCacheInformation()
          Builds a map with the page cache information.
static Map<String,String> obtainPortalInformation()
          Builds a map with the portal information.
static Map<String,String> obtainSystemProperties()
          Builds a map with the system properties.
static Map<String,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 Map<String,String> obtainDatabaseInformation()
Builds a map with the database information.

Returns:
a map containing the database information.
Since:
5.6.0

obtainEnvironmentData

public static Map<String,String> obtainEnvironmentData()
Builds a map with the environment variables.

Returns:
a map containing the environment variables.
Since:
5.6.0

obtainGeneralInformation

public static Map<String,String> obtainGeneralInformation()
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 Map<String,String> obtainMemoryUseInformation()
Builds a map with memory use information.

Returns:
a map containing the memory use information.
Since:
5.6.0

obtainPageCacheInformation

public static Map<String,String> obtainPageCacheInformation()
Builds a map with the page cache information.

Returns:
a map containing the page cache information.
Since:
5.6.0

obtainPortalInformation

public static Map<String,String> obtainPortalInformation()
Builds a map with the portal information.

Returns:
a map containing the portal information.
Since:
5.6.0

obtainSystemProperties

public static Map<String,String> obtainSystemProperties()
Builds a map with the system properties.

Returns:
a map containing the system properties.
Since:
5.6.0

obtainThreadInformation

public static Map<String,String> obtainThreadInformation()
Builds a map with the thread information.

Returns:
a map containing the thread information.
Since:
5.6.0

obtainAllInformationAsString

public static String obtainAllInformationAsString()
Builds a string with all the information (database, environment, general info, etc).

Returns:
a string representation of all information.
Since:
5.6.0

appendDataInformation

public static void appendDataInformation(StringBuilder sb,
                                         String sourceTitle,
                                         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


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.