01: /**
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 2004 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or modify it
07: * under the terms of the GNU Lesser General Public License as published by the
08: * Free Software Foundation; either version 2.1 of the License, or any later
09: * 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: */package org.objectweb.jonas.discovery;
21:
22: /**
23: *
24: * @author <a href="mailto:Takoua.Abdellatif@inria.fr">Takoua Abdellatif</a>
25: * @version 1.0
26: */
27: public interface EnrollerMBean {
28: /**
29: * gets the port on which the Enroller is listening for a discovery
30: * request.
31: *
32: * @return notification port.
33: */
34: int getListeningPort();
35:
36: /**
37: * sets the port on which the Enroller is listening.
38: * @param listeningPort port on which the Enroller is listening.
39: */
40: void setListeningPort(int listeningPort);
41:
42: /**
43: * @return IP address the Enroller uses.
44: */
45: String getListeningIp();
46:
47: /**
48: * sets the IP address the listening manager uses.
49: * @param listeningIP address on which the Enroller is listening.
50: */
51: void setListeningIp(String listeningIp);
52:
53: /**
54: * sets the time to live value to ttl. Defines the number of hops the
55: * multicast socket does.
56: *
57: * @param ttl time to live
58: */
59: void setTimeToLive(int ttl);
60:
61: /**
62: * gets the time to live of the multicast socket.
63: *
64: * @return ttl value.
65: */
66: int getTimeToLive();
67:
68: /**
69: * starts the listening task on the listeningPort and listening Ip defined
70: * with the parameters.
71: */
72: void start();
73:
74: /**
75: * stops the listening task
76: */
77: void stop();
78: }
|