You can have JViews
TGO compute the alarm counters for some managed objects, and the
back end compute the counters for the other managed objects. You
can also switch from one computation model to the other for a
given managed object.
Note
The concurrent use of the two models on the same managed object
would result in inconsistent and inaccurate counters. Use
IltAlarm.State.setComputedFromAlarmList
to switch between the two modes. When the alarm counters are
computed from the associated list of alarms, attempts to change
the alarm counters directly with the alarm state APIs would
trigger an
IllegalStateException
. Instead, update the associated
IltAlarm
objects.
How to switch from alarm counters
computed by the back end to alarm counters computed by
JViews TGO
Unsubscribe
to the notification of alarm counter changes by the back
end.
Disable the automatic alarm counter computation of the alarm
state using the method
IltAlarm.State.setComputedFromAlarmList
. This will reset the counters to zero.
Retrieve the list of alarms for the managed object and
create the corresponding
IltAlarm objects. In the
IltAlarm
, set the
ManagedObjectInstanceAttribute
value to the object identifier of the managed object.
Add the
IltAlarm
objects in the same data source as the
IltObject corresponding to the managed
object.
Subscribe
to alarm list change notifications by the back end.
Add, remove or update
IltAlarm
objects according to the back-end notifications.
How to switch from alarm counters
computed by JViews TGO to alarm counters computed by the back
end
Unsubscribe
to the notification of alarm list changes by the back end.
Remove
from the data source all the alarms related to the managed
object.
Enable the automatic alarm counter computation of the alarm
state using the method
IltAlarm.State.setComputedFromAlarmList
. This will reset the counters to zero
Retrieve
the counters from the back end and set the values in the
alarm state.
Subscribe
to the notification of alarm counter changes by the back
end.
Update
the alarm counters in the alarm state according to the
back-end notifications.