|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mindtree.techworks.insight.remoteprotocol.spi.PacketDataContent
com.mindtree.techworks.insight.remoteprotocol.spi.StartupMessageDataContent
public class StartupMessageDataContent
The content type of a startup message. This message is transmitted before any LogMessage is transmitted from a particular source. This message is also retransmitted intermittently from the source.
0 8 16 24 32
| . . . . . . . | . . . . . . . | . . . . . . . | . . . . . . . |
+---------------+---------------+-------------------------------+
|R| UNUSED (0) | VERSION | NAMESPACE (To End) |
+-+-------------+---------------+-------------------------------+
| . . . . . . . | . . . . . . . | . . . . . . . | . . . . . . . |
0 8 16 24 32
R - Retransmission Indicator: 0 - First Transmission, 1 - Retransmission
PacketDataContent,
Serialized Form| Field Summary |
|---|
| Fields inherited from class com.mindtree.techworks.insight.remoteprotocol.spi.PacketDataContent |
|---|
MAX_PACKET_DATA_SIZE, messageType, packetData |
| Constructor Summary | |
|---|---|
StartupMessageDataContent()
Creates a new StartupMessageDataContent object. |
|
StartupMessageDataContent(byte[] completePacketData,
PacketHeader packetHeader)
Creates an instance of the StartupMessageDataContent |
|
| Method Summary | |
|---|---|
java.lang.String |
getNamespace()
Returns the namespace |
byte |
getVersion()
Returns the version |
boolean |
isRetransmission()
Returns the retransmission |
void |
setNamespace(java.lang.String namespace)
Sets the namespace |
void |
setPacketData(byte[] packetData)
Sets the packet data. |
void |
setRetransmission(boolean retransmission)
Sets the retransmission |
| Methods inherited from class com.mindtree.techworks.insight.remoteprotocol.spi.PacketDataContent |
|---|
checkPacketDataSize, getLength, getMessageType, getPacketData, setMessageType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StartupMessageDataContent()
PacketDataContent.PacketDataContent()
public StartupMessageDataContent(byte[] completePacketData,
PacketHeader packetHeader)
throws RemoteProtocolException
completePacketData - The data for the complete packet.packetHeader - The header for the packet
RemoteProtocolException - If the message type in the PacketHeader is not
MessageType#STARTUP_MESSAGE_TYPEPacketDataContent.PacketDataContent(byte[], PacketHeader)| Method Detail |
|---|
public void setPacketData(byte[] packetData)
throws RemoteProtocolException
setPacketData in class PacketDataContentpacketData - The packetData to set.
RemoteProtocolException - If the fields cannot be interpretted correctly.PacketDataContent.setPacketData(byte[])public java.lang.String getNamespace()
public void setNamespace(java.lang.String namespace)
throws PacketDataSizeOverLimitsException,
RemoteProtocolException
namespace - The namespace to set.
PacketDataSizeOverLimitsException - If the packet data size is over limits
RemoteProtocolExceptionpublic boolean isRetransmission()
public void setRetransmission(boolean retransmission)
retransmission - The retransmission to set.public byte getVersion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||