mx4j.server

Interface MBeanRepository

All Superinterfaces:
Cloneable

public interface MBeanRepository
extends Cloneable

The MBeanServer implementation delegates to implementations of this interface the storage of registered MBeans.

All necessary synchronization code is taken care by the MBeanServer, so implementations can be coded without caring of synchronization issues.

Version:
$Revision: 1.6 $

Method Summary

Object
clone()
Clones this MBean repository
MBeanMetaData
get(javax.management.ObjectName name)
Returns the metadata information associated with the given object name.
Iterator
iterator()
Returns an iterator on the metadata stored in this repository.
void
put(javax.management.ObjectName name, MBeanMetaData metadata)
Inserts the given metadata associated with the given object name into this repository.
void
remove(javax.management.ObjectName name)
Removes the metadata associated with the given object name from this repository.
int
size()
Returns the size of this repository.

Method Details

clone

public Object clone()
Clones this MBean repository


get

public MBeanMetaData get(javax.management.ObjectName name)
Returns the metadata information associated with the given object name.

See Also:
put(ObjectName,MBeanMetaData)


iterator

public Iterator iterator()
Returns an iterator on the metadata stored in this repository.


put

public void put(javax.management.ObjectName name,
                MBeanMetaData metadata)
Inserts the given metadata associated with the given object name into this repository.

See Also:
get(ObjectName)


remove

public void remove(javax.management.ObjectName name)
Removes the metadata associated with the given object name from this repository.


size

public int size()
Returns the size of this repository.


Copyright © 2001-2003 MX4J Team. All Rights Reserved.