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: * @author <a href="mailto:Takoua.Abdellatif@inria.fr">Takoua Abdellatif </a>
24: * @version 1.0
25: */
26: public interface DiscoveryManagerMBean {
27:
28: /**
29: * gets the time out period within which the host will listen for acknowledgement messages after sending a greeting.
30: *
31: * @return time out period within which the host will listen for acknowledgement messages after sending a greeting.
32: */
33: public int getGreetingAckTimeOut();
34:
35: /**
36: * sets the time out period within which the host will listen for acknowledgement messages after sending a greeting.
37: */
38: public void setGreetingAckTimeOut(int listeningPort);
39:
40: /**
41: * gets the port on which the DiscoveryManager is listening for a discovery greeting response.
42: *
43: * @return port to listen to for greeting responses.
44: */
45: public int getGreetingListeningPort();
46:
47: /**
48: * sets the port on which the DiscoveryManager is listening for a discovery greeting response.
49: */
50: public void setGreetingListeningPort(int listeningPort);
51:
52: /**
53: * gets the port on which the DiscoveryManager is listening for a discovery
54: * request.
55: *
56: * @return notification port.
57: */
58: public int getListeningPort();
59:
60: /**
61: * sets the port on which the DiscoveryManager is listening.
62: */
63: public void setListeningPort(int listeningPort);
64:
65: /**
66: * @return IP address the DiscoveryManager uses.
67: */
68: public String getListeningIp();
69:
70: /**
71: * sets the IP address the listening manager uses.
72: */
73: public void setListeningIp(String listeningIp);
74:
75: /**
76: * sets the time to live value to ttl. Defines the number of hops the
77: * multicast socket does.
78: *
79: * @param ttl
80: */
81: public void setTimeToLive(int ttl);
82:
83: /**
84: * gets the time to live of the multicast socket.
85: *
86: * @return ttl value.
87: */
88: public int getTimeToLive();
89:
90: /**
91: * starts the listening task on the listeningPort and listening Ip defined
92: * with the parameters.
93: */
94: void start();
95:
96: void stop();
97: }
|