1 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 rootName; 14 private final ObjectManagerMBean objMgr; 15 16 public DSORoot(ObjectID rootID, ObjectManagerMBean objMgr, String name) { 17 this.objectID = rootID; 18 this.objMgr = objMgr; 19 this.rootName = name; 20 } 21 22 public String 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 |