system
Class FFServerHandle

java.lang.Object
  extended by system.FFServerHandle
All Implemented Interfaces:
java.io.Serializable, NetworkHandle

public class FFServerHandle
extends java.lang.Object
implements NetworkHandle

a handle for describing the location of an FFServer

Author:
Greg Banks
See Also:
Serialized Form

Constructor Summary
FFServerHandle(java.net.InetSocketAddress addr, long uptime)
          construct an instance of FFServerHadle
 
Method Summary
 java.net.InetSocketAddress getAddr()
          gets the inet address of the server
 long getUptimeEstimate()
          gets a rough estimate of the remaining uptime for the server in milliseconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FFServerHandle

public FFServerHandle(java.net.InetSocketAddress addr,
                      long uptime)
construct an instance of FFServerHadle

Method Detail

getAddr

public java.net.InetSocketAddress getAddr()
gets the inet address of the server

Specified by:
getAddr in interface NetworkHandle
Returns:
the address of the server

getUptimeEstimate

public long getUptimeEstimate()
gets a rough estimate of the remaining uptime for the server in milliseconds

Specified by:
getUptimeEstimate in interface NetworkHandle
Returns:
an estimate of the amount of time this server will be up