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 DiscoveryClientMBean extends EnrollerMBean {
28: /**
29: * gets the duration time the DiscoveryClient has to wait for discovery answers.
30: * @return timeout value.
31: */
32: int getTimeout();
33:
34: /**
35: * Sets the timeout value the DiscoveryClient for receiving discovery answers.
36: * @param timeout
37: */
38: void setTimeout(int timeout);
39:
40: /**
41: * Gets the source port that the discovery response has to use.
42: * @return source port
43: */
44: int getSourcePort();
45:
46: /**
47: * Sets the source port
48: * @param sourcePort
49: */
50: void setSourcePort(int sourcePort);
51:
52: /**
53: * Gets the source port
54: * @return the source port
55: */
56: String getSourceIp();
57:
58: /**
59: * Sets the source Ip
60: * @param sourceIp
61: */
62: void setSourceIp(String sourceIp);
63: }
|