common
Class MessageServer

java.lang.Object
  extended by common.MessageServer
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ManagedMessageServer, MyselfMessageServer

public class MessageServer
extends java.lang.Object
implements java.io.Serializable

A representation of a Gossip Message server.

Author:
Marco Cornolti and Alessandro Franchini
See Also:
Serialized Form

Field Summary
private  java.net.InetAddress ip
           
private  int port
           
private static long serialVersionUID
           
 
Constructor Summary
MessageServer(java.net.InetAddress ip, int port)
          The message server contructor
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.net.InetAddress getIP()
           
 int getPort()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

ip

private java.net.InetAddress ip

port

private int port
Constructor Detail

MessageServer

public MessageServer(java.net.InetAddress ip,
                     int port)
The message server contructor

Parameters:
ip - the MS ip.
port - the MS RMI port.
Method Detail

getIP

public java.net.InetAddress getIP()
Returns:
the MS ip address.

getPort

public int getPort()
Returns:
the MS RMI port.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object