public class IltPerformance extends Object
This class provides the state system used to model generic secondary states concerning performance. Any numeric value can be modeled and represented using this state system.
Any secondary state in IltPerformance
can be used in any other
state system.
Some generic secondary states are defined in the class
IltPerformance.SecState
and have a default graphic
representation.
New performance secondary states can be created using the method
IltPerformance.NewSecState
, for instance:
IltPerformance.SecState state = IltPerformance.NewSecState("Performance.SecState.ResponseTime", "Measures the ellapsed time between a request and response operations.");
In order to have this state represented in the object graphic representation,
you need to associate it with a configuration so that it can be represented
as a gauge, a chart or a counter. This configuration is defined through the
method IltSettings.SetValue
, as follows:
IltSettings.SetValue("Performance.SecState.ResponseTime.Gauge", new IltGaugeMapping(image1, image2)); IltSettings.SetValue("Performance.SecState.ResponseTime.Chart", new IltChartMapping(chart1, chart2)); IltSettings.SetValue("Performance.SecState.ResponseTime.Counter", new IltCounterMapping()); IltSettings.SetValue("Performance.SecState.ResponseTime.Type", IltDecorationType.Gauge);
You can also use these methods to modify the configuration for an existing state, for example:
IltSettings.SetValue("Performance.SecState.Input.Type", IltDecorationType.Chart);
Modifier and Type | Class and Description |
---|---|
static class |
IltPerformance.SecState
Any secondary state in the
IltPerformance state system
is an instance of this class. |
Modifier | Constructor and Description |
---|---|
protected |
IltPerformance() |
Modifier and Type | Method and Description |
---|---|
static void |
ForceInit(ilog.tgo.util.internal.IltForceClassInit object)
For IltSystem.Init
|
static IltPerformance.SecState |
NewSecState(String name,
String desc)
Creates a new instance of
IltPerformance.SecState . |
static IltStateSystem |
StateSystem()
Returns the only instance of IltPerformance state system.
|
public static IltStateSystem StateSystem()
public static IltPerformance.SecState NewSecState(String name, String desc)
Creates a new instance of IltPerformance.SecState
.
Once created, this instance can be associated with a graphic
representation. A performance state can be represented by a
a gauge, a chart or a counter using the appropriate mapping.
This configuration is defined through the method
IltSettings.SetValue
,
as follows:
IltPerformance.SecState state = IltPerformance.NewSecState("Performance.SecState.ResponseTime", "Measures the ellapsed time between a request and response operations."); IltSettings.SetValue("Performance.SecState.ResponseTime.Gauge", new IltGaugeMapping(image1, image2)); IltSettings.SetValue("Performance.SecState.ResponseTime.Chart", new IltChartMapping(chart1, chart2)); IltSettings.SetValue("Performance.SecState.ResponseTime.Counter", new IltCounterMapping()); IltSettings.SetValue("Performance.SecState.ResponseTime.Type", IltDecorationType.Gauge);
IltPerformance.SecState
.IltSettings.SetValue(java.lang.Object, java.lang.Object)
,
IltObjectState.set(IltState, Object)
public static void ForceInit(ilog.tgo.util.internal.IltForceClassInit object)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.