1 4 package com.tc.objectserver.core.impl; 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.objectserver.core.api.Filter; 10 import com.tc.objectserver.core.api.GarbageCollector; 11 import com.tc.text.PrettyPrinter; 12 import com.tc.util.concurrent.LifeCycleState; 13 import com.tc.util.concurrent.StoppableThread; 14 15 import java.util.Collection ; 16 import java.util.Collections ; 17 import java.util.Set ; 18 19 public class NullGarbageCollector implements GarbageCollector { 20 21 public Set collect(Filter filter, Collection roots, Set managedObjectIds) { 22 return Collections.EMPTY_SET; 23 } 24 25 public Set collect(Filter filter, Collection roots, Set managedObjectIds, LifeCycleState state) { 26 return Collections.EMPTY_SET; 27 } 28 29 public boolean isPausingOrPaused() { 30 return false; 31 } 32 33 public boolean isPaused() { 34 return false; 35 } 36 37 public void notifyReadyToGC() { 38 return; 39 } 40 41 public void blockUntilReadyToGC() { 42 return; 43 } 44 45 public void requestGCPause() { 46 return; 47 } 48 49 public void notifyGCComplete() { 50 return; 51 } 52 53 public PrettyPrinter prettyPrint(PrettyPrinter out) { 54 return out.print(getClass().getName()); 55 } 56 57 public void changed(ObjectID changedObject, ObjectID oldReference, ObjectID newReference) { 58 } 60 61 public void gc() { 62 } 64 65 public void addNewReferencesTo(Set rescueIds) { 66 } 68 69 public void start() { 70 } 72 73 public void stop() { 74 } 76 77 public void setState(StoppableThread st) { 78 } 80 81 public void addListener(ObjectManagerEventListener listener) { 82 } 84 85 public GCStats[] getGarbageCollectorStats() { 86 return null; 87 } 88 89 } | Popular Tags |