mx4j.server

Interface MBeanRepository

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
Objectclone()
Clones this MBean repository
MBeanMetaDataget(ObjectName name)
Returns the metadata information associated with the given object name.
Iteratoriterator()
Returns an iterator on the metadata stored in this repository.
voidput(ObjectName name, MBeanMetaData metadata)
Inserts the given metadata associated with the given object name into this repository.
voidremove(ObjectName name)
Removes the metadata associated with the given object name from this repository.
intsize()
Returns the size of this repository.

Method Detail

clone

public Object clone()
Clones this MBean repository

get

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

See Also: MBeanRepository

iterator

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

put

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

See Also: MBeanRepository

remove

public void remove(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-2005 The MX4J Contributors. All Rights Reserved.