com.ibm.websphere.pmi.stat

Class WSStatsHelper

  • java.lang.Object
    • com.ibm.websphere.pmi.stat.WSStatsHelper


  • public class WSStatsHelper
    extends java.lang.Object
    Stats helper class. This class helps to enable/disable textual information (name, description, and unit) in the Stats object. By default, textual information is enabled with default Locale.
    The Stats textual information is initialized in the client side. This initialization happens automatically when the Stats configuration files are located in the classpath.
    If the Stats configuration files are not in classpath then the client side should be initialized with the Stats configuration objects using initTextInfo method. The Stats configuration objects can be obtained from the server by invoking public PmiModuleConfig[] getConfigs(java.util.Locale locale) on the Perf MBean.
    • Constructor Summary

      Constructors 
      Constructor and Description
      WSStatsHelper() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static boolean getTextInfoEnabled()
      Returns true if textual information is enabled.
      static boolean getTextInfoTranslationEnabled()
      Returns true if textual information translation is enabled.
      static java.util.Locale getTextInfoTranslationLocale()
      Returns the Locale that is used for textual information translation.
      static void initTextInfo(PmiModuleConfig[] cfg, java.util.Locale locale)
      Initialize the client side with the Stats configuration objects.
      static void setTextInfoEnabled(boolean textInfoEnabled)
      This method is use to enable/disable the textual information in the Stats object.
      static void setTextInfoTranslationEnabled(boolean textInfoTranslationEnabled, java.util.Locale locale)
      This method allows translation of the textual information.
      • Methods inherited from class java.lang.Object

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

      • WSStatsHelper

        public WSStatsHelper()
    • Method Detail

      • initTextInfo

        public static void initTextInfo(PmiModuleConfig[] cfg,
                        java.util.Locale locale)
        Initialize the client side with the Stats configuration objects.
        Parameters:
        cfg - Stats configuration object from the server
        locale - Locale of the configuration
      • setTextInfoEnabled

        public static void setTextInfoEnabled(boolean textInfoEnabled)
        This method is use to enable/disable the textual information in the Stats object. By default textual information is enabled.
        Parameters:
        textInfoEnabled - enable/disable
      • setTextInfoTranslationEnabled

        public static void setTextInfoTranslationEnabled(boolean textInfoTranslationEnabled,
                                         java.util.Locale locale)
        This method allows translation of the textual information. By default translation is enabled using the default Locale.
        Parameters:
        textInfoTranslationEnabled - enable/disable
        locale - Locale to use for translation
      • getTextInfoEnabled

        public static boolean getTextInfoEnabled()
        Returns true if textual information is enabled.
        Returns:
        true - enabled; false - disabled
      • getTextInfoTranslationEnabled

        public static boolean getTextInfoTranslationEnabled()
        Returns true if textual information translation is enabled.
        Returns:
        true - enabled; false - disabled
      • getTextInfoTranslationLocale

        public static java.util.Locale getTextInfoTranslationLocale()
        Returns the Locale that is used for textual information translation.
        Returns:
        Locale used for translation
IBM WebSphere Application ServerTM
Release 8.5