Title: ALTRAN OUEST
Jeff Mesnil a écrit :
Hi,
How can we receive JMX notifications for
backend enable/disable events ?
We've made some tests using the SequoiaNotificationListener provided in
the examples but
even if we disable backend by hand (using the disable command in the
JMX console) or by really disabling the MySQL service,
we never receive any notification about these events.
Are we missing something ?
The example provided by SequoiaNotificationListener is out of date.
JMX notifications related to backend state changes are sent to
listeners registered with Backend's ObjectName and not VDB's
ObjectName.
Backend's ObjectName is
"sequoia:type=VirtualDataBase.Backend,VirtualDataBase={0},name={1}"
where 0 => vdb name
1 => backend name
The type of notification for backend state change is
AttributeChangeNotification[1] which contains both the previous and new
backend state value as defined in BackendState[2].
Hope it helps,
It helps, thanks.
But do you know if it's possible to query the list of backends attached
to a VirtualDatabase ?
jeff
--
[1]
http://java.sun.com/j2se/1.5.0/docs/api/javax/management/AttributeChangeNotification.html
[2] http://sequoia.continuent.org/doc/2.10/api/index.html
_______________________________________________
Sequoia mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/sequoia
--
Gérard
BUNEL
Chef
de Projet
____________________________________________________________________

Technopôle
Brest Iroise
Site du Vernis – CS 23866
29238
Brest Cedex 3
Tél : + 33 2 98 05 43 21
Fax : + 33 2 98 05 20 34
www.altran.com
|
_______________________________________________
Sequoia mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/sequoia