cgl.narada.topicgenerator
Class LongTopicResponse

java.lang.Object
  extended by cgl.narada.topicgenerator.LongTopicResponse

public class LongTopicResponse
extends Object


Field Summary
static boolean FAIL
           
static boolean SUCCESS
           
 
Constructor Summary
LongTopicResponse(byte[] data)
          this constructor is used server side to construct a request message from a byte stream received over the network
LongTopicResponse(int clientID)
          construct a fail response for the given clientID
LongTopicResponse(int clientID, long baseTopic, int numberOfTopics)
          construct a successful response with the given values
 
Method Summary
 long getBaseTopic()
           
 byte[] getBytes()
          this method is used to serialize an object to send accross the network
 int getClientID()
           
 int getNumberOfTopics()
           
 boolean isStatusOk()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FAIL

public static final boolean FAIL
See Also:
Constant Field Values

SUCCESS

public static final boolean SUCCESS
See Also:
Constant Field Values
Constructor Detail

LongTopicResponse

public LongTopicResponse(int clientID,
                         long baseTopic,
                         int numberOfTopics)
construct a successful response with the given values


LongTopicResponse

public LongTopicResponse(int clientID)
construct a fail response for the given clientID


LongTopicResponse

public LongTopicResponse(byte[] data)
this constructor is used server side to construct a request message from a byte stream received over the network

Parameters:
data - the byte array received over the network
Method Detail

getClientID

public int getClientID()
Returns:
the clientID of this object

getBaseTopic

public long getBaseTopic()
Returns:
the baseTopic of this object

getNumberOfTopics

public int getNumberOfTopics()
Returns:
the number of topics of this object

isStatusOk

public boolean isStatusOk()
Returns:
the status of this response message

getBytes

public byte[] getBytes()
this method is used to serialize an object to send accross the network

Returns:
the serialized form of the object

toString

public String toString()
Overrides:
toString in class Object


For comments and suggestions please send e-mail to The NaradaBrokering Project