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.stats;
05:
06: import com.tc.object.ObjectID;
07: import com.tc.objectserver.api.NoSuchObjectException;
08: import com.tc.objectserver.api.ObjectManagerMBean;
09: import com.tc.objectserver.mgmt.ManagedObjectFacade;
10:
11: public class DSORoot implements DSORootMBean {
12: private final ObjectID objectID;
13: private final String rootName;
14: private final ObjectManagerMBean objMgr;
15:
16: public DSORoot(ObjectID rootID, ObjectManagerMBean objMgr,
17: String name) {
18: this .objectID = rootID;
19: this .objMgr = objMgr;
20: this .rootName = name;
21: }
22:
23: public String getRootName() {
24: return this .rootName;
25: }
26:
27: public ManagedObjectFacade lookupFacade(int limit)
28: throws NoSuchObjectException {
29: return this.objMgr.lookupFacade(this.objectID, limit);
30: }
31:
32: }
|