public class RepositoryConfig extends HashMap<String,Object>
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:
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
static String |
K_CONFIG_ROOT |
static String |
K_INSTALL_ROOT |
static String |
K_REFRESH_CONFIG_CONTEXT |
Constructor and Description |
---|
RepositoryConfig()
Creates a RepositoryConfig based off the instance root property
|
RepositoryConfig(String instanceRootString)
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:
<repositoryRootDirectory>/<repositoryName>/<instanceName>
|
RepositoryConfig(String repositoryName,
String repositoryRoot)
Creates a RepositoryConfig for a domain
|
RepositoryConfig(String repositoryName,
String repositoryRoot,
String instanceName)
Creates a RepositoryConfig for a node agent
|
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
|
Modifier and Type | Method and Description |
---|---|
String |
getConfigRoot() |
String |
getConfigurationName() |
String |
getDisplayName() |
protected String |
getFilePath(String propertyName) |
String |
getInstallRoot() |
String |
getInstanceName() |
Boolean |
getRefreshConfigContext() |
String |
getRepositoryName() |
String |
getRepositoryRoot() |
void |
setConfigurationName(String configurationName) |
void |
setInstanceName(String instanceName) |
void |
setRefreshConfingContext(boolean refresh) |
protected void |
setRepositoryRoot(String repositoryRoot) |
String |
toString() |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode
public static final String K_INSTALL_ROOT
public static final String K_CONFIG_ROOT
public static final String K_REFRESH_CONFIG_CONTEXT
public RepositoryConfig(String repositoryName, String repositoryRoot, String instanceName, String configName)
repositoryName
- Name of the domain or node agent. Cannot be null.repositoryRoot
- Root directory where the domain or node agent resides. Cannot be nullinstanceName
- Name of the server instance. May be nullconfigName
- Name of the configuration. May be nullpublic RepositoryConfig(String repositoryName, String repositoryRoot, String instanceName)
repositoryName
- Name of the domain or node agent.repositoryRoot
- Root directory where the domain or node agent resides.instanceName
- Name of the server instance.public RepositoryConfig(String repositoryName, String repositoryRoot)
repositoryName
- Name of the domain or node agent.repositoryRoot
- Root directory where the domain or node agent resides.public RepositoryConfig()
RepositoryConfig(java.lang.String)
public RepositoryConfig(String instanceRootString)
instanceRootString
- public String toString()
toString
in class AbstractMap<String,Object>
public void setConfigurationName(String configurationName)
public String getConfigurationName()
public String getDisplayName()
public void setInstanceName(String instanceName)
public String getInstanceName()
public String getRepositoryName()
protected void setRepositoryRoot(String repositoryRoot)
public String getRepositoryRoot()
public String getInstallRoot()
public String getConfigRoot()
public Boolean getRefreshConfigContext()
public void setRefreshConfingContext(boolean refresh)
Copyright © 2020. All rights reserved.