This topic describes how to extend the IBM Director Resource Monitor Server to support enumerated string data.
The IBM Director Resource Monitor Server supports the concept of enumerated string data points. When a string value is received, the server will attempt to resolve the string to a locale specific version based off of the requesting Monitor Console. If the requested locale cannot be loaded, then the best available locale will be used. If the enumerated property files do not exist, then the string will be displayed as-is.
A Monitor Extension can have server defined properties. This "property" file resides
in the \Program Files\IBM\Director\data
subdirectory and has the filename format of:
<monitor extension filename>.properties
One of the available properties allows the Monitor Extension provider a way to map attribute node strings, such as OFFLINE and ON_LINE, to friendlier NLS values. An example of such a file can be found in the Monitor Agent sample code: samples\monagent\com\monsdk.properties
A string attribute can be mapped to different user friendly values for each
language provided by the Monitor Extension provider, by a reseller or by a
local system administrator by providing one or more enumeration files.
These "enumeration" file(s) must reside in the \Program Files\IBM\Director\classes
subdirectory or in another directory that is specified in the CLASSPATH
for
the IBM Director Server.
When a string value is received by the Monitor Server and the attribute is defined as supporting enumerated strings by the Extension Property File, then the server will attempt to map the string to the Monitor Console's locale using the provided Enumeration File(s).
Examples of English-US enumeration files can be found in the Monitor Agent sample code: samples\javasrc\com\BobCo\monagent\monsdk_enums_month_en_US.properties samples\javasrc\com\BobCo\monagent\monsdk_enums_weekday_en_US.properties