public class WSStatsHelper
extends java.lang.Object
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 and Description |
---|
WSStatsHelper() |
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.
|
public static void initTextInfo(PmiModuleConfig[] cfg, java.util.Locale locale)
cfg
- Stats configuration object from the serverlocale
- Locale of the configurationpublic static void setTextInfoEnabled(boolean textInfoEnabled)
textInfoEnabled
- enable/disablepublic static void setTextInfoTranslationEnabled(boolean textInfoTranslationEnabled, java.util.Locale locale)
textInfoTranslationEnabled
- enable/disablelocale
- Locale to use for translationpublic static boolean getTextInfoEnabled()
public static boolean getTextInfoTranslationEnabled()
public static java.util.Locale getTextInfoTranslationLocale()