com.tivoli.jmx.jar
Class MLetManager

java.lang.Object
  |
  +--com.tivoli.jmx.jar.MLetManager

public class MLetManager
extends java.lang.Object
implements MLetManagerMBean

The MLetManager behaves in this way:

An Mlet is registered with the MBeanServer when a notification is received

An Mlet is deregistered with the MBeanServer when a notification is received

An Mlet is deregistered and registered with the MBeanServer when a notification is received

Version:
1.3
Author:
Eliseba Costantini, Max Parlione, Maurizio Simeoni

Field Summary
static java.lang.String DEPLOYMENT_DOMAIN
          Default domain
 
Constructor Summary
MLetManager()
          Creates an MLetManager with the default domain
MLetManager(java.lang.String domain)
          Creates an MLetManager with the specified domain
 
Method Summary
 java.lang.String getDomain()
          The domain used to register the mlets.
 boolean getPurge()
          Gets the purge flag.
 void handleNotification(javax.management.Notification notification, java.lang.Object handback)
          An Mlet is registered with the MBeanServer when a notification is received
 void postDeregister()
           
 void postRegister(java.lang.Boolean registrationDone)
           
 void preDeregister()
           
 javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name)
           
 void setPurge(boolean purge)
          Sets the purge flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEPLOYMENT_DOMAIN

public static final java.lang.String DEPLOYMENT_DOMAIN
Default domain
Constructor Detail

MLetManager

public MLetManager()
Creates an MLetManager with the default domain
Parameters:
domain -  

MLetManager

public MLetManager(java.lang.String domain)
Creates an MLetManager with the specified domain
Parameters:
domain -  
Method Detail

handleNotification

public void handleNotification(javax.management.Notification notification,
                               java.lang.Object handback)
An Mlet is registered with the MBeanServer when a notification is received

An Mlet is deregistered with the MBeanServer when a notification is received

An Mlet is deregistered and registered with the MBeanServer when a notification is received

Parameters:
notification - the timer notification
handback - ignored in thi implementation

getDomain

public java.lang.String getDomain()
The domain used to register the mlets.
Specified by:
getDomain in interface MLetManagerMBean
Parameters:
the - domain to be used

getPurge

public boolean getPurge()
Gets the purge flag. If the purge flag is true, then all the MLet registred from this MLetManager MBean will be deregistered during the deregistration phase.
Specified by:
getPurge in interface MLetManagerMBean
Tags copied from interface: MLetManagerMBean
Parameters:
the - domain to be used

setPurge

public void setPurge(boolean purge)
Sets the purge flag. If the purge flag is true, then all the MLet registred from this MLetManager MBean will be deregistered during the deregistration phase.
Specified by:
setPurge in interface MLetManagerMBean
Tags copied from interface: MLetManagerMBean
Parameters:
the - domain to be used

postDeregister

public void postDeregister()

preDeregister

public void preDeregister()

postRegister

public void postRegister(java.lang.Boolean registrationDone)

preRegister

public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
                                               javax.management.ObjectName name)
                                        throws java.lang.Exception