cgl.narada.discovery.broker.messages
Class BrokerDiscoveryResponse

java.lang.Object
  extended by cgl.narada.discovery.broker.messages.BrokerDiscoveryResponse
All Implemented Interfaces:
Serializable

public class BrokerDiscoveryResponse
extends Object
implements Serializable

Created on Mar 26, 2005

See Also:
Serialized Form

Field Summary
 BrokerAdvertisement brokerInfo
          They share similar data, so pretty much an alias
 
Constructor Summary
BrokerDiscoveryResponse(String _UUID)
           
 
Method Summary
static BrokerDiscoveryResponse createObjectFromBytes(byte[] objectBytes)
          Unmarshalls the bytes as a BrokerDiscoveryResponse object
 BrokerAdvertisement getBrokerInfo()
           
 byte[] getBytes()
          Marshalls the object into an array of bytes.
 double getFreeMemory()
           
 String getNetworkName()
           
 int getNumLinks()
           
 String getRequestUUID()
           
 long getTimeStamp()
           
 double getTotalmemory()
           
 void setBrokerInfo(BrokerAdvertisement brokerInfo)
           
 void setNetworkName(String networkName)
           
 void setNumLinks(int numLinks)
           
 String toString()
          For debugging purposes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

brokerInfo

public BrokerAdvertisement brokerInfo
They share similar data, so pretty much an alias

Constructor Detail

BrokerDiscoveryResponse

public BrokerDiscoveryResponse(String _UUID)
Method Detail

getBytes

public byte[] getBytes()
Marshalls the object into an array of bytes.

Returns:
an array of bytes representing the marshaller object, null if error occurs

createObjectFromBytes

public static BrokerDiscoveryResponse createObjectFromBytes(byte[] objectBytes)
Unmarshalls the bytes as a BrokerDiscoveryResponse object

Parameters:
objectBytes -
Returns:
BrokerDiscoveryResponse if successful, null if error occurs

toString

public String toString()
For debugging purposes

Overrides:
toString in class Object

getNetworkName

public final String getNetworkName()
Returns:
Returns the networkName.

setNetworkName

public final void setNetworkName(String networkName)
Parameters:
networkName - The networkName to set.

getFreeMemory

public final double getFreeMemory()
Returns:
Returns the freeMemory.

getTimeStamp

public final long getTimeStamp()
Returns:
Returns the timeStamp.

getTotalmemory

public final double getTotalmemory()
Returns:
Returns the totalmemory.

getBrokerInfo

public final BrokerAdvertisement getBrokerInfo()
Returns:
Returns the brokerInfo.

setBrokerInfo

public final void setBrokerInfo(BrokerAdvertisement brokerInfo)
Parameters:
brokerInfo - The brokerInfo to set.

getNumLinks

public final int getNumLinks()
Returns:
Returns the numLinks.

setNumLinks

public final void setNumLinks(int numLinks)
Parameters:
numLinks - The numLinks to set.

getRequestUUID

public final String getRequestUUID()
Returns:
Returns the requestUUID.


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