|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.ha.framework.server.util.TopologyMonitorService
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:
param: removed ArrayListof 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)
Nested Class Summary | |
static class |
TopologyMonitorService.AddressPort (src)
|
Field Summary |
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
TopologyMonitorService()
|
Method Summary | |
java.util.Vector |
getClusterNodes()
Get the current cluster parition membership info |
java.lang.String |
getPartitionName()
Get the cluster parition name the mbean is monitoring |
ObjectName (src) |
getTriggerServiceName()
Get the trigger mbean to notify on cluster membership changes |
void |
membershipChanged(java.util.Vector deadMembers,
java.util.Vector newMembers,
java.util.Vector allMembers)
Called when a new partition topology occurs. |
void |
setPartitionName(java.lang.String name)
Set the cluster parition name the mbean is monitoring |
void |
setTriggerServiceName(ObjectName (src) triggerServiceName)
Set the trigger mbean to notify on cluster membership changes |
protected void |
startService()
Sub-classes should override this method to provide custum 'start' logic. |
protected void |
stopService()
Sub-classes should override this method to provide custum 'stop' logic. |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.ServiceMBean (src) |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service (src) |
create, destroy, start, stop |
Constructor Detail |
public TopologyMonitorService()
Method Detail |
protected void startService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
startService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void stopService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
stopService
in class ServiceMBeanSupport (src)
java.lang.Exception
public java.lang.String getPartitionName()
TopologyMonitorServiceMBean (src)
getPartitionName
in interface TopologyMonitorServiceMBean (src)
public void setPartitionName(java.lang.String name)
TopologyMonitorServiceMBean (src)
setPartitionName
in interface TopologyMonitorServiceMBean (src)
public ObjectName (src) getTriggerServiceName()
TopologyMonitorServiceMBean (src)
getTriggerServiceName
in interface TopologyMonitorServiceMBean (src)
public void setTriggerServiceName(ObjectName (src) triggerServiceName)
TopologyMonitorServiceMBean (src)
setTriggerServiceName
in interface TopologyMonitorServiceMBean (src)
public java.util.Vector getClusterNodes()
TopologyMonitorServiceMBean (src)
getClusterNodes
in interface TopologyMonitorServiceMBean (src)
public void membershipChanged(java.util.Vector deadMembers, java.util.Vector newMembers, java.util.Vector allMembers)
membershipChanged
in interface HAPartition.HAMembershipListener (src)
deadMembers
- A list of nodes that have died since the previous viewnewMembers
- A list of nodes that have joined the partition since
the previous viewallMembers
- A list of nodes that built the current view
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |