KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > discovery > DiscoveryManagerMBean


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 2004 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU Lesser General Public License as published by the
8  * Free Software Foundation; either version 2.1 of the License, or any later
9  * version.
10  *
11  * This library is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
14  * for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this library; if not, write to the Free Software Foundation,
18  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19  *
20  */

21
22 package org.objectweb.jonas.discovery;
23
24 /**
25  * @author <a HREF="mailto:Takoua.Abdellatif@inria.fr">Takoua Abdellatif </a>
26  * @version 1.0
27  */

28 public interface DiscoveryManagerMBean
29 {
30     
31     /**
32      * gets the time out period within which the host will listen for acknowledgement messages after sending a greeting.
33      *
34      * @return time out period within which the host will listen for acknowledgement messages after sending a greeting.
35      */

36     public int getGreetingAckTimeOut();
37
38     /**
39      * sets the time out period within which the host will listen for acknowledgement messages after sending a greeting.
40      */

41     public void setGreetingAckTimeOut(int listeningPort);
42
43     /**
44      * gets the port on which the DiscoveryManager is listening for a discovery greeting response.
45      *
46      * @return port to listen to for greeting responses.
47      */

48     public int getGreetingListeningPort();
49
50     /**
51      * sets the port on which the DiscoveryManager is listening for a discovery greeting response.
52      */

53     public void setGreetingListeningPort(int listeningPort);
54
55
56     /**
57      * gets the port on which the DiscoveryManager is listening for a discovery
58      * request.
59      *
60      * @return notification port.
61      */

62     public int getListeningPort();
63
64     /**
65      * sets the port on which the DiscoveryManager is listening.
66      */

67     public void setListeningPort(int listeningPort);
68
69     /**
70      * @return IP address the DiscoveryManager uses.
71      */

72     public String JavaDoc getListeningIp();
73
74     /**
75      * sets the IP address the listening manager uses.
76      */

77     public void setListeningIp(String JavaDoc listeningIp);
78
79     /**
80      * sets the time to live value to ttl. Defines the number of hops the
81      * multicast socket does.
82      *
83      * @param ttl
84      */

85     public void setTimeToLive(int ttl);
86
87     /**
88      * gets the time to live of the multicast socket.
89      *
90      * @return ttl value.
91      */

92     public int getTimeToLive();
93
94     /**
95      * starts the listening task on the listeningPort and listening Ip defined
96      * with the parameters.
97      */

98     void start();
99     
100     void stop();
101 }
Popular Tags