com.sun.grizzly.http
Interface Management


public interface Management

Simple interface used as a wrapper to a JMX management implementation. Below is an example of such implementation based on Apache Commons Modeler.


 
    public class CommonsModelerManagement implements Management{

        public void registerComponent(Object bean, ObjectName oname, String type) 
                throws Exception{
            Registry.getRegistry().registerComponent(bean,oname,type);
        }

        public void unregisterComponent(ObjectName oname) throws Exception{
            Registry.getRegistry().
                    unregisterComponent(oname);
        }     
    }
 
 

Author:
Jeanfrancois Arcand

Method Summary
 void registerComponent(Object bean, ObjectName oname, String type)
          Register a bean by creating a modeler mbean and adding it to the MBeanServer.
 void unregisterComponent(ObjectName oname)
          Unregister a component.
 

Method Detail

registerComponent

void registerComponent(Object bean,
                       ObjectName oname,
                       String type)
                       throws Exception
Register a bean by creating a modeler mbean and adding it to the MBeanServer.

Parameters:
bean - The Object you want to register. Most of the time you should register at least the SelectorThread.
oname - The ObjectName you want to use.
type - The type, or null if not specified.
Throws:
Exception

unregisterComponent

void unregisterComponent(ObjectName oname)
                         throws Exception
Unregister a component.

Throws:
Exception


Copyright © 2012 Oracle Corporation. All Rights Reserved.