001: /*
002: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
003: * notice. All rights reserved.
004: */
005: package com.tc.object;
006:
007: import com.tc.async.api.EventContext;
008: import com.tc.net.groups.ClientID;
009: import com.tc.net.protocol.tcm.ChannelID;
010: import com.tc.net.protocol.tcm.MessageChannel;
011: import com.tc.net.protocol.tcm.TCMessageType;
012: import com.tc.object.msg.RequestManagedObjectMessage;
013:
014: import java.util.Set;
015:
016: public class TestRequestManagedObjectMessage implements
017: RequestManagedObjectMessage, EventContext {
018:
019: private ObjectRequestID requestID;
020: private Set removed;
021: private MessageChannel channel;
022: private Set objectIDs;
023:
024: public TestRequestManagedObjectMessage() {
025: super ();
026: }
027:
028: public ObjectRequestID getRequestID() {
029: return this .requestID;
030: }
031:
032: public Set getObjectIDs() {
033: return this .objectIDs;
034: }
035:
036: public void setObjectIDs(Set IDs) {
037: this .objectIDs = IDs;
038: }
039:
040: public Set getRemoved() {
041: return this .removed;
042: }
043:
044: public void setRemoved(Set rm) {
045: this .removed = rm;
046: }
047:
048: public void initialize(ObjectRequestContext ctxt, Set oids,
049: Set removedIDs) {
050: //
051: }
052:
053: public int getCorrelationId(boolean initialize) {
054: return 0;
055: }
056:
057: public void setCorrelationId(int id) {
058: //
059: }
060:
061: public TCMessageType getMessageType() {
062: return null;
063: }
064:
065: public void hydrate() {
066: //
067: }
068:
069: public void dehydrate() {
070: //
071: }
072:
073: public void send() {
074: //
075: }
076:
077: public MessageChannel getChannel() {
078: return this .channel;
079: }
080:
081: public ClientID getClientID() {
082: return new ClientID(new ChannelID(0));
083: }
084:
085: public int getTotalLength() {
086: return 0;
087: }
088:
089: public int getRequestDepth() {
090: return 400;
091: }
092:
093: public void recycle() {
094: return;
095: }
096:
097: public String getRequestingThreadName() {
098: return "TestThreadDummy";
099: }
100: }
|