public class FileSqlhosts
extends java.lang.Object
| Constructor and Description |
|---|
FileSqlhosts(java.util.Properties sqhenv)
Constructs a FileSqlhost Object.
|
| Modifier and Type | Method and Description |
|---|---|
ServerInfo |
getServer(java.lang.String sname)
Gets the ServerInfo given the server name string
|
ServerGroup |
getServerGroup(java.lang.String sname)
Gets the ServerGroup given the server group name string
|
ServerGroup |
listServers()
Lists all the servers in the SQLHOSTS
|
public FileSqlhosts(java.util.Properties sqhenv)
throws IfxJNSException
sqhenv - the environement properties list that provides the
necessary parameters.
Following [optional] properties are defined :
"SQLH_FILE" --> value 'the file name' if SQLH_TYPE is "FILE"IfxJNSExceptionpublic ServerInfo getServer(java.lang.String sname) throws IfxJNSException
sname - the server name stringIfxJNSExceptionpublic ServerGroup getServerGroup(java.lang.String sname) throws IfxJNSException
sname - the server group name stringIfxJNSExceptionpublic ServerGroup listServers() throws IfxJNSException
IfxJNSException