Class RepositoryConfig
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
- Direct Known Subclasses:
DomainConfig
This class represents a repository configuration. A repository can be either a domain, a node
agent, or a server
instance. Configuration specific to each (DomainConfig, AgentConfig, InstanceConfig) is derived
from this class.
A repository config consists of the following attributes:
- repositoryName -- domain or node agent name (e.g. domain1 or agent1)
- repositoryRoot -- the parent directory of the repository (e.g. $installDir/domains or $installDir/agents)
- instanceName -- the optional server instance name (e.g. server1)
- configurationName -- the optional configuration name of the server instance (e.g. default-config).
- For a domain: (domainRootDirectory, domainName, null, null) e.g. ("/sun/appserver/domains", "domain1", null, null)
- For a node agent: (agentRootDirectory, agentName, "agent", null) e.g ("/sun/appserver/agents", "agent1", "agent", null). Note that the instance name of a node agent is always the literal string "agent".
- For a server instance (agentRootDirectory, agentName, instanceName, configName) e.g. ("/sun/appserver/agents", "agent1", "server1", "default-config")
- com.sun.aas.installRoot -- installation root directory stored under the K_INSTALL_ROOT key.
- com.sun.aas.configRoot -- configuration root (for locating asenv.conf) stored under the K_CONFIG_ROOT key.
- Author:
- kebbs
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryConfig(String instanceRootString) Creates a new instance of RepositoryConfig defined using the system property com.sun.aas.instanceRoot.RepositoryConfig(String repositoryName, String repositoryRoot) RepositoryConfig(String repositoryName, String repositoryRoot, String instanceName) RepositoryConfig(String repositoryName, String repositoryRoot, String instanceName, String configName) Creates a new instance of RepositoryConfig The K_INSTALL_ROOT and K_CONFIG_ROOT attributes are implicitly set -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetFilePath(String propertyName) voidsetConfigurationName(String configurationName) voidsetInstanceName(String instanceName) voidsetRefreshConfingContext(boolean refresh) protected voidsetRepositoryRoot(String repositoryRoot) toString()Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode
-
Field Details
-
K_INSTALL_ROOT
- See Also:
-
K_CONFIG_ROOT
- See Also:
-
K_REFRESH_CONFIG_CONTEXT
- See Also:
-
-
Constructor Details
-
RepositoryConfig
public RepositoryConfig(String repositoryName, String repositoryRoot, String instanceName, String configName) Creates a new instance of RepositoryConfig The K_INSTALL_ROOT and K_CONFIG_ROOT attributes are implicitly set -
RepositoryConfig
-
RepositoryConfig
-
RepositoryConfig
public RepositoryConfig() -
RepositoryConfig
Creates a new instance of RepositoryConfig defined using the system property com.sun.aas.instanceRoot. It is assumed that this system property is a directory of the form:/ /
-
-
Method Details
-
toString
- Overrides:
toStringin classAbstractMap<String,Object>
-
getFilePath
-
setConfigurationName
-
getConfigurationName
-
getDisplayName
-
setInstanceName
-
getInstanceName
-
getRepositoryName
-
setRepositoryRoot
-
getRepositoryRoot
-
getInstallRoot
-
getConfigRoot
-
getRefreshConfigContext
-
setRefreshConfingContext
public void setRefreshConfingContext(boolean refresh)
-