org.tranche.network
Class ServerStatusTablePerspective

java.lang.Object
  extended by org.tranche.network.ServerStatusTablePerspective

public class ServerStatusTablePerspective
extends java.lang.Object

Encapsulates information for ServerStatusUpdateProcess so can view from perspective on any server--not just the localhost server.

Author:
Bryan Smith - bryanesmith@gmail.com

Field Summary
 java.util.Set<StatusTableRowRange> coreServers
          The status table row ranges for core servers.
 java.lang.String host
          The host name (or IP address) for the server from which we wish to gather the status table info.
 java.util.Set<StatusTableRowRange> nonCoreServers
          The status table row ranges for non-core servers.
 
Constructor Summary
ServerStatusTablePerspective(java.lang.String host)
          Encapsulates information for ServerStatusUpdateProcess so can view from perspective on any server--not just the localhost server.
 
Method Summary
 boolean addCoreServerRowRange(StatusTableRowRange range)
          Add range for non-core servers.
 boolean addNonCoreServerRowRange(StatusTableRowRange range)
          Add range for non-core servers.
 java.util.Set<java.lang.String> getConnectedCoreServerHosts()
          Returns all the core servers to which a particular server is connected.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

host

public final java.lang.String host

The host name (or IP address) for the server from which we wish to gather the status table info. (I.e. from this server's perspective.)


coreServers

public final java.util.Set<StatusTableRowRange> coreServers

The status table row ranges for core servers.


nonCoreServers

public final java.util.Set<StatusTableRowRange> nonCoreServers

The status table row ranges for non-core servers.

Constructor Detail

ServerStatusTablePerspective

public ServerStatusTablePerspective(java.lang.String host)

Encapsulates information for ServerStatusUpdateProcess so can view from perspective on any server--not just the localhost server.

Parameters:
host - The host name (or IP address) for the server from which we wish to gather the status table info. (I.e. from this server's perspective.)
Method Detail

getConnectedCoreServerHosts

public java.util.Set<java.lang.String> getConnectedCoreServerHosts()

Returns all the core servers to which a particular server is connected.

Returns:
Set of hosts

addCoreServerRowRange

public boolean addCoreServerRowRange(StatusTableRowRange range)

Add range for non-core servers.

Parameters:
range -
Returns:

addNonCoreServerRowRange

public boolean addNonCoreServerRowRange(StatusTableRowRange range)

Add range for non-core servers.

Parameters:
range -
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


This code is free for use both commercially and non-commercially as stated in the project's license