KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > ubik > rmi > naming > remote > DomainInfo


1 package org.sapia.ubik.rmi.naming.remote;
2
3 import java.io.Serializable JavaDoc;
4
5 import org.sapia.ubik.mcast.DomainName;
6
7
8 /**
9  * @author Yanick Duchesne
10  *
11  * <dl>
12  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
13  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
14  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
15  * </dl>
16  */

17 public class DomainInfo implements Serializable JavaDoc {
18   private DomainName _domain;
19   private String JavaDoc _mcastAddress;
20   private int _mcastPort;
21
22   public DomainInfo(DomainName domain, String JavaDoc mcastAddress, int mcastPort) {
23     _domain = domain;
24     _mcastAddress = mcastAddress;
25     _mcastPort = mcastPort;
26   }
27
28   /**
29    * Returns the domain name of the remote context.
30    *
31    * @see RemoteContext
32    * @return a <code>DomainName</code>
33    */

34   public DomainName getDomainName() {
35     return _domain;
36   }
37
38   /**
39    * Returns a multicast address.
40    *
41    * @return a multicast address.
42    */

43   public String JavaDoc getMulticastAddress() {
44     return _mcastAddress;
45   }
46
47   /**
48    * A multicast port.
49    *
50    * @return a port.
51    */

52   public int getMulticastPort() {
53     return _mcastPort;
54   }
55 }
56
Popular Tags