cgl.narada.discovery.broker.messages
Class BrokerAdvertisement

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

public class BrokerAdvertisement
extends Object
implements Serializable

Skeletal structure of a Broker Advertisement
Created on Mar 23, 2005

See Also:
Serialized Form

Constructor Summary
BrokerAdvertisement()
           
 
Method Summary
static BrokerAdvertisement createObjectFromBytes(byte[] objectBytes)
          Unmarshalls the bytes as a BrokerAdvertisement object
 String getBelongsToNetwork()
           
 byte[] getBytes()
          Marshalls the object into an array of bytes.
 String getHostname()
           
 String getInfo()
           
 Hashtable getSupportedTransportProtocols()
           
 void setBelongsToNetwork(String belongsToNetwork)
           
 void setHostname(String hostname)
           
 void setInfo(String info)
           
 void setSupportedTransportProtocols(Hashtable supportedTransportProtocols)
           
 String toString()
          For debugging purposes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BrokerAdvertisement

public BrokerAdvertisement()
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 BrokerAdvertisement createObjectFromBytes(byte[] objectBytes)
Unmarshalls the bytes as a BrokerAdvertisement object

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

toString

public String toString()
For debugging purposes

Overrides:
toString in class Object

getBelongsToNetwork

public final String getBelongsToNetwork()
Returns:
Returns the belongsToNetwork.

setBelongsToNetwork

public final void setBelongsToNetwork(String belongsToNetwork)
Parameters:
belongsToNetwork - The belongsToNetwork to set.

getHostname

public final String getHostname()
Returns:
Returns the hostname.

setHostname

public final void setHostname(String hostname)
Parameters:
hostname - The hostname to set.

getInfo

public final String getInfo()
Returns:
Returns the info.

setInfo

public final void setInfo(String info)
Parameters:
info - The info to set.

getSupportedTransportProtocols

public final Hashtable getSupportedTransportProtocols()
Returns:
Returns the supportedTransportProtocols.

setSupportedTransportProtocols

public final void setSupportedTransportProtocols(Hashtable supportedTransportProtocols)
Parameters:
supportedTransportProtocols - The supportedTransportProtocols to set.


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