01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.objectserver.api;
05:
06: import com.tc.object.ObjectID;
07: import com.tc.objectserver.mgmt.ManagedObjectFacade;
08:
09: import java.util.Iterator;
10:
11: /**
12: * Management interface for ObjectManager
13: */
14: public interface ObjectManagerMBean {
15:
16: void addListener(ObjectManagerEventListener listener);
17:
18: Iterator getRoots();
19:
20: Iterator getRootNames();
21:
22: ObjectID lookupRootID(String 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)
35: throws NoSuchObjectException;
36:
37: }
|