KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > api > ObjectManagerMBean


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.objectserver.api;
5
6 import com.tc.object.ObjectID;
7 import com.tc.objectserver.mgmt.ManagedObjectFacade;
8
9 import java.util.Iterator JavaDoc;
10
11 /**
12  * Management interface for ObjectManager
13  */

14 public interface ObjectManagerMBean {
15
16   void addListener(ObjectManagerEventListener listener);
17
18   Iterator JavaDoc getRoots();
19
20   Iterator JavaDoc getRootNames();
21
22   ObjectID lookupRootID(String JavaDoc name);
23
24   GCStats[] getGarbageCollectorStats();
25
26   /**
27    * Returns a object facade instance. This call does not checkout the object, transactions can be applied to the
28    * underlying managed object whilst clients are holding the facade <br>
29    * <br>
30    * NOTE: Getting an object facade is both "unsafe" and expensive. They are unsafe in that no locking occurs, and
31    * expensive since there is a complete data copy. At the moment these facades are created to enable the root/object
32    * browser in the Admin tool (ie. low volume).
33    */

34   public ManagedObjectFacade lookupFacade(ObjectID id, int limit) throws NoSuchObjectException;
35
36 }
37
Popular Tags