org.objectweb.jonas.discovery
Interface EnrollerMBean

All Known Subinterfaces:
DiscoveryClientMBean
All Known Implementing Classes:
DiscoveryClient, Enroller

public interface EnrollerMBean

Version:
1.0
Author:
Takoua Abdellatif

Method Summary
 java.lang.String getListeningIp()
           
 int getListeningPort()
          gets the port on which the Enroller 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 Enroller 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()
          stops the listening task
 

Method Detail

getListeningPort

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

Returns:
notification port.

setListeningPort

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

Parameters:
listeningPort - port on which the Enroller is listening.

getListeningIp

public java.lang.String getListeningIp()
Returns:
IP address the Enroller 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 - time to live

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()
stops the listening task