TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.execution.util.internal
Interface IMessage

All Known Subinterfaces:
IControlMessage
All Known Implementing Classes:
ControlMessage, Message

public interface IMessage

IMessage interface - Represents the Message Header of the message protocol between and Client and Agent Controller or Agent Controller and Agent.

See Also:
Message

Method Summary
 int getSize()
          Get the Size of the Message
 long getTicket()
          Get the Ticket
 long getType()
          Get the Message Type - Old RAC or New AC Message
 long getVersion()
          Get Version
 int readFromBuffer(byte[] buffer, int offset)
          Read the message header from the input buffer
 void setTicket(long ticket)
          Set the Ticket
 void setVersion(long version)
          Set Version Number
 int writeToBuffer(byte[] buffer, int offset)
          Write the message header to the input buffer
 

Method Detail

getSize

int getSize()
Get the Size of the Message


getTicket

long getTicket()
Get the Ticket


getType

long getType()
Get the Message Type - Old RAC or New AC Message


getVersion

long getVersion()
Get Version


setTicket

void setTicket(long ticket)
Set the Ticket


setVersion

void setVersion(long version)
Set Version Number


readFromBuffer

int readFromBuffer(byte[] buffer,
                   int offset)
Read the message header from the input buffer


writeToBuffer

int writeToBuffer(byte[] buffer,
                  int offset)
Write the message header to the input buffer


TPTP 4.5.0 Platform Project
Internal API Specification