KickJava   Java API By Example, From Geeks To Geeks.

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


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 DiscoveryClientMBean extends EnrollerMBean {
29     /**
30      * gets the duration time the DiscoveryClient has to wait for discovery answers.
31      * @return timeout value.
32      */

33     int getTimeout();
34     /**
35      * Sets the timeout value the DiscoveryClient for receiving discovery answers.
36      * @param timeout
37      */

38     void setTimeout(int timeout);
39     /**
40      * Gets the source port that the discovery response has to use.
41      * @return source port
42      */

43     int getSourcePort();
44     /**
45      * Sets the source port
46      * @param sourcePort
47      */

48     void setSourcePort(int sourcePort);
49     /**
50      * Gets the source port
51      * @return the source port
52      */

53     String JavaDoc getSourceIp();
54     /**
55      * Sets the source Ip
56      * @param sourceIp
57      */

58     void setSourceIp(String JavaDoc sourceIp);
59 }
60
Popular Tags