| A cluster parition membership monitor. It can be used to view how
the nodes in a cluster are seeing the topology change using either email or
a centralized log server.
To use this to send email on change notifications use the following log4j.xml
fragments:
You can also have this service notify another MBean of the change to perform
arbitrary checks by specifying the MBean name as the TriggerServiceName
attribute value. This MBean must have an operation with the following
signature:
param: removed ArrayList of nodes that were removed
param: added ArrayList of nodes that were added
param: members ArrayList of nodes currently in the cluster
param: logCategoryName the log4j category name used by the
TopologyMonitorService. This should be used for logging to integrate with
the TopologyMonitorService output.
public void membershipChanged(ArrayList deadMembers, ArrayList newMembers,
ArrayList allMembers, String logCategoryName)
author: Scott.Stark@jboss.org version: $Revision: 57188 $ |