01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.object;
06:
07: import com.tc.exception.ImplementMe;
08: import com.tc.object.dna.api.DNA;
09: import com.tc.object.session.SessionID;
10: import com.tc.util.concurrent.NoExceptionLinkedQueue;
11:
12: import java.util.Collection;
13: import java.util.Set;
14:
15: public class TestRemoteObjectManager implements RemoteObjectManager {
16:
17: public final NoExceptionLinkedQueue retrieveCalls = new NoExceptionLinkedQueue();
18: public final NoExceptionLinkedQueue retrieveResults = new NoExceptionLinkedQueue();
19:
20: public final NoExceptionLinkedQueue retrieveRootIDCalls = new NoExceptionLinkedQueue();
21: public final NoExceptionLinkedQueue retrieveRootIDResults = new NoExceptionLinkedQueue();
22:
23: public DNA retrieve(ObjectID id) {
24: retrieveCalls.put(id);
25: return (DNA) retrieveResults.take();
26: }
27:
28: public DNA retrieveWithParentContext(ObjectID id,
29: ObjectID parentContext) {
30: retrieveCalls.put(id);
31: return (DNA) retrieveResults.take();
32: }
33:
34: public ObjectID retrieveRootID(String name) {
35: retrieveRootIDCalls.put(name);
36: return (ObjectID) retrieveRootIDResults.take();
37: }
38:
39: public void addRoot(String name, ObjectID id) {
40: throw new ImplementMe();
41: }
42:
43: public void addAllObjects(SessionID sessionID, long batchID,
44: Collection dnas) {
45: throw new ImplementMe();
46: }
47:
48: public void addObject(SessionID sessionID, DNA dna) {
49: throw new ImplementMe();
50: }
51:
52: public void removed(ObjectID id) {
53: throw new ImplementMe();
54: }
55:
56: public void requestOutstanding() {
57: throw new ImplementMe();
58: }
59:
60: public void pause() {
61: throw new ImplementMe();
62:
63: }
64:
65: public void clear() {
66: return;
67: }
68:
69: public void unpause() {
70: throw new ImplementMe();
71:
72: }
73:
74: public void starting() {
75: throw new ImplementMe();
76: }
77:
78: public DNA retrieve(ObjectID id, int depth) {
79: throw new ImplementMe();
80: }
81:
82: public void objectsNotFoundFor(SessionID sessionID, long batchID,
83: Set missingObjectIDs) {
84: throw new ImplementMe();
85: }
86:
87: }
|