Open SiteSearch 4.1.1
Final

ORG.oclc.opserve.opsmanager
Class LoadedServer

java.lang.Object
  |
  +--ORG.oclc.opserve.opsmanager.LoadedServer

public class LoadedServer
extends Object

This class stores the information about a single server for use in reading or writing load balancing files.


Field Summary
 String hostID
           
 String hostname
           
 int loadFactor
           
 int opPort
           
 int serverPort
           
 
Constructor Summary
LoadedServer(String line)
          Initializes a LoadedServer from a line in the load balancing file.
LoadedServer(String id, String host, int sPort, int operPort, int lf)
          Initializes a LoadedServer.
 
Method Summary
 String toString()
          Convers the LoadedServer to String appropriate for output in a load balancing file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hostID

public String hostID

hostname

public String hostname

serverPort

public int serverPort

opPort

public int opPort

loadFactor

public int loadFactor
Constructor Detail

LoadedServer

public LoadedServer(String line)
             throws Exception
Initializes a LoadedServer from a line in the load balancing file.
Parameters:
line - The line from the load balancing file.

LoadedServer

public LoadedServer(String id,
                    String host,
                    int sPort,
                    int operPort,
                    int lf)
Initializes a LoadedServer.
Parameters:
id - Host id used in the JaSSI URL.
host - Name of the host corresponding to the id.
operPort - Operations port number.
sPort - Server port number.
lf - Load Factor.
Method Detail

toString

public String toString()
Convers the LoadedServer to String appropriate for output in a load balancing file.
Returns:
LoadedServer in String form.
Overrides:
toString in class Object

Open SiteSearch 4.1.1
Final