lime
Class RemoteUponOpDescriptor

java.lang.Object
  extended bylime.OpDescriptor
      extended bylime.RemoteOpDescriptor
          extended bylime.TSOpDescriptor
              extended bylime.RemoteUponOpDescriptor
All Implemented Interfaces:
java.io.Serializable

class RemoteUponOpDescriptor
extends TSOpDescriptor


Field Summary
(package private)  LimeServerID dest
          Where the message is destined.
(package private)  boolean isGroupCast
          Is this message a group cast?
(package private)  AgentID opDestAgent
          The destination agent (or null if host).
(package private)  AgentID opSourceAgent
          The source agent (or null if host).
(package private)  LimeServerID source
          The ID of the LimeServer on which this descriptor was created.
(package private)  AgentID sourceAgent
           
(package private)  java.lang.String tsName
           
(package private)  short type
          The type of the operation.
(package private)  UponProbeDescriptor upd
           
 
Constructor Summary
(package private) RemoteUponOpDescriptor(LimeServerID dest, short type, lights.interfaces.ITuple template, short mode, java.lang.String tsName, long seqNum, AgentID sourceAgent)
          'UponOpDescriptor' Because remote operations have extra information that needs to be kept (such as the name of the tuple space the return value is destined for, and the sequence number for access into the ReplyTuples structure.
(package private) RemoteUponOpDescriptor(short type, lights.interfaces.ITuple template, short mode, java.lang.String tsName, long seqNum, AgentID sourceAgent)
          'UponOpDescriptor' Because remote operations have extra information that needs to be kept (such as the name of the tuple space the return value is destined for, and the sequence number for access into the ReplyTuples structure.
 
Method Summary
(package private)  AgentID getIncomingOpDestAgent()
           
(package private)  AgentID getIncomingOpSourceAgent()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

upd

UponProbeDescriptor upd

tsName

java.lang.String tsName

sourceAgent

AgentID sourceAgent

source

LimeServerID source
The ID of the LimeServer on which this descriptor was created. It is automatically initialized by the constructor.


dest

transient LimeServerID dest
Where the message is destined.


opSourceAgent

transient AgentID opSourceAgent
The source agent (or null if host).


opDestAgent

transient AgentID opDestAgent
The destination agent (or null if host).


isGroupCast

transient boolean isGroupCast
Is this message a group cast?


type

short type
The type of the operation.

Constructor Detail

RemoteUponOpDescriptor

RemoteUponOpDescriptor(short type,
                       lights.interfaces.ITuple template,
                       short mode,
                       java.lang.String tsName,
                       long seqNum,
                       AgentID sourceAgent)
'UponOpDescriptor' Because remote operations have extra information that needs to be kept (such as the name of the tuple space the return value is destined for, and the sequence number for access into the ReplyTuples structure. The payload the array of tuples for remote installation of upons. To calculate the sequence number associated with each upon, the offset is calculated from the specified sequence number and the position in the payload tuple array. Each upon also has a mode which can be retrieved at the same location in the modes vector as the template in the templates vector. In other words modes[i] ius the mode for template[i].

Parameters:
type - operation type: any remote operation.
template - an array of tuples
tsName - the named tuple space that requested the operation
seqNum - the reference into the PendingUpon data structure.
sourceAgent - the agent that requested the operation.

RemoteUponOpDescriptor

RemoteUponOpDescriptor(LimeServerID dest,
                       short type,
                       lights.interfaces.ITuple template,
                       short mode,
                       java.lang.String tsName,
                       long seqNum,
                       AgentID sourceAgent)
'UponOpDescriptor' Because remote operations have extra information that needs to be kept (such as the name of the tuple space the return value is destined for, and the sequence number for access into the ReplyTuples structure. The payload is the template for remote installation of an upons. The upon also has a mode and sequence number.

Parameters:
dest - the destination of the operation
type - operation type: any remote operation.
template - a tuple template
mode - a mode (ONCE, ONCEPERTUPLE)
tsName - the named tuple space that requested the operation
seqNum - the reference into the PendingUpon data structure.
sourceAgent - the agent that requested the operation.
Method Detail

toString

public java.lang.String toString()

getIncomingOpSourceAgent

AgentID getIncomingOpSourceAgent()

getIncomingOpDestAgent

AgentID getIncomingOpDestAgent()