public class EnvironmentHostMapping extends Object
Modifier and Type | Field and Description |
---|---|
static EnvironmentHostMapping |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
protected Host |
findHost(String nameOrAddress,
Topology topology)
Find a host and return this host when found
|
protected MappedDomain |
findMappedDomain(Host host,
Domain topologyDomain,
OracleHome topologyOracleHome)
Find the right mappedDomain inside a host
|
void |
updateHost(NodeManager nodeManager,
Topology topology,
Domain topologyDomain,
OracleHome topologyOracleHome,
Boolean refreshOnly)
Add a new host to the topology based on the nodemanager and add a nodemanager reference to the domain mapping
|
public static final EnvironmentHostMapping INSTANCE
protected Host findHost(String nameOrAddress, Topology topology)
nameOrAddress
- use address or id to find out a match in the topology hoststopology
- Topology object with contains all the hostsprotected MappedDomain findMappedDomain(Host host, Domain topologyDomain, OracleHome topologyOracleHome)
host
- which contains oraclehome and domain mappingstopologyDomain
- the topology domain object which will be updated, based on the environmentTargettopologyOracleHome
- the topology oracleHome object which will be used, based on the environmentTargetpublic void updateHost(NodeManager nodeManager, Topology topology, Domain topologyDomain, OracleHome topologyOracleHome, Boolean refreshOnly) throws FMWEnvSpecException
nodeManager
- Topology Nodemanager objecttopology
- Topology object which will be updated with a new host based on the topology nodemanager objecttopologyDomain
- the topology domain object which will be updated, based on the environmentTargettopologyOracleHome
- the topology oracleHome object which will be used, based on the environmentTargetrefreshOnly
- only update existing objects or attributesFMWEnvSpecException
- if an error occurs