All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class PREDATOR.ServerSite

java.lang.Object
   |
   +----PREDATOR.ServerSite

public class ServerSite
extends Object
The object describing the location of a PREDATOR server.


Constructor Index

 o ServerSite(InetAddress, int)
Constructor.
 o ServerSite(String, int)
Constructor.

Method Index

 o getHostAddress()
Gets the host address of this server site.
 o getPortNumber()
Gets the port number of this server site.
 o toString()
Creates a string version of this object.

Constructors

 o ServerSite
 public ServerSite(InetAddress InternetAddress,
                   int Port)
Constructor.

Parameters:
InternetAddress - The address of the PREDATOR server
Port - The port number of the server
 o ServerSite
 public ServerSite(String InternetAddress,
                   int Port) throws UnknownHostException
Constructor.

Parameters:
InternetAddress - A string form of the address of the PREDATOR server
Port - The port number of the server

Methods

 o getHostAddress
 public InetAddress getHostAddress()
Gets the host address of this server site.

Returns:
The host address of this server site
 o getPortNumber
 public int getPortNumber()
Gets the port number of this server site.

Returns:
port number of this server site
 o toString
 public String toString()
Creates a string version of this object.

Returns:
A string version of this object
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index