org.ow2.jonas.discovery.internal.manager
Interface DiscoveryManagerMBean

All Known Implementing Classes:
DiscoveryManager

public interface DiscoveryManagerMBean

Version:
1.0
Author:
Takoua Abdellatif

Method Summary
 int getGreetingAckTimeOut()
          gets the time out period within which the host will listen for acknowledgement messages after sending a greeting.
 int getGreetingListeningPort()
          gets the port on which the DiscoveryManager is listening for a discovery greeting response.
 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 setGreetingAckTimeOut(int listeningPort)
          sets the time out period within which the host will listen for acknowledgement messages after sending a greeting.
 void setGreetingListeningPort(int listeningPort)
          sets the port on which the DiscoveryManager is listening for a discovery greeting response.
 void setListeningIp(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

getGreetingAckTimeOut

int getGreetingAckTimeOut()
gets the time out period within which the host will listen for acknowledgement messages after sending a greeting.

Returns:
time out period within which the host will listen for acknowledgement messages after sending a greeting.

setGreetingAckTimeOut

void setGreetingAckTimeOut(int listeningPort)
sets the time out period within which the host will listen for acknowledgement messages after sending a greeting.


getGreetingListeningPort

int getGreetingListeningPort()
gets the port on which the DiscoveryManager is listening for a discovery greeting response.

Returns:
port to listen to for greeting responses.

setGreetingListeningPort

void setGreetingListeningPort(int listeningPort)
sets the port on which the DiscoveryManager is listening for a discovery greeting response.


getListeningPort

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

Returns:
notification port.

setListeningPort

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


getListeningIp

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

setListeningIp

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


setTimeToLive

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

Parameters:
ttl -

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()


Copyright © 2010 OW2 Consortium. All Rights Reserved.