public class EnvironmentBootstrapMapping extends Object
| Constructor and Description |
|---|
EnvironmentBootstrapMapping() |
| Modifier and Type | Method and Description |
|---|---|
static Domain |
buildBootstrapDomain(String domainId, String domainPath, String adminUrl, String adminCredentialRef)
Create a Domain object and add the online or offline bootstrap parameters
|
static OracleHome |
buildBootstrapOracleHome(String id, String oracleHomePath, String javaHomePath, Type oracleHomeType)
Create an OracleHome object and add the oracle home bootstrap parameters.
|
static Topology |
buildBootstrapTopology(String topologyName, OracleHome oracleHome, Domain domain)
Create a basic topology object with an Oracle home and a Domain object.
|
static Domain |
mapDomain(EnvironmentModel model, Domain domain)
Maps a Domain to a given EnvironmentModel.
|
static void |
mapDomainToOracleHome(MappedOracleHome mappedOracleHome, Domain domain)
Adds Domain to MappedOracleHome.
|
static Host |
mapHostToTopology(Topology topology)
Adds current Host to Topology if it's not present in the topology.
|
static MappedOracleHome |
mapOracleHomeToHost(Host host, OracleHome oracleHome)
Adds an OracleHome to Host if it's not mapped already.
|
public static Domain buildBootstrapDomain(String domainId, String domainPath, String adminUrl, String adminCredentialRef) throws FMWEnvSpecException
domainId - id value for the Topology domain objectdomainPath - full path to the domain folder necessary for offlineadminUrl - t3 url to the adminserver necessary for onlineadminCredentialRef - a reference to a credential which will be used for the adminserverFMWEnvSpecException - if domainId is nullpublic static OracleHome buildBootstrapOracleHome(String id, String oracleHomePath, String javaHomePath, Type oracleHomeType) throws FMWEnvSpecException
id - The oracle home id when empty oracleHomePath will be usedoracleHomePath - Full path to the oracle homejavaHomePath - Full path to the java homeoracleHomeType - Local or SharedFMWEnvSpecException - when oracheHomePath is nullpublic static Topology buildBootstrapTopology(String topologyName, OracleHome oracleHome, Domain domain) throws FMWEnvSpecException
topologyName - topology nameoracleHome - topology OracleHome objectdomain - topology Domain objectFMWEnvSpecException - if the input parameters are not validpublic static Host mapHostToTopology(Topology topology) throws FMWEnvSpecException
topology - Topology object to add Host toFMWEnvSpecException - if topology parameter is null or if hostname cannot be resolvedpublic static MappedOracleHome mapOracleHomeToHost(Host host, OracleHome oracleHome) throws FMWEnvSpecException
host - Host object to map tooracleHome - OracleHome objectFMWEnvSpecException - if parameters are nullpublic static void mapDomainToOracleHome(MappedOracleHome mappedOracleHome, Domain domain) throws FMWEnvSpecException
mappedOracleHome - MappedOracleHome object to which the domain is to be mappeddomain - Domain object to be added to the MappedOracleHomeFMWEnvSpecException - if MappedOracleHome parameter is nullpublic static Domain mapDomain(EnvironmentModel model, Domain domain) throws FMWEnvSpecException
model - EnvironmentModel to map the Domain todomain - Domain object to be added to the EnvironmentModel's topologyFMWEnvSpecException - if EnvironmentModel is null