Class DomainConfig
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- com.sun.enterprise.admin.servermgmt.RepositoryConfig
-
- 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 extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.admin.servermgmt.RepositoryConfig
K_CONFIG_ROOT, K_INSTALL_ROOT, K_REFRESH_CONFIG_CONTEXT
-
-
Constructor Summary
Constructors Constructor Description 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.DomainConfig(String domainName, String domainRoot, String adminUser, String adminPassword, String masterPassword, Boolean saveMasterPassword, String adminPort, String instancePort, String hazelcastDasPort, String hazelcastStartPort, String hazelcastAutoIncrement, Properties domainProperties)
This constructor is used at domain creation time only.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(String key, Object value)
String
getDomainName()
Properties
getDomainProperties()
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, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
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_PORTBASE
public static final String K_PORTBASE
- 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
-
K_INITIAL_ADMIN_USER_GROUPS
public static final String K_INITIAL_ADMIN_USER_GROUPS
- See Also:
- Constant Field Values
-
K_HAZELCAST_DAS_PORT
public static final String K_HAZELCAST_DAS_PORT
- See Also:
- Constant Field Values
-
K_HAZELCAST_START_PORT
public static final String K_HAZELCAST_START_PORT
- See Also:
- Constant Field Values
-
K_HAZELCAST_AUTO_INCREMENT
public static final String K_HAZELCAST_AUTO_INCREMENT
- 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.- Parameters:
domainName
- The name of the domaindomainRoot
- The root directory of the domain- 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
-
DomainConfig
public DomainConfig(String domainName, String domainRoot, String adminUser, String adminPassword, String masterPassword, Boolean saveMasterPassword, String adminPort, String instancePort, String hazelcastDasPort, String hazelcastStartPort, String hazelcastAutoIncrement, Properties domainProperties) throws DomainException
This constructor is used at domain creation time only.- Throws:
DomainException
-
-