Package org.jcsp.net
Class Message
- java.lang.Object
-
- org.jcsp.net.Message
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ChannelMessage
,ConnectionMessage
,Message.BounceMessage
,Message.PingMessage
,Message.PingReplyMessage
,SerializedMessage
abstract class Message extends java.lang.Object implements java.io.Serializable
Message to be transmitted. This is an abstract class containing only header information - you must subclass it to use it.
This is a package-private implementation class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Message.BounceMessage
static class
Message.PingMessage
static class
Message.PingReplyMessage
-
Field Summary
Fields Modifier and Type Field Description (package private) long
destIndex
The destination channel index.(package private) java.lang.String
destVCNLabel
(package private) static Message.PingMessage
PING_MESSAGE
(package private) static Message.PingReplyMessage
PING_REPLY_MESSAGE
(package private) NodeID
sourceID
The source computer address.(package private) long
sourceIndex
The source channel index.(package private) ChannelOutput
txReplyChannel
The channel for transmitting replies.
-
Constructor Summary
Constructors Constructor Description Message()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bounce(ChannelOutput txChannel)
-
-
-
Field Detail
-
PING_MESSAGE
static final Message.PingMessage PING_MESSAGE
-
PING_REPLY_MESSAGE
static final Message.PingReplyMessage PING_REPLY_MESSAGE
-
destIndex
long destIndex
The destination channel index.
-
destVCNLabel
java.lang.String destVCNLabel
-
sourceIndex
long sourceIndex
The source channel index.
-
sourceID
transient NodeID sourceID
The source computer address. This is not transmitted, instead, it is filled in automatically by the demux on arrival. (Indeed, it is not usually even filled in at the sending end).
-
txReplyChannel
transient ChannelOutput txReplyChannel
The channel for transmitting replies. It doesn't make sense to transmit this value (or even to bother to fill it in at the transmitting end), so it is filled in automatically by the demux on arrival.
-
-
Method Detail
-
bounce
public final void bounce(ChannelOutput txChannel)
-
-