KickJava   Java API By Example, From Geeks To Geeks.

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


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

28 public interface EnrollerMBean {
29     /**
30      * gets the port on which the Enroller is listening for a discovery
31      * request.
32      *
33      * @return notification port.
34      */

35     int getListeningPort();
36
37     /**
38      * sets the port on which the Enroller is listening.
39      * @param listeningPort port on which the Enroller is listening.
40      */

41     void setListeningPort(int listeningPort);
42
43     /**
44      * @return IP address the Enroller uses.
45      */

46     String JavaDoc getListeningIp();
47
48     /**
49      * sets the IP address the listening manager uses.
50      * @param listeningIP address on which the Enroller is listening.
51      */

52     void setListeningIp(String JavaDoc listeningIp);
53
54     /**
55      * sets the time to live value to ttl. Defines the number of hops the
56      * multicast socket does.
57      *
58      * @param ttl time to live
59      */

60     void setTimeToLive(int ttl);
61
62     /**
63      * gets the time to live of the multicast socket.
64      *
65      * @return ttl value.
66      */

67     int getTimeToLive();
68
69     /**
70      * starts the listening task on the listeningPort and listening Ip defined
71      * with the parameters.
72      */

73     void start();
74
75     /**
76      * stops the listening task
77      */

78     void stop();
79 }
80
Popular Tags