org.ow2.jonas.discovery.base.comm
Class DiscMessage

java.lang.Object
  extended by org.ow2.jonas.discovery.base.comm.DiscMessage
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DiscEvent, DiscGreeting

public class DiscMessage
extends Object
implements Serializable

Version:
1.1
Author:
Takoua Abdellatif , Adriana Danes
See Also:
Serialized Form

Field Summary
static String DISCOVERY_PROTOCOL_VERSION
          The protocol version for the Discovery messages.
 
Constructor Summary
DiscMessage(String sourceAddress, int sourcePort)
          Creates a new DiscoveryRequest.
 
Method Summary
 String getSourceAddress()
          Returns the destinationAddress value in String type.
 int getSourcePort()
          Returns the sourcePort value.
 String getVersion()
           
 void setSourceAddress(String sourceAddress)
          Sets the source address.
 void setSourcePort(int sourcePort)
          Sets the source port.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DISCOVERY_PROTOCOL_VERSION

public static final String DISCOVERY_PROTOCOL_VERSION
The protocol version for the Discovery messages.

See Also:
Constant Field Values
Constructor Detail

DiscMessage

public 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.
Method Detail

getSourceAddress

public String getSourceAddress()
Returns the destinationAddress value in String type.

Returns:
Returns the destinationAddress.

getSourcePort

public int getSourcePort()
Returns the sourcePort value.

Returns:
Returns the sourcePort.

setSourceAddress

public void setSourceAddress(String sourceAddress)
Sets the source address.

Parameters:
sourceAddress - Discovery source address.

setSourcePort

public void setSourcePort(int sourcePort)
Sets the source port.

Parameters:
sourcePort - Discovery source port

toString

public String toString()
Overrides:
toString in class Object
Returns:
the object trandformed into a String

getVersion

public String getVersion()
Returns:
discovery protocol version


Copyright © 2010 OW2 Consortium. All Rights Reserved.