org.ow2.jonas.discovery.internal.enroller
Interface EnrollerMBean

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

public interface EnrollerMBean

Version:
1.0
Author:
Takoua Abdellatif

Method Summary
 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(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

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

Returns:
notification port.

setListeningPort

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

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

getListeningIp

String getListeningIp()
Returns:
IP address the Enroller uses.

setListeningIp

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

Parameters:
listeningIP - address on which the Enroller is listening.

setTimeToLive

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

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

Returns:
ttl value.

start

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


stop

void stop()
stops the listening task



Copyright © 2010 OW2 Consortium. All Rights Reserved.