org.objectweb.jonas.discovery.DiscMessage Class Reference

Inherited by org.objectweb.jonas.discovery.DiscEvent.

Inheritance diagram for org.objectweb.jonas.discovery.DiscMessage:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 DiscMessage (String sourceAddress, int sourcePort)
String getSourceAddress ()
int getSourcePort ()
void setSourceAddress (String sourceAddress)
void setSourcePort (int sourcePort)
String toString ()

Static Public Member Functions

byte[] objectToBytes (Serializable obj)

Detailed Description

Author:
Takoua Abdellatif
Version:
1.0

Definition at line 34 of file DiscMessage.java.


Constructor & Destructor Documentation

org.objectweb.jonas.discovery.DiscMessage.DiscMessage String  sourceAddress,
int  sourcePort
 

Creates a new DiscoveryRequest

Parameters:
sourceAddress source address to use to send discovery responses.
sourcePort source port to use to send disovery responses.

Definition at line 53 of file DiscMessage.java.


Member Function Documentation

String org.objectweb.jonas.discovery.DiscMessage.getSourceAddress  ) 
 

Returns the destinationAddress value in String type.

Returns:
Returns the destinationAddress.

Definition at line 63 of file DiscMessage.java.

Referenced by org.objectweb.jonas.discovery.DiscoveryComm.run().

int org.objectweb.jonas.discovery.DiscMessage.getSourcePort  ) 
 

Returns the sourcePort value.

Returns:
Returns the sourcePort.

Definition at line 72 of file DiscMessage.java.

Referenced by org.objectweb.jonas.discovery.DiscoveryComm.run().

byte [] org.objectweb.jonas.discovery.DiscMessage.objectToBytes Serializable  obj  )  [static]
 

Converts the given object to an array of bytes.

Parameters:
obj the object to convert
Returns:
an array of bytes

Definition at line 101 of file DiscMessage.java.

void org.objectweb.jonas.discovery.DiscMessage.setSourceAddress String  sourceAddress  ) 
 

Sets the source address.

Parameters:
sourceAddress 

Definition at line 81 of file DiscMessage.java.

void org.objectweb.jonas.discovery.DiscMessage.setSourcePort int  sourcePort  ) 
 

Sets the source port.

Parameters:
sourcePort 

Definition at line 90 of file DiscMessage.java.

String org.objectweb.jonas.discovery.DiscMessage.toString  ) 
 

Returns:
the object trandformed into a String

Reimplemented in org.objectweb.jonas.discovery.DiscEvent.

Definition at line 131 of file DiscMessage.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:06:47 2005 for JOnAS by  doxygen 1.3.9.1