public class EnvironmentBootstrapMapping extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_GENERATED_MODEL_VERSION_NUMBER
This constant controls the version number that gets put inside model objects (e.g.,
topology, domain profile, blueprint, etc.) created from scratch where no version
number was specified.
|
Constructor and Description |
---|
EnvironmentBootstrapMapping() |
Modifier and Type | Method and Description |
---|---|
static Domain |
buildBootstrapDomain(String domainId,
String domainPath,
String adminUrl,
String adminCredentialRef)
Deprecated.
- Use
buildBootstrapDomain(String, String, String, String, String) . Domain name
is a mandatory attribute.This method defaults domainName to be same as domainId and invokes
buildBootstrapDomain(String, String, String, String, String) |
static Domain |
buildBootstrapDomain(String domainId,
String domainName,
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 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 final String DEFAULT_GENERATED_MODEL_VERSION_NUMBER
@Deprecated public static Domain buildBootstrapDomain(String domainId, String domainPath, String adminUrl, String adminCredentialRef) throws FMWEnvSpecException
buildBootstrapDomain(String, String, String, String, String)
. Domain name
is a mandatory attribute.This method defaults domainName to be same as domainId and invokes
buildBootstrapDomain(String, String, String, String, String)
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
- which contains a reference to a credential which will be used for the adminserverFMWEnvSpecException
- when domainId is nullpublic static Domain buildBootstrapDomain(String domainId, String domainName, String domainPath, String adminUrl, String adminCredentialRef) throws FMWEnvSpecException
domainId
- - id value for the Topology domain objectdomainName
- - name value for the Topology domain objectdomainPath
- - full path to the domain folder necessary for offlineadminUrl
- - t3 url to the adminserver necessary for onlineadminCredentialRef
- - contains a reference to a credential which will be used for
the adminserverFMWEnvSpecException
- when domainId or domainName 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
- fired when the input parameters are not validpublic static Host mapHostToTopology(Topology topology) throws FMWEnvSpecException
topology
- Topology object to add Host toFMWEnvSpecException
- throws exception 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 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