|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.pmi.stat.WSStatsHelper
public class WSStatsHelper
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 | |
---|---|
WSStatsHelper()
|
Method Summary | |
---|---|
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 |
---|
public WSStatsHelper()
Method Detail |
---|
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()
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |