KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > remoting > detection > multicast > MulticastDetectorMBean


1 /***************************************
2  * *
3  * JBoss: The OpenSource J2EE WebOS *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  ***************************************/

9 package org.jboss.remoting.detection.multicast;
10
11 import java.net.InetAddress JavaDoc;
12 import org.jboss.remoting.detection.Detector;
13
14
15 /**
16  * MulticastDetectorMBean
17  *
18  * @author <a HREF="mailto:jhaynie@vocalocity.net">Jeff Haynie</a>
19  * @version $Revision: 1.2 $
20  */

21 public interface MulticastDetectorMBean extends Detector
22 {
23    /**
24     * return the multicast address of the detector
25     *
26     * @return
27     */

28    public InetAddress JavaDoc getAddress();
29
30    /**
31     * set the interface address of the multicast
32     *
33     * @param ip
34     */

35    public void setAddress(InetAddress JavaDoc ip);
36
37    /**
38     * return the bind address of the detector
39     *
40     * @return
41     */

42    public InetAddress JavaDoc getBindAddress();
43
44    /**
45     * set the bind address
46     *
47     * @param ip
48     */

49    public void setBindAddress(InetAddress JavaDoc ip);
50
51    /**
52     * set the port for detections to be multicast to
53     *
54     * @param port
55     */

56    public void setPort(int port);
57
58    /**
59     * get the port that the detector is multicasting to
60     *
61     * @return
62     */

63    public int getPort();
64
65    /**
66     * @return The IP that is used to broadcast detection messages on via multicast.
67     */

68    String JavaDoc getDefaultIP();
69
70    /**
71     * @param defaultIP The IP that is used to broadcast detection messages on via multicast.
72     */

73    void setDefaultIP(String JavaDoc defaultIP);
74
75 }
76
Popular Tags