FileDocCategorySizeDatePackage
DottedNameRegistrar.javaAPI DocGlassfish v2 API4050Fri May 04 22:24:20 BST 2007com.sun.enterprise.admin.monitor.registry.spi

DottedNameRegistrar

public class DottedNameRegistrar extends Object
Mediates calls to the DottedNameRegistry to add or remove dottedName to Object Name maps.
author
Shreedhar Ganapathy

Fields Summary
final MBeanServer
server
final ObjectName
registryName
private static final Logger
logger
Constructors Summary
DottedNameRegistrar(MBeanServer server)
Creates a new instance of DottedNameRegistryMediator

	

	       
	  
		this.server=server;
		registryName = ObjectNames.getDottedNameMonitoringRegistryObjectName();
	
Methods Summary
voidregisterDottedName(java.lang.String dottedName, javax.management.ObjectName objectName)

		try{
			server.invoke(registryName, "add", 
				new Object[]{dottedName, objectName}, 
				new String[]{String.class.getName(), ObjectName.class.getName()});
		}
		catch(Exception e){
			logger.fine(e.getClass().getName()+":"+e.getLocalizedMessage());
		}	
	
voidunregisterDottedName(java.lang.String dottedName)

		try{
			server.invoke(registryName, "remove", 
				new Object[]{dottedName}, 
				new String[]{String.class.getName()});
		}
		catch(Exception e){
			logger.fine(e.getClass().getName()+":"+e.getLocalizedMessage());
		}