com.wrq.vhi.sconfig
Class ServerConfig

java.lang.Object
  extended by com.wrq.vhi.sconfig.ServerConfig

public final class ServerConfig
extends java.lang.Object

Collection of factory methods for creating various interfaces.


Constructor Summary
ServerConfig()
           
 
Method Summary
static IAADSConfiguration newAADSConfiguration()
          Create an IAADSConfiguration instance.
static IAADSConfiguration newAADSConfiguration(IAADSConnection aadsConn)
          Create an IAADSConfiguration instance.
static IAADSConnection newAADSConnection()
          Create an IAADSConnection instance.
static IAADSConnection newAADSConnection(java.lang.String AADSName)
          Create an IAADSConnection instance.
static IAADSConnection newAADSConnection(java.lang.String AADSName, java.lang.String keystoreFile)
          Create an IAADSConnection instance.
static IDomainAdminSession newDomainAdminSession()
          Create an IDomainAdminSession instance for a VHI domain.
static IDomainAdminSession newDomainAdminSession(java.lang.String domainName, IAADSConnection aadsConn, java.lang.String username, java.lang.String password)
          Create an IDomainAdminSession instance for a VHI domain
static IModelBrowser newModelBrowser(IDomainAdminSession idas)
          Create an IModelBrowser instance.
static IModelBrowser newModelBrowser(IServerAdminSession isas)
          Create an IModelBrowser instance.
static IMvlBrowser newMvlBrowser(IDomainAdminSession idas)
          Create an IMvlBrowser instance.
static IMvlBrowser newMvlBrowser(IServerAdminSession isas)
          Create an IMvlBrowser instance.
static IServerAdminSession newServerAdminSession()
          Create an IServerAdminSession instance for a VHI server.
static IServerAdminSession newServerAdminSession(java.lang.String serverName, IAADSConnection aadsConn, java.lang.String username, java.lang.String password)
          Create an IServerAdminSession instance for a VHI server.
static ISessionPoolBrowser newSessionPoolBrowser(IDomainAdminSession idas)
          Create an ISessionPoolBrowser instance.
static ISessionPoolBrowser newSessionPoolBrowser(IServerAdminSession isas)
          Create an ISessionPoolBrowser instance.
static void SCException(java.util.List status)
          Format error message text and throw an SCException if there are errors reported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerConfig

public ServerConfig()
Method Detail

newAADSConfiguration

public static IAADSConfiguration newAADSConfiguration()
Create an IAADSConfiguration instance.

Returns:
Instance of an IAADSConfiguration.

newAADSConfiguration

public static IAADSConfiguration newAADSConfiguration(IAADSConnection aadsConn)
Create an IAADSConfiguration instance.

Parameters:
aadsConn - Instance of an IAADSConnection.
Returns:
Instance of an IAADSConfiguration.
Throws:
java.lang.IllegalArgumentException - if the argument is null.

newAADSConnection

public static IAADSConnection newAADSConnection()
Create an IAADSConnection instance.

Returns:
Instance of an IAADSConnection.

newAADSConnection

public static IAADSConnection newAADSConnection(java.lang.String AADSName)
Create an IAADSConnection instance.

Parameters:
AADSName - Name of the AADS for this instance.
Returns:
Instance of an IAADSConnection.
Throws:
java.lang.IllegalArgumentException - if the argument is null.

newAADSConnection

public static IAADSConnection newAADSConnection(java.lang.String AADSName,
                                                java.lang.String keystoreFile)
                                         throws java.io.IOException,
                                                java.io.FileNotFoundException,
                                                java.lang.ClassNotFoundException
Create an IAADSConnection instance.

Parameters:
AADSName - Name of the AADS for this instance.
keystoreFile - Name of a keystore file containing AADS certificates used for authentication.
Returns:
Instance of an IAADSConnection.
Throws:
java.io.IOException - if there is an error reading the keystore file.
java.io.FileNotFoundException - if there is an error opening the keystore file.
ClassNotFound - exception if the contents of the keystore file are not recognized.
java.lang.IllegalArgumentException - if AADSName is null.
java.lang.ClassNotFoundException

newDomainAdminSession

public static IDomainAdminSession newDomainAdminSession()
Create an IDomainAdminSession instance for a VHI domain.

Returns:
Instance of an IAdminSession

newDomainAdminSession

public static IDomainAdminSession newDomainAdminSession(java.lang.String domainName,
                                                        IAADSConnection aadsConn,
                                                        java.lang.String username,
                                                        java.lang.String password)
Create an IDomainAdminSession instance for a VHI domain

Parameters:
domainName - Name of the VHI domain.
aadsConn - Instance of an IAADSConnection.
username - Username for authentication.
password - Password for authentication.
Returns:
Instance of an IDomainAdminSession
Throws:
java.lang.IllegalArgumentException - if domainName is null.
java.lang.IllegalArgumentException - if aadsConn is null.

newServerAdminSession

public static IServerAdminSession newServerAdminSession()
Create an IServerAdminSession instance for a VHI server.

Returns:
Instance of an IServerAdminSession

newServerAdminSession

public static IServerAdminSession newServerAdminSession(java.lang.String serverName,
                                                        IAADSConnection aadsConn,
                                                        java.lang.String username,
                                                        java.lang.String password)
Create an IServerAdminSession instance for a VHI server.

Parameters:
serverName - Name of the VHI server.
aadsConn - Instance of an IAADSConnection.
username - Username for authentication.
password - Password for authentication.
Returns:
Instance of an IServerAdminSession
Throws:
java.lang.IllegalArgumentException - if serverName is null.
java.lang.IllegalArgumentException - if aadsConn is null.

newMvlBrowser

public static IMvlBrowser newMvlBrowser(IServerAdminSession isas)
Create an IMvlBrowser instance.

Parameters:
isas - Reference to IServerAdminSession
Returns:
Instance of an IMvlBrowser.
Throws:
java.lang.IllegalArgumentException - if isas is null.

newMvlBrowser

public static IMvlBrowser newMvlBrowser(IDomainAdminSession idas)
Create an IMvlBrowser instance.

Parameters:
idas - Reference to IDomainAdminSession
Returns:
Instance of an IMvlBrowser.
Throws:
java.lang.IllegalArgumentException - if idas is null.

newModelBrowser

public static IModelBrowser newModelBrowser(IServerAdminSession isas)
Create an IModelBrowser instance.

Parameters:
isas - Reference to IServerAdminSession
Returns:
Instance of an IModelBrowser.
Throws:
java.lang.IllegalArgumentException - if isas is null.

newModelBrowser

public static IModelBrowser newModelBrowser(IDomainAdminSession idas)
Create an IModelBrowser instance.

Parameters:
idas - Reference to IDomainAdminSession
Returns:
Instance of an IModelBrowser.
Throws:
java.lang.IllegalArgumentException - if idas is null.

newSessionPoolBrowser

public static ISessionPoolBrowser newSessionPoolBrowser(IServerAdminSession isas)
Create an ISessionPoolBrowser instance.

Parameters:
isas - Reference to IServerAdminSession
Returns:
Instance of an ISessionPoolBrowser.
Throws:
java.lang.IllegalArgumentException - if isas is null.

newSessionPoolBrowser

public static ISessionPoolBrowser newSessionPoolBrowser(IDomainAdminSession idas)
Create an ISessionPoolBrowser instance.

Parameters:
idas - Reference to IDomainAdminSession
Returns:
Instance of an ISessionPoolBrowser.
Throws:
java.lang.IllegalArgumentException - if idas is null.

SCException

public static void SCException(java.util.List status)
                        throws SCException
Format error message text and throw an SCException if there are errors reported.

Parameters:
status - List of SCStatus container objects detailing error events.
Throws:
SCException - thrown if the list is valid and non-null.
java.lang.IllegalArgumentException - thrown if the list contains objects that are not SCStatus containers.