KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > server > MBeanRepository


1 /*
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 package mx4j.server;
10
11 import java.util.Iterator JavaDoc;
12 import javax.management.ObjectName JavaDoc;
13
14 /**
15  * The MBeanServer implementation delegates to implementations of this interface the storage of registered MBeans. <p>
16  * All necessary synchronization code is taken care by the MBeanServer, so implementations can be coded without caring
17  * of synchronization issues.
18  *
19  * @version $Revision: 1.6 $
20  */

21 public interface MBeanRepository extends Cloneable JavaDoc
22 {
23    /**
24     * Returns the metadata information associated with the given object name.
25     *
26     * @see #put
27     */

28    public MBeanMetaData get(ObjectName JavaDoc name);
29
30    /**
31     * Inserts the given metadata associated with the given object name into this repository.
32     *
33     * @see #get
34     */

35    public void put(ObjectName JavaDoc name, MBeanMetaData metadata);
36
37    /**
38     * Removes the metadata associated with the given object name from this repository.
39     */

40    public void remove(ObjectName JavaDoc name);
41
42    /**
43     * Returns the size of this repository.
44     */

45    public int size();
46
47    /**
48     * Returns an iterator on the metadata stored in this repository.
49     */

50    public Iterator JavaDoc iterator();
51
52    /**
53     * Clones this MBean repository
54     */

55    public Object JavaDoc clone();
56 }
57
Popular Tags