public class MessageHeader
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ADD_REF_CALL |
static int |
BIND_STATUS_CALL |
static int |
DEC_REF_CALL |
static int |
EXCEPTION |
static int |
GET_ENCODING_CALL |
static int |
HEADER_LENGTH |
static int |
KILL_ALL |
static int |
OBJECT_ALIVE_CALL |
static int |
REQUEST |
static int |
RESPONSE |
| Constructor and Description |
|---|
MessageHeader()
Initialize a new message header for sending a response
|
MessageHeader(int exceptionCode)
Initialize a new message header for sending an exception
|
MessageHeader(int classId,
int methodId,
int semantics)
Initialize a new message header with parameters
|
| Modifier and Type | Method and Description |
|---|---|
int |
getClassId()
Get the class identifier stored in this message header
|
int |
getConnectionID() |
int |
getExceptionCode()
Get the exception code stored in this message header
|
int |
getMethodId()
Get the method identifier set in this message header
|
int |
getRequestID() |
int |
getRequestType()
Get the request type
|
int |
getSemantics()
Get the semantics stored in this message header
|
void |
setClassId(int classId)
Set the class identifier in the message header
|
void |
setConnectionID(int connectionID) |
void |
setExceptionCode(int exceptionCode)
Set the exception code in this message header
|
void |
setMethodId(int methodId)
Set the method identifier in the message header
|
void |
setRequestID(int requestID) |
void |
setRequestType(int requestType)
Set the request type in the header message.
|
void |
setSenmatics(int senmatics)
Set the semantic in the message header
|
java.lang.String |
toString()
Format message header as a string value
|
public static final int REQUEST
public static final int RESPONSE
public static final int EXCEPTION
public static final int BIND_STATUS_CALL
public static final int ADD_REF_CALL
public static final int DEC_REF_CALL
public static final int GET_ENCODING_CALL
public static final int KILL_ALL
public static final int OBJECT_ALIVE_CALL
public static final int HEADER_LENGTH
public MessageHeader(int classId,
int methodId,
int semantics)
classId - Identifier of the parallel classmethodId - Identifier of the method in the parallel classsemantics - Invocation semantic of the method in the parallel classpublic MessageHeader()
public MessageHeader(int exceptionCode)
exceptionCode - code of the exception to be sentpublic void setConnectionID(int connectionID)
public int getConnectionID()
public int getRequestType()
public void setRequestType(int requestType)
requestType - type of the requestpublic int getClassId()
public void setClassId(int classId)
classId - The class identifier to be setpublic int getMethodId()
public void setMethodId(int methodId)
methodId - The method identifier to be setpublic int getSemantics()
public void setSenmatics(int senmatics)
senmatics - Semantic to be setpublic int getExceptionCode()
public void setExceptionCode(int exceptionCode)
exceptionCode - the code of the exception to send back on the networkpublic void setRequestID(int requestID)
public int getRequestID()
public java.lang.String toString()
toString in class java.lang.Object