Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.util
Class ServerList  view ServerList download ServerList.java

java.lang.Object
  extended bycom.flexstor.common.util.ServerList

public class ServerList
extends java.lang.Object


Field Summary
private static boolean debug
           
private static ServerList instance
           
private static java.util.Hashtable servers
           
 
Constructor Summary
private ServerList()
           
 
Method Summary
static boolean contains(java.lang.String sDesc)
          Returns true if the server passed in the argument is in the current server list.
static int getAppleTalkVendor(java.lang.String sDesc)
          Returns the AppleTalkVendor for this server given the server name, dns or ip address.
static java.lang.String getDNSName(java.lang.String sDesc)
          Returns the DNS name for the specified server, or the orginal argument if not found.
static java.lang.String[] getDNSServerList()
          Return the string array of DNS names for the server list
static ServerList getInstance()
           
static java.lang.String getIPAddress(java.lang.String sDesc)
          Returns the IP Address for the specified server, or the orginal server name if not found.
static java.lang.String getPort(java.lang.String sDesc)
          Returns the Port for the specified server, or 80 if not found.
private static com.flexstor.common.data.ejb.server.ServerData getServerData(java.lang.String sDesc)
          Return a ServerData object based on the argument.
static java.lang.String[] getServerList()
          Returns a list of server names.
static java.lang.String getServerName(java.lang.String sDesc)
          Returns the server name using the DNS name or IP Address
static boolean hasEntries()
          Return true if there is at least one server listed
static boolean initialize()
          Loads a list of all available servers.
static boolean initialize(java.util.Vector vKeys)
          Loads a list of servers for the specified keys.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static ServerList instance

servers

private static java.util.Hashtable servers

debug

private static final boolean debug
See Also:
Constant Field Values
Constructor Detail

ServerList

private ServerList()
Method Detail

getInstance

public static ServerList getInstance()

initialize

public static boolean initialize()
Loads a list of all available servers.


initialize

public static boolean initialize(java.util.Vector vKeys)
Loads a list of servers for the specified keys.


getServerData

private static com.flexstor.common.data.ejb.server.ServerData getServerData(java.lang.String sDesc)
Return a ServerData object based on the argument.


contains

public static boolean contains(java.lang.String sDesc)
Returns true if the server passed in the argument is in the current server list.


getDNSName

public static java.lang.String getDNSName(java.lang.String sDesc)
Returns the DNS name for the specified server, or the orginal argument if not found.


getIPAddress

public static java.lang.String getIPAddress(java.lang.String sDesc)
Returns the IP Address for the specified server, or the orginal server name if not found.


getPort

public static java.lang.String getPort(java.lang.String sDesc)
Returns the Port for the specified server, or 80 if not found.


getServerList

public static java.lang.String[] getServerList()
Returns a list of server names.


getServerName

public static java.lang.String getServerName(java.lang.String sDesc)
Returns the server name using the DNS name or IP Address


getAppleTalkVendor

public static int getAppleTalkVendor(java.lang.String sDesc)
Returns the AppleTalkVendor for this server given the server name, dns or ip address.


hasEntries

public static boolean hasEntries()
Return true if there is at least one server listed


getDNSServerList

public static java.lang.String[] getDNSServerList()
Return the string array of DNS names for the server list