org.objectweb.jonas.discovery
Interface DiscoveryClientMBean

All Superinterfaces:
EnrollerMBean
All Known Implementing Classes:
DiscoveryClient

public interface DiscoveryClientMBean
extends EnrollerMBean

Version:
1.0
Author:
Takoua Abdellatif

Method Summary
 java.lang.String getSourceIp()
          Gets the source port
 int getSourcePort()
          Gets the source port that the discovery response has to use.
 int getTimeout()
          gets the duration time the DiscoveryClient has to wait for discovery answers.
 void setSourceIp(java.lang.String sourceIp)
          Sets the source Ip
 void setSourcePort(int sourcePort)
          Sets the source port
 void setTimeout(int timeout)
          Sets the timeout value the DiscoveryClient for receiving discovery answers.
 
Methods inherited from interface org.objectweb.jonas.discovery.EnrollerMBean
getListeningIp, getListeningPort, getTimeToLive, setListeningIp, setListeningPort, setTimeToLive, start, stop
 

Method Detail

getTimeout

public int getTimeout()
gets the duration time the DiscoveryClient has to wait for discovery answers.

Returns:
timeout value.

setTimeout

public void setTimeout(int timeout)
Sets the timeout value the DiscoveryClient for receiving discovery answers.

Parameters:
timeout -

getSourcePort

public int getSourcePort()
Gets the source port that the discovery response has to use.

Returns:
source port

setSourcePort

public void setSourcePort(int sourcePort)
Sets the source port

Parameters:
sourcePort -

getSourceIp

public java.lang.String getSourceIp()
Gets the source port

Returns:
the source port

setSourceIp

public void setSourceIp(java.lang.String sourceIp)
Sets the source Ip

Parameters:
sourceIp -