org.apache.qpid.server.management
Interface ManagedObjectRegistry

All Superinterfaces:
org.apache.qpid.common.Closeable
All Known Implementing Classes:
JMXManagedObjectRegistry, NoopManagedObjectRegistry

public interface ManagedObjectRegistry
extends org.apache.qpid.common.Closeable

Handles the registration (and unregistration and so on) of managed objects. Managed objects are responsible for exposting attributes, operations and notifications. They will expose these outside the JVM therefore it is important not to use implementation objects directly as managed objects. Instead, creating inner classes and exposing those is an effective way of exposing internal state in a controlled way. Although we do not explictly use them while targetting Java 5, the enhanced MXBean approach in Java 6 will be the obvious choice for managed objects.


Method Summary
 void registerObject(ManagedObject managedObject)
           
 void start()
           
 void unregisterObject(ManagedObject managedObject)
           
 
Methods inherited from interface org.apache.qpid.common.Closeable
close
 

Method Detail

start

void start()
           throws IOException,
                  ConfigurationException
Throws:
IOException
ConfigurationException

registerObject

void registerObject(ManagedObject managedObject)
                    throws JMException
Throws:
JMException

unregisterObject

void unregisterObject(ManagedObject managedObject)
                      throws JMException
Throws:
JMException


Licensed to the Apache Software Foundation