1 5 package com.tc.objectserver.api; 6 7 import com.tc.net.protocol.tcm.ChannelID; 8 import com.tc.object.ObjectID; 9 import com.tc.objectserver.context.ObjectManagerResultsContext; 10 import com.tc.objectserver.core.api.GarbageCollector; 11 import com.tc.objectserver.core.api.ManagedObject; 12 import com.tc.objectserver.persistence.api.PersistenceTransaction; 13 import com.tc.text.PrettyPrintable; 14 import com.tc.util.SyncObjectIdSet; 15 16 import java.util.Collection ; 17 import java.util.Iterator ; 18 import java.util.List ; 19 import java.util.Map ; 20 import java.util.Set ; 21 22 27 public interface ObjectManager extends ManagedObjectProvider, PrettyPrintable { 28 29 public void stop(); 30 31 36 public void release(PersistenceTransaction tx, ManagedObject object); 37 38 41 public void releaseAll(Collection objects); 42 43 46 public void releaseReadOnly(ManagedObject object); 47 48 53 public void releaseAll(PersistenceTransaction tx, Collection collection); 54 55 65 public boolean lookupObjectsAndSubObjectsFor(ChannelID channelID, ObjectManagerResultsContext responseContext, 66 int maxCount); 67 68 77 public boolean lookupObjectsForCreateIfNecessary(ChannelID channelID, ObjectManagerResultsContext context); 78 79 84 public Iterator getRoots(); 85 86 public Map getRootNamesToIDsMap(); 87 88 public void createRoot(String name, ObjectID id); 89 90 public ObjectID lookupRootID(String name); 91 92 public void setGarbageCollector(GarbageCollector gc); 93 94 97 public void waitUntilReadyToGC(); 98 99 104 public void notifyGCComplete(Set toDelete); 105 106 public void setStatsListener(ObjectManagerStatsListener listener); 107 108 public void start(); 109 110 public void dump(); 111 112 public int getCheckedOutCount(); 113 114 public Set getRootIDs(); 115 116 public SyncObjectIdSet getAllObjectIDs(); 117 118 public void addFaultedObject(ObjectID oid, ManagedObject mo, boolean removeOnRelease); 119 120 public void flushAndEvict(List objects2Flush); 122 123 } 124 | Popular Tags |