com.sun.enterprise.admin.servermgmt
Class DomainConfig

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,Object>
          extended by com.sun.enterprise.admin.servermgmt.RepositoryConfig
              extended by com.sun.enterprise.admin.servermgmt.DomainConfig
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class DomainConfig
extends RepositoryConfig

This class defines the keys that are used to create the domain config object. Almost all the methods of DomainsManager require the domain config to be passed as java.util.Map, the key set of which is defined here.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
static String K_ADMIN_CERT_DN
           
static String K_ADMIN_PORT
           
static String K_DEBUG
           
static String K_DOMAINS_ROOT
           
static String K_EXTRA_PASSWORDS
           
static int K_FLAG_START_DOMAIN_NEEDS_ADMIN_USER
           
static String K_HOST_NAME
           
static String K_HTTP_SSL_PORT
           
static String K_IIOP_MUTUALAUTH_PORT
           
static String K_IIOP_SSL_PORT
           
static String K_INSTANCE_CERT_DN
           
static String K_INSTANCE_PORT
           
static String K_JAVA_DEBUGGER_PORT
           
static String K_JMS_PORT
           
static String K_JMX_PORT
           
static String K_MASTER_PASSWORD
           
static String K_NEW_MASTER_PASSWORD
           
static String K_ORB_LISTENER_PORT
           
static String K_OSGI_SHELL_TELNET_PORT
           
static String K_PASSWORD
           
static String K_PROFILE
           
static String K_SAVE_MASTER_PASSWORD
           
static String K_SECURE_ADMIN_IDENTIFIER
           
static String K_SERVERID
           
static String K_TEMPLATE_NAME
           
static String K_USER
          These constants define the possbile Hash Map keys that can reside in DomainConfig MAKE SURE THAT KEYS FOR PORTS END IN THE STRING "PORT" (case ignored) - this is used in PEDomainConfigValidator to ensure that the ports are unique!
static String K_VALIDATE_PORTS
           
static String K_VERBOSE
           
static String KEYTOOLOPTIONS
           
 
Fields inherited from class com.sun.enterprise.admin.servermgmt.RepositoryConfig
K_CONFIG_ROOT, K_INSTALL_ROOT, K_REFRESH_CONFIG_CONTEXT
 
Constructor Summary
DomainConfig(String domainName, Integer adminPort, String domainRoot, String adminUser, String adminPassword, String masterPassword, Boolean saveMasterPassword, Integer instancePort, Integer jmsPort, Integer orbPort, Integer httpSSLPort, Integer iiopSSLPort, Integer iiopMutualAuthPort, Integer jmxAdminPort, Integer osgiShellTelnetPort, Integer javaDebuggerPort, Properties domainProperties)
          This constructor is used at domain creation time only.
DomainConfig(String domainName, String domainRoot)
          The DomainConfig always contains the K_DOMAINS_ROOT and K_HOST_NAME attributes.
 
Method Summary
 String getDomainName()
           
 String getDomainRoot()
           
 Map getPorts()
           
 String getProfile()
           
 
Methods inherited from class com.sun.enterprise.admin.servermgmt.RepositoryConfig
getConfigRoot, getConfigurationName, getDisplayName, getFilePath, getInstallRoot, getInstanceName, getRefreshConfigContext, getRepositoryName, getRepositoryRoot, setConfigurationName, setInstanceName, setRefreshConfingContext, setRepositoryRoot, toString
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

K_USER

public static final String K_USER
These constants define the possbile Hash Map keys that can reside in DomainConfig MAKE SURE THAT KEYS FOR PORTS END IN THE STRING "PORT" (case ignored) - this is used in PEDomainConfigValidator to ensure that the ports are unique!

See Also:
Constant Field Values

K_PASSWORD

public static final String K_PASSWORD
See Also:
Constant Field Values

K_NEW_MASTER_PASSWORD

public static final String K_NEW_MASTER_PASSWORD
See Also:
Constant Field Values

K_MASTER_PASSWORD

public static final String K_MASTER_PASSWORD
See Also:
Constant Field Values

K_SAVE_MASTER_PASSWORD

public static final String K_SAVE_MASTER_PASSWORD
See Also:
Constant Field Values

K_ADMIN_PORT

public static final String K_ADMIN_PORT
See Also:
Constant Field Values

K_INSTANCE_PORT

public static final String K_INSTANCE_PORT
See Also:
Constant Field Values

K_PROFILE

public static final String K_PROFILE
See Also:
Constant Field Values

K_DOMAINS_ROOT

public static final String K_DOMAINS_ROOT
See Also:
Constant Field Values

K_HOST_NAME

public static final String K_HOST_NAME
See Also:
Constant Field Values

K_JMS_PORT

public static final String K_JMS_PORT
See Also:
Constant Field Values

K_ORB_LISTENER_PORT

public static final String K_ORB_LISTENER_PORT
See Also:
Constant Field Values

K_SERVERID

public static final String K_SERVERID
See Also:
Constant Field Values

K_TEMPLATE_NAME

public static final String K_TEMPLATE_NAME
See Also:
Constant Field Values

K_HTTP_SSL_PORT

public static final String K_HTTP_SSL_PORT
See Also:
Constant Field Values

K_IIOP_SSL_PORT

public static final String K_IIOP_SSL_PORT
See Also:
Constant Field Values

K_IIOP_MUTUALAUTH_PORT

public static final String K_IIOP_MUTUALAUTH_PORT
See Also:
Constant Field Values

K_OSGI_SHELL_TELNET_PORT

public static final String K_OSGI_SHELL_TELNET_PORT
See Also:
Constant Field Values

K_JAVA_DEBUGGER_PORT

public static final String K_JAVA_DEBUGGER_PORT
See Also:
Constant Field Values

K_DEBUG

public static final String K_DEBUG
See Also:
Constant Field Values

K_VERBOSE

public static final String K_VERBOSE
See Also:
Constant Field Values

K_VALIDATE_PORTS

public static final String K_VALIDATE_PORTS
See Also:
Constant Field Values

K_JMX_PORT

public static final String K_JMX_PORT
See Also:
Constant Field Values

K_EXTRA_PASSWORDS

public static final String K_EXTRA_PASSWORDS
See Also:
Constant Field Values

K_FLAG_START_DOMAIN_NEEDS_ADMIN_USER

public static final int K_FLAG_START_DOMAIN_NEEDS_ADMIN_USER
See Also:
Constant Field Values

KEYTOOLOPTIONS

public static final String KEYTOOLOPTIONS
See Also:
Constant Field Values

K_ADMIN_CERT_DN

public static final String K_ADMIN_CERT_DN
See Also:
Constant Field Values

K_INSTANCE_CERT_DN

public static final String K_INSTANCE_CERT_DN
See Also:
Constant Field Values

K_SECURE_ADMIN_IDENTIFIER

public static final String K_SECURE_ADMIN_IDENTIFIER
See Also:
Constant Field Values
Constructor Detail

DomainConfig

public DomainConfig(String domainName,
                    String domainRoot)
             throws DomainException
The DomainConfig always contains the K_DOMAINS_ROOT and K_HOST_NAME attributes.

Throws:
DomainException

DomainConfig

public DomainConfig(String domainName,
                    Integer adminPort,
                    String domainRoot,
                    String adminUser,
                    String adminPassword,
                    String masterPassword,
                    Boolean saveMasterPassword,
                    Integer instancePort,
                    Integer jmsPort,
                    Integer orbPort,
                    Integer httpSSLPort,
                    Integer iiopSSLPort,
                    Integer iiopMutualAuthPort,
                    Integer jmxAdminPort,
                    Integer osgiShellTelnetPort,
                    Integer javaDebuggerPort,
                    Properties domainProperties)
             throws DomainException
This constructor is used at domain creation time only.

Throws:
DomainException
Method Detail

getDomainName

public String getDomainName()

getDomainRoot

public String getDomainRoot()

getPorts

public Map getPorts()

getProfile

public String getProfile()


Copyright © 2012 GlassFish Community. All Rights Reserved.