1 4 package com.tc.objectserver.core.api; 5 6 import com.tc.object.ObjectID; 7 import com.tc.objectserver.api.GCStats; 8 import com.tc.objectserver.api.ObjectManagerEventListener; 9 import com.tc.text.PrettyPrintable; 10 import com.tc.util.concurrent.LifeCycleState; 11 import com.tc.util.concurrent.StoppableThread; 12 13 import java.util.Collection ; 14 import java.util.Set ; 15 16 public interface GarbageCollector extends PrettyPrintable { 17 18 public boolean isPausingOrPaused(); 19 20 public boolean isPaused(); 21 22 25 public void notifyReadyToGC(); 26 27 30 public void requestGCPause(); 31 32 35 public void notifyGCComplete(); 36 37 43 public Set collect(Filter traverser, Collection roots, Set managedObjectIds); 44 45 public Set collect(Filter traverser, Collection roots, Set managedObjectIds, LifeCycleState state); 46 47 public void changed(ObjectID changedObject, ObjectID oldReference, ObjectID newReference); 48 49 public void gc(); 50 51 public void addNewReferencesTo(Set rescueIds); 52 53 public void start(); 54 55 public void stop(); 56 57 public void setState(StoppableThread st); 58 59 public void addListener(ObjectManagerEventListener listener); 60 61 public GCStats[] getGarbageCollectorStats(); 62 } | Popular Tags |