1 4 package com.tc.object; 5 6 import com.tc.exception.ImplementMe; 7 import com.tc.object.dna.api.DNA; 8 import com.tc.object.session.SessionID; 9 import com.tc.util.concurrent.NoExceptionLinkedQueue; 10 11 import java.util.Collection ; 12 13 public class TestRemoteObjectManager implements RemoteObjectManager { 14 15 public final NoExceptionLinkedQueue retrieveCalls = new NoExceptionLinkedQueue(); 16 public final NoExceptionLinkedQueue retrieveResults = new NoExceptionLinkedQueue(); 17 18 public final NoExceptionLinkedQueue retrieveRootIDCalls = new NoExceptionLinkedQueue(); 19 public final NoExceptionLinkedQueue retrieveRootIDResults = new NoExceptionLinkedQueue(); 20 21 public DNA retrieve(ObjectID id) { 22 retrieveCalls.put(id); 23 return (DNA) retrieveResults.take(); 24 } 25 26 public ObjectID retrieveRootID(String name) { 27 retrieveRootIDCalls.put(name); 28 return (ObjectID) retrieveRootIDResults.take(); 29 } 30 31 public void addRoot(String name, ObjectID id) { 32 throw new ImplementMe(); 33 } 34 35 public void addAllObjects(SessionID sessionID, long batchID, Collection dnas) { 36 throw new ImplementMe(); 37 } 38 39 public void addObject(SessionID sessionID, DNA dna) { 40 throw new ImplementMe(); 41 } 42 43 public void removed(ObjectID id) { 44 throw new ImplementMe(); 45 } 46 47 public void requestOutstanding() { 48 throw new ImplementMe(); 49 } 50 51 public void pause() { 52 throw new ImplementMe(); 53 54 } 55 56 public void clear() { 57 return; 58 } 59 60 public void unpause() { 61 throw new ImplementMe(); 62 63 } 64 65 public void starting() { 66 throw new ImplementMe(); 67 } 68 69 public DNA retrieve(ObjectID id, int depth) { 70 throw new ImplementMe(); 71 } 72 73 } 74 | Popular Tags |