com.mindtree.techworks.insight.remoteprotocol.spi
Class StartupMessageDataContent

java.lang.Object
  extended by com.mindtree.techworks.insight.remoteprotocol.spi.PacketDataContent
      extended by com.mindtree.techworks.insight.remoteprotocol.spi.StartupMessageDataContent
All Implemented Interfaces:
java.io.Serializable

public class StartupMessageDataContent
extends PacketDataContent

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
 

Version:
$Revision: 1.2 $ $Date: 2005/08/09 18:39:17 $
Author:
Bindul Bhowmik
See Also:
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

StartupMessageDataContent

public StartupMessageDataContent()
Creates a new StartupMessageDataContent object.

See Also:
PacketDataContent.PacketDataContent()

StartupMessageDataContent

public StartupMessageDataContent(byte[] completePacketData,
                                 PacketHeader packetHeader)
                          throws RemoteProtocolException
Creates an instance of the StartupMessageDataContent

Parameters:
completePacketData - The data for the complete packet.
packetHeader - The header for the packet
Throws:
RemoteProtocolException - If the message type in the PacketHeader is not MessageType#STARTUP_MESSAGE_TYPE
See Also:
PacketDataContent.PacketDataContent(byte[], PacketHeader)
Method Detail

setPacketData

public void setPacketData(byte[] packetData)
                   throws RemoteProtocolException
Sets the packet data. The fields in this class are updated right after setting the data.

Overrides:
setPacketData in class PacketDataContent
Parameters:
packetData - The packetData to set.
Throws:
RemoteProtocolException - If the fields cannot be interpretted correctly.
See Also:
PacketDataContent.setPacketData(byte[])

getNamespace

public java.lang.String getNamespace()
Returns the namespace

Returns:
Returns the namespace.

setNamespace

public void setNamespace(java.lang.String namespace)
                  throws PacketDataSizeOverLimitsException,
                         RemoteProtocolException
Sets the namespace

Parameters:
namespace - The namespace to set.
Throws:
PacketDataSizeOverLimitsException - If the packet data size is over limits
RemoteProtocolException

isRetransmission

public boolean isRetransmission()
Returns the retransmission

Returns:
Returns the retransmission.

setRetransmission

public void setRetransmission(boolean retransmission)
Sets the retransmission

Parameters:
retransmission - The retransmission to set.

getVersion

public byte getVersion()
Returns the version

Returns:
Returns the version.


Copyright © 2003-2008 MindTree Consulting Ltd.. All Rights Reserved.