Open SiteSearch 4.1.1
Final

ORG.oclc.jassi
Class ServerMngr

java.lang.Object
  |
  +--ORG.oclc.jassi.InitClass
        |
        +--ORG.oclc.jassi.ServerMngr

public class ServerMngr
extends InitClass

The ServerMngr class manages all the server information defined for all external servers in the JaSSI configuration files. This information is loaded during the JaSSI Server initialization.

See Also:
InitClass

Constructor Summary
ServerMngr()
          Constructs a ServerMngr object.
 
Method Summary
static Hashtable allServers()
          Returns the Hashtable containing all the server objects.
static Object getServer(String name)
          Returns the server object requested by the input parameter name.
static Object getServerByType(String type)
          Returns the server object requested by the input parameter type.
 void init(IniFile ini)
          Initializes the ServerMngr object by reading server configuration information from the input ini file.
 String toString()
          Generates the String representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerMngr

public ServerMngr()
Constructs a ServerMngr object.
Method Detail

init

public void init(IniFile ini)
Initializes the ServerMngr object by reading server configuration information from the input ini file.
Parameters:
ini - the server configuration ini file.
Overrides:
init in class InitClass

allServers

public static Hashtable allServers()
Returns the Hashtable containing all the server objects.
Returns:
the Hashtable containing all the server objects.

getServer

public static Object getServer(String name)
Returns the server object requested by the input parameter name.
Parameters:
name - the name of the server requested.
Returns:
the server object.

getServerByType

public static Object getServerByType(String type)
Returns the server object requested by the input parameter type.
Parameters:
type - the type of the server requested.
Returns:
the server object.

toString

public String toString()
Generates the String representation of this object.
Returns:
the String representation of this object.
Overrides:
toString in class InitClass

Open SiteSearch 4.1.1
Final