org.kth.dks.dks_marshal
Class LookupMsg

java.lang.Object
  extended by org.kth.dks.dks_marshal.DKSMessage
      extended by org.kth.dks.dks_marshal.LookupMsg
All Implemented Interfaces:
ForwardedMsgInterface

public class LookupMsg
extends DKSMessage
implements ForwardedMsgInterface


Field Summary
 
Fields inherited from class org.kth.dks.dks_marshal.DKSMessage
ele, eleCnt, marshaler, messageMap, messageMapUnsync, pCount, xmsg
 
Constructor Summary
LookupMsg()
           
LookupMsg(long target, LookupType type, DKSRef source, DKSRef start, DKSObject payload, java.lang.String msgId, boolean intern)
           
LookupMsg(long target, LookupType type, DKSRef source, DKSRef start, java.lang.String msgId, boolean intern)
          Warning!
 
Method Summary
 boolean getInternal()
           
 long getIntervalStart()
           
 java.lang.String getMsgId()
           
 java.lang.String getName()
           
 DKSObject getPayload()
           
 DKSRef getSource()
           
 java.util.Vector getStack()
           
 long getTarget()
           
 LookupType getType()
           
 void marshal()
           
 void setIntervalStart(long s)
           
 void unmarshal()
           
 
Methods inherited from class org.kth.dks.dks_marshal.DKSMessage
addMessageType, addMessageTypePrefixed, flatten, getRecvRef, getSendRef, setRecvRef, setSendRef, unmarshal, unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupMsg

public LookupMsg()

LookupMsg

public LookupMsg(long target,
                 LookupType type,
                 DKSRef source,
                 DKSRef start,
                 java.lang.String msgId,
                 boolean intern)
Warning! No defensive copying done for performance reasons!

Parameters:
target - long target identifier to search for
start - start of the interval of the pointer followed
type - String currently either "ADDR" or "DATA"
stack - Vector of visited nodes
source - DKSRef originator
msgId - String request identifier

LookupMsg

public LookupMsg(long target,
                 LookupType type,
                 DKSRef source,
                 DKSRef start,
                 DKSObject payload,
                 java.lang.String msgId,
                 boolean intern)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in class DKSMessage

getType

public LookupType getType()

getStack

public java.util.Vector getStack()

getSource

public DKSRef getSource()

getMsgId

public java.lang.String getMsgId()

getPayload

public DKSObject getPayload()

getInternal

public boolean getInternal()

getTarget

public long getTarget()
Specified by:
getTarget in interface ForwardedMsgInterface

getIntervalStart

public long getIntervalStart()
Specified by:
getIntervalStart in interface ForwardedMsgInterface

setIntervalStart

public void setIntervalStart(long s)
Specified by:
setIntervalStart in interface ForwardedMsgInterface

marshal

public void marshal()
             throws java.io.IOException
Specified by:
marshal in class DKSMessage
Throws:
java.io.IOException

unmarshal

public void unmarshal()
               throws java.io.IOException
Specified by:
unmarshal in class DKSMessage
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.