|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTET.SyncMessage
The SyncMessage
class provides the details of one message used
during a TET sychronization event.
Field Summary | |
static int |
TET_SMDUP
Bit value for flags, indicating that more than one system attempted to send message data. |
static int |
TET_SMMSGMAX
Maximum size of a sync message. |
static int |
TET_SMRCVMSG
Bit value for flags, indicating that the system is receiving message data. |
static int |
TET_SMSNDMSG
Bit value for flags, indicating that the system is sending message data. |
static int |
TET_SMTRUNC
Bit value for flags, indicating that the message data was truncated. |
Constructor Summary | |
SyncMessage()
Construct an empty SyncMessage . |
|
SyncMessage(byte[] msg)
Construct a SyncMessage which will be used for the
transmission of a message. |
|
SyncMessage(int msglen)
Construct a SyncMessage which will be used for the
reception of a message. |
Method Summary | |
boolean |
duplicated()
Were there two senders during synchronization? |
int |
getSysID()
Get the value of the system ID of the sending system. |
int |
length()
Retrieve the message length. |
byte[] |
message()
Retrieve the message data. |
boolean |
sender()
Was this message sent or does it contains message received from another system? |
void |
set_message(byte[] msg)
Set up a SyncMessage for transmission of a message. |
void |
set_receive_length(int msglen)
Set up a SyncMessage for reception of a message. |
boolean |
truncated()
Was this synchronization message truncated? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TET_SMSNDMSG
Provided as public for backwards compatibility only; serves no useful purpose outside package.
public static final int TET_SMRCVMSG
Provided as public for backwards compatibility only; serves no useful purpose outside package.
public static final int TET_SMDUP
Provided as public for backwards compatibility only; serves no useful purpose outside package.
public static final int TET_SMTRUNC
Provided as public for backwards compatibility only; serves no useful purpose outside package.
public static final int TET_SMMSGMAX
Constructor Detail |
public SyncMessage()
SyncMessage
.
public SyncMessage(byte[] msg)
SyncMessage
which will be used for the
transmission of a message.
msg
- the message to send.public SyncMessage(int msglen)
SyncMessage
which will be used for the
reception of a message.
msglen
- the size of the receive buffer to set up.Method Detail |
public void set_message(byte[] msg)
SyncMessage
for transmission of a message.
msg
- the message to send.public int length()
public void set_receive_length(int msglen)
SyncMessage
for reception of a message.
msglen
- the size of the receive buffer to set up.public byte[] message()
null
if there is no message data.public boolean truncated()
true
if the message was truncated because
the message was longer than the receive buffer or
because the message was longer than the permitted
message length.public boolean duplicated()
true
if there were two senders during
synchronization.public boolean sender()
true
if this message was sent during
synchronization.public int getSysID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |