SAN secondary states are created using
IltSAN.NewSecState
, as follows:
IltSAN.SecState state =
IltSAN.NewSecState("SAN.SecState.CPUUtilization","Measures the CPU use
rate");
NewSecState takes two arguments. The first
one is a name that identifies the new SAN state in the
application. The name must comply with the rule
SAN.SecState.<value>
. For example, when a new state is created with name
SAN.SecState.CPUUtilization
, it is referred to in XML files in the following way:
<SAN state="CPUUtilization">78</SAN>
The second argument is a description. This description is used as
a tooltip to display more information about the SAN state
represented in a business object. To activate the tooltip support
for secondary states, see
Customizing tooltips.
NewSecState returns an instance of
IltSAN.SecState, that you can use in
exactly the same way as the predefined SAN secondary states.