KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > stats > DSORoot


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