cgl.narada.topicgenerator
Class LongTopicRequest

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

public class LongTopicRequest
extends Object


Constructor Summary
LongTopicRequest(byte[] data)
          this constructor is used server side to construct a request message from a byte stream received over the network
LongTopicRequest(int clientID, int numberOfTopics)
          this constructor is used in client side to construct a request message
 
Method Summary
 byte[] getBytes()
          this method is used to serialize an object to send accross the network
 int getClientID()
           
 int getNumberOfTopics()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongTopicRequest

public LongTopicRequest(int clientID,
                        int numberOfTopics)
this constructor is used in client side to construct a request message

Parameters:
clientID -

LongTopicRequest

public LongTopicRequest(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

getNumberOfTopics

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

getBytes

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

Returns:
the serialized form of the object


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