org.objectweb.jonas.discovery
Interface DiscoveryManagerMBean

All Known Implementing Classes:
DiscoveryManager

public interface DiscoveryManagerMBean

Version:
1.0
Author:
Takoua Abdellatif

Method Summary
 java.lang.String getListeningIp()
           
 int getListeningPort()
          gets the port on which the DiscoveryManager is listening for a discovery request.
 int getTimeToLive()
          gets the time to live of the multicast socket.
 void setListeningIp(java.lang.String listeningIp)
          sets the IP address the listening manager uses.
 void setListeningPort(int listeningPort)
          sets the port on which the DiscoveryManager is listening.
 void setTimeToLive(int ttl)
          sets the time to live value to ttl.
 void start()
          starts the listening task on the listeningPort and listening Ip defined with the parameters.
 void stop()
           
 

Method Detail

getListeningPort

public int getListeningPort()
gets the port on which the DiscoveryManager is listening for a discovery request.

Returns:
notification port.

setListeningPort

public void setListeningPort(int listeningPort)
sets the port on which the DiscoveryManager is listening.


getListeningIp

public java.lang.String getListeningIp()
Returns:
IP address the DiscoveryManager uses.

setListeningIp

public void setListeningIp(java.lang.String listeningIp)
sets the IP address the listening manager uses.


setTimeToLive

public void setTimeToLive(int ttl)
sets the time to live value to ttl. Defines the number of hops the multicast socket does.

Parameters:
ttl -

getTimeToLive

public int getTimeToLive()
gets the time to live of the multicast socket.

Returns:
ttl value.

start

public void start()
starts the listening task on the listeningPort and listening Ip defined with the parameters.


stop

public void stop()