public class EnvironmentModel extends Object implements oracle.fmwplatform.envspec.common.EnvironmentSpecification
Constructor and Description |
---|
EnvironmentModel()
Creates an empty EnvironmentModel
|
Modifier and Type | Method and Description |
---|---|
static EnvironmentModel |
createEnvironmentModel(Topology topology, oracle.fmwplatform.credentials.credential.Credentials credentials)
Returns a new environment model created with the specified topology and credentials.
|
Template |
getBaseTemplateForDomain(String domainId)
Returns the base Template from the Domain specified or null if no match is found.
|
ClusterBinding |
getClusterBindingByNameForDomain(String clusterBindingName, Domain domain)
Returns the ClusterBinding for the name specified or null if no match is found.
|
ClusterBinding |
getClusterBindingByNameForDomain(String clusterBindingName, String domainId)
Returns the ClusterBinding for the name and Domain id specified or an empty list if no match is found
|
List<ClusterBinding> |
getClusterBindingsForDomain(Domain domain)
Returns the ClusterBindings for the Domain specified or an empty list if no match is found.
|
List<ClusterBinding> |
getClusterBindingsForDomain(String domainId)
Returns the ClusterBindings associated with the domain specified or an empty list if no match is found.
|
List<String> |
getClusterIdsInDomain(Domain domain)
Returns the Cluster ids associated with the Domain specified or an empty list if no match is found.
|
List<String> |
getClusterIdsInDomain(String domainId)
Returns the Cluster ids associated with the Domain specified or an empty list if no match is found.
|
List<Cluster> |
getClustersInDomain(Domain domain)
Returns the Clusters associated with the Domain specified or an empty list if no match is found.
|
List<Cluster> |
getClustersInDomain(String domainId)
Returns the Clusters associated with the Domain specified or an empty list if no match is found.
|
oracle.fmwplatform.credentials.credential.Credential |
getCredentialByAlias(String alias)
Returns the Credential from the Credentials of this EnvironmentModel for the provided alias or null if no match is found.
|
oracle.fmwplatform.credentials.credential.Credentials |
getCredentials()
Returns the Credentials associated with this EnvironmentModel or null if none are found.
|
Database |
getDatabaseById(String databaseId)
Returns the Database for the databaseId specified or null if it is not found.
|
List<String> |
getDatabaseIds()
Returns the Database ids associated with the Topology in this EnvironmentModel or an empty list if none are found.
|
List<Database> |
getDatabases()
Returns the Databases ids associated with the Topology in this EnvironmentModel or an empty list if none are found
|
List<DataSourceBinding> |
getDataSourceBindingsInDomain(Domain domain)
Returns the DataSourceBindings associated with the Domain specified or an empty list if no match is found
|
List<DataSourceBinding> |
getDataSourceBindingsInDomain(String domainId)
Returns the DataSourceBindings associated with the Domain specified or an empty list if no match is found.
|
List<String> |
getDataSourceNamesInDomain(Domain domain)
Returns the DataSource names associated with the Domain specified or an empty list if no match is found.
|
List<String> |
getDataSourceNamesInDomain(String domainId)
Returns the DataSource names associated with the Domain specified or an empty list if no match is found.
|
Domain |
getDomainById(String domainId)
Returns the Domain for the domainId specified or null if it is not found.
|
List<String> |
getDomainIds()
Returns the Domain ids associated with the Topology in this EnvironmentModel or an empty list if none are found.
|
List<Domain> |
getDomains()
Returns the Domains associated with the Topology in this EnvironmentModel or an empty list if none are found.
|
List<Domain> |
getDomainsByName(String domainName) |
List<Domain> |
getDomainsForNodeManagerId(String nodeManagerId)
Returns the Domains that are associated with the NodeManager specified or an empty list if no matches are found.
|
List<Domain> |
getDomainsForNodeManagerId(String nodeManagerId, boolean localOnly)
Returns the Domains that are associated with the NodeManager specified or an empty list if no matches are found.
|
List<Domain> |
getDomainsOnHost(Host host)
Returns the Domains associated with the Topology in this EnvironmentModel that match the Host specified or an empty list if no match is found.
|
List<Domain> |
getDomainsOnHost(String hostId)
Returns the Domains associated with the Topology in this EnvironmentModel that match the Host specified or an empty list if no match is found.
|
List<Domain> |
getDomainsUsingOracleHome(OracleHome oracleHome)
Returns the Domains using the OracleHome specified or an empty list if no matches are found.
|
List<Domain> |
getDomainsUsingOracleHome(String oracleHomeId)
Returns the Domains that are associated with the OracleHome specified or an empty list if no matches are found
|
List<Template> |
getExtensionTemplatesForDomain(String domainId)
Returns the extension Templates for the Domain specified or an empty list if none are found.
|
Host |
getHostById(String hostId)
Returns the Host for the hostId specified or null if it is not found.
|
Host |
getHostForDomainAndServer(String domainId, String serverName)
Returns the host mapped to this domain and server
|
Host |
getHostForDomainServer(String domainId, String serverName)
Returns the host mapped to a given domain and server
|
Host |
getHostForNodeManager(String nodeManagerId)
Returns the Host associated to the NodeManager specified or null if no match is found.
|
List<String> |
getHostIds()
Returns the Host ids associated with the Topology in this EnvironmentModel or an empty list if none are found.
|
List<String> |
getHostIdsHostingDomain(Domain domain)
Returns the Host ids associated with the Domain specified or an empty list if none are found
|
List<String> |
getHostIdsHostingDomain(String domainId)
Returns the Host ids associated with the Domain specified or an empty list if none are found.
|
List<String> |
getHostIdsHostingOracleHome(OracleHome oracleHome)
Returns the Host ids associated with the OracleHome specified or an empty list if none are found.
|
List<String> |
getHostIdsHostingOracleHome(String oracleHomeId)
Returns the Host ids associated with the OracleHome specified or an empty list if none are found
|
List<Host> |
getHosts()
Returns the Hosts associated with the Topology in this EnvironmentModel or an empty list if none are found.
|
List<Host> |
getHostsHostingDomain(Domain domain)
Returns the Hosts associated with the Domain specified or an empty list if none are found.
|
List<Host> |
getHostsHostingDomain(String domainId)
Returns the Hosts associated with the Domain specified or an empty list if none are found.
|
List<Host> |
getHostsHostingOracleHome(OracleHome oracleHome)
Returns the Hosts associated with the OracleHome specified or an empty list if none are found.
|
List<Host> |
getHostsHostingOracleHome(String oracleHomeId)
Returns the Hosts associated with the OracleHome specified or an empty list if none are found.
|
MappedDomain |
getMappedDomainForHostAndDomain(String hostId, String domainId)
Returns the MappedDomain that is associated to the Domain and Host specified or null if no match is found.
|
MappedOracleHome |
getMappedOracleHomeForHostAndOracleHome(String hostId, String oracleHomeId)
Returns The MappedOracleHome for the Host and OracleHome specified or null if no match is found.
|
NodeManager |
getNodeManagerById(String nodeManagerId)
Returns the NodeManager for the nodeManagerId specified or null if it is not found.
|
List<NodeManager> |
getNodeManagerByName(String nodeManagerName) |
NodeManager |
getNodeManagerForDomainAndServer(String domainId, String serverName)
Returns the NodeManager associated with the Domain and Server specified or null if it is not found.
|
List<String> |
getNodeManagerIds()
Returns the NodeManager ids associated with the Topology in this EnvironmentModel or an empty list if none are found.
|
List<NodeManager> |
getNodeManagers()
Returns the NodeManagers associated with the Topology in this EnvironmentModel or an empty list if none are found.
|
List<NodeManager> |
getNodeManagersForDomain(String domainId)
Returns the NodeManagers associated with the Domain specified or null if it is not found.
|
OracleHome |
getOracleHomeById(String oracleHomeId)
Returns the OracleHome for the oracleHomeId specified or null if it is not found.
|
OracleHome |
getOracleHomeForAdminServerOfDomain(String domainId)
Returns the OracleHome mapped to the AdminServer of the Domain specified or null if no match is found.
|
OracleHome |
getOracleHomeForNodeManager(String nodeManagerId)
Return the OracleHome that was targeted in the model
|
List<String> |
getOracleHomeIds()
Returns the OracleHome ids associated with the Topology in this EnvironmentModel or an empty list if none are found.
|
List<OracleHome> |
getOracleHomes()
Returns the OracleHomes associated with the Topology in this EnvironmentModel or an empty list if none are found
|
List<ServerBinding> |
getServerBindingsInClusterForDomain(String clusterName, String domainId)
Returns the ServerBindings associated with the Domain and Cluster specified or an empty list if none are found
|
List<ServerBinding> |
getServerBindingsOnHost(Host host)
Returns the ServerBindings associated with the Host specified or an empty list if none are found.
|
List<ServerBinding> |
getServerBindingsOnHost(String hostId)
Returns the ServerBindings associated with the Host specified or an empty list if none are found Returns an empty list if none found.
|
List<ServerBinding> |
getServerBindingsOnHostAndDomain(String hostId, String domainId)
Returns the ServerBindings associated with the Domain and Host specified or an empty list if none are found.
|
Map<String,Set<String>> |
getServerGroupMapFromTemplates(String domainId)
Returns a map of server name to list of server groups found in all the templates reference in the given domain
|
List<String> |
getServerGroups(String domainId, String serverName)
Returns the Server group names for the specified Domain and Server or and empty list is none are found.
|
List<String> |
getServerIdsInDomain(Domain domain)
Returns the Server ids associated with the Domain specified or an empty list if none are found.
|
List<String> |
getServerIdsInDomain(String domainId)
Returns the Server ids associated with the Domain specified or an empty list if none are found.
|
List<Server> |
getServersInDomain(Domain domain)
Returns the Servers associated with the Domain specified or an empty list if none are found.
|
List<Server> |
getServersInDomain(String domainId)
Returns the Servers associated with the Domain specified or an empty list if none are found.
|
List<SettingWithAliasWLSTValues> |
getSettingWithAliasWLSTValues(oracle.fmwplatform.envspec.common.Tunable tunable)
Returns a list of Setting key, value as well as the corresponding WLST online and offline path and attributes.
|
List<String> |
getTemplateNamesInDomain(Domain domain)
Returns the Templates associated with the Domain specified or an empty list if none are found.
|
List<String> |
getTemplateNamesInDomain(String domainId)
Returns the Template names associated with the Domain specified or an empty list if none are found.
|
List<Template> |
getTemplatesInDomain(Domain domain)
Returns the Templates associated with the Domain specified or an empty list if none are found.
|
List<Template> |
getTemplatesInDomain(String domainId)
Returns the Templates associated with the Domain specified or an empty list if none are found.
|
Topology |
getTopology()
Returns the Topology associated with this EnvironmentModel or null if it has not been set.
|
WebTier |
getWebTierById(String webTierId)
Returns the WebTier for the webTierId specified or null if it is not found.
|
List<WebTier> |
getWebTiers()
Returns the WebTiers associated with the Topology in this EnvironmentModel or an empty list if none are found.
|
List<WebTier> |
getWebTiersForDomain(String domainId)
Returns the list of WebTier objects for the specified domain
|
void |
setCredentials(oracle.fmwplatform.credentials.credential.Credentials credentials)
Sets the Credentials associated with this EnvironmentModel.
|
void |
setTopology(Topology topology)
Sets the Topology associated with this EnvironmentModel.
|
List<oracle.fmwplatform.util.validation.ValidationMessage> |
validate()
Performs basic validation without reference to any actual environment.
|
List<oracle.fmwplatform.util.validation.ValidationMessage> |
validate(ModelTarget target)
Validates a single environment model target against this model.
|
public static EnvironmentModel createEnvironmentModel(Topology topology, oracle.fmwplatform.credentials.credential.Credentials credentials)
topology
- the Topology to be wrapped by this EnvironmentModelcredentials
- the Credentials to be wrapped by this EnvironmentModelpublic Template getBaseTemplateForDomain(String domainId) throws FMWEnvSpecException
domainId
- the id representing the Domain who's base Template is to be returnedFMWEnvSpecException
- If any external file references cannot be read or when a custom template does not have location specifiedpublic ClusterBinding getClusterBindingByNameForDomain(String clusterBindingName, Domain domain)
clusterBindingName
- the name of the cluster who's ClusterBinding is to be returneddomain
- the Domain representing the Domain who's ClusterBinding is to be returnedpublic ClusterBinding getClusterBindingByNameForDomain(String clusterBindingName, String domainId)
clusterBindingName
- the name of the Cluster who's ClusterBinding is to be returneddomainId
- the id representing the Domain who's ClusterBinding is to be returnedpublic List<ClusterBinding> getClusterBindingsForDomain(Domain domain)
domain
- the Domain Domain who's ClusterBinding is to be returnedpublic List<ClusterBinding> getClusterBindingsForDomain(String domainId)
domainId
- the id representing the Domain who's ClusterBindings are to be returnedpublic List<String> getClusterIdsInDomain(Domain domain) throws FMWEnvSpecException
domain
- the Domain who's Cluster ids are to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic List<String> getClusterIdsInDomain(String domainId) throws FMWEnvSpecException
domainId
- the id representing the Domain who's Cluster ids are to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic List<Cluster> getClustersInDomain(Domain domain) throws FMWEnvSpecException
domain
- the Domain who's Clusters are to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic List<Cluster> getClustersInDomain(String domainId) throws FMWEnvSpecException
domainId
- the id representing the Domain who's Clusters are to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic oracle.fmwplatform.credentials.credential.Credentials getCredentials()
public oracle.fmwplatform.credentials.credential.Credential getCredentialByAlias(String alias)
alias
- the Alias representing the specific Credential from this EnvironmentModels Credentialspublic Database getDatabaseById(String databaseId)
databaseId
- The Database associated with the Topology in this EnvironmentModel for the id specified or null if no match is foundpublic List<String> getDatabaseIds()
public List<Database> getDatabases()
public List<DataSourceBinding> getDataSourceBindingsInDomain(Domain domain)
domain
- the Domain who's DataSourceBindings are to be returnedpublic List<DataSourceBinding> getDataSourceBindingsInDomain(String domainId)
domainId
- the id representing the Domain who's DataSourceBindings are to be returnedpublic List<String> getDataSourceNamesInDomain(Domain domain)
domain
- the Domain who's DataSource names are to be returnedpublic List<String> getDataSourceNamesInDomain(String domainId)
domainId
- the id representing the Domain who's DataSource names are to be returnedpublic Domain getDomainById(String domainId)
domainId
- the id representing the Domain that is to be returnedpublic List<String> getDomainIds()
public List<Domain> getDomains()
public List<Domain> getDomainsOnHost(Host host)
host
- the host containing the Domains that are to be returnedpublic List<Domain> getDomainsOnHost(String hostId)
hostId
- the id representing the host who's Domains are to be returnedpublic List<Domain> getDomainsUsingOracleHome(OracleHome oracleHome)
oracleHome
- the OracleHome who's Domains that are to be returnedpublic List<Domain> getDomainsForNodeManagerId(String nodeManagerId)
nodeManagerId
- the id representing the NodeManager who's Domains are to be returnedpublic List<Domain> getDomainsForNodeManagerId(String nodeManagerId, boolean localOnly)
nodeManagerId
- the id representing the NodeManager who's Domains are to be returnedlocalOnly
- only return domains for hosts that are local to current runtime ex: 127.0.0.1 , localhost, hostname mapped to local network interfacepublic List<Domain> getDomainsUsingOracleHome(String oracleHomeId)
oracleHomeId
- the id representing the OracleHome who's Domains are to be returnedpublic List<Template> getExtensionTemplatesForDomain(String domainId) throws FMWEnvSpecException
domainId
- the id representing the Domain who's Templates are to be returnedFMWEnvSpecException
- When any external file references cannot be read or when a custom template does not have location specifiedpublic Host getHostById(String hostId)
hostId
- The id representing the Host to be returnedpublic Host getHostForNodeManager(String nodeManagerId)
nodeManagerId
- the id representing the NodeManager mapped to the Host that is to be returnedpublic OracleHome getOracleHomeForNodeManager(String nodeManagerId)
nodeManagerId
- the id of the NodeManagerpublic List<String> getHostIds()
public List<String> getHostIdsHostingDomain(Domain domain)
domain
- the Domain who's Host ids are to be returnedpublic List<String> getHostIdsHostingDomain(String domainId)
domainId
- the id representing the Domain who's Host ids are to be returnedpublic List<String> getHostIdsHostingOracleHome(OracleHome oracleHome)
oracleHome
- the OracleHome who's Host ids are to be returnedpublic List<String> getHostIdsHostingOracleHome(String oracleHomeId)
oracleHomeId
- the id representing the OracleHome who's Host ids are to be returnedpublic List<Host> getHosts()
public List<Host> getHostsHostingDomain(Domain domain)
domain
- the Domain who's Hosts are to be returnedpublic List<Host> getHostsHostingDomain(String domainId)
domainId
- the id representing the Domain who's Hosts are to be returnedpublic List<Host> getHostsHostingOracleHome(OracleHome oracleHome)
oracleHome
- the OracleHome who's Hosts are to be returnedpublic List<Host> getHostsHostingOracleHome(String oracleHomeId)
oracleHomeId
- the id representing the OracleHome who's Hosts are to be returnedpublic Host getHostForDomainAndServer(String domainId, String serverName)
domainId
- id of the requested domainserverName
- name of the server The name of the ServerBindingpublic Host getHostForDomainServer(String domainId, String serverName)
domainId
- the id of the domain to search forserverName
- the name of the server to search forpublic NodeManager getNodeManagerById(String nodeManagerId)
nodeManagerId
- the id representing the NodeManager to be returnedpublic List<NodeManager> getNodeManagerByName(String nodeManagerName)
public NodeManager getNodeManagerForDomainAndServer(String domainId, String serverName)
domainId
- the id representing the Domain who's NodeManager is to be returnedserverName
- The name of the Serverpublic List<String> getNodeManagerIds()
public List<NodeManager> getNodeManagers()
public List<NodeManager> getNodeManagersForDomain(String domainId)
domainId
- the id representing the Domain who's NodeManagers are to be returnedpublic OracleHome getOracleHomeById(String oracleHomeId)
oracleHomeId
- the id representing the OracleHome that is to be returnedpublic OracleHome getOracleHomeForAdminServerOfDomain(String domainId) throws FMWEnvSpecException
domainId
- the id representing the Domain who's OracleHome is to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic List<String> getOracleHomeIds()
public List<OracleHome> getOracleHomes()
public List<ServerBinding> getServerBindingsInClusterForDomain(String clusterName, String domainId) throws FMWEnvSpecException
clusterName
- the name of the Cluster who's ServerBindings are to be returneddomainId
- the id representing the Domain who's ServerBindings are to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic List<ServerBinding> getServerBindingsOnHost(Host host)
host
- the host from which the ServerBindings are to be returnedpublic List<ServerBinding> getServerBindingsOnHost(String hostId)
hostId
- the id representing the Host from which the ServerBindings are to be returnedpublic List<ServerBinding> getServerBindingsOnHostAndDomain(String hostId, String domainId)
hostId
- the id representing the Host from which the ServerBindings are to be returneddomainId
- the ServerBindings associated with the Domain and Host specified or an empty list if none are foundpublic List<String> getServerIdsInDomain(Domain domain) throws FMWEnvSpecException
domain
- the Domain who's Server ids are to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic List<String> getServerIdsInDomain(String domainId) throws FMWEnvSpecException
domainId
- the id representing the Domain who's Server ids are to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic List<Server> getServersInDomain(Domain domain) throws FMWEnvSpecException
domain
- the Domain who's Servers are to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic List<Server> getServersInDomain(String domainId) throws FMWEnvSpecException
domainId
- the id representing the Domain who's Servers are to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic List<SettingWithAliasWLSTValues> getSettingWithAliasWLSTValues(oracle.fmwplatform.envspec.common.Tunable tunable) throws FMWEnvSpecException
AliasWLSTValues.WLSTAttributeTypes
For the type Boolean, the string value of the boolean is returned. Any tokens %x% in the values are replaced with actual values. The effective online or offline value will be null if the setting is not applicable in an online or offline context.tunable
- the tunable model object to retrieve settings forFMWEnvSpecException
- When Setting or Alias information cannot be read from the file system or when the actual value in the setting is not of the datatype defined or when credentials are null in the model when datatype is credential based or when no matching credential is found when datatype is credential basedpublic List<String> getTemplateNamesInDomain(Domain domain) throws FMWEnvSpecException
domain
- the Domain who's Template names are to be returnedFMWEnvSpecException
- When external file references cannot be read or when a custom template does not have location specifiedpublic List<String> getTemplateNamesInDomain(String domainId) throws FMWEnvSpecException
domainId
- the id representing the Domain who's Template names are to be returnedFMWEnvSpecException
- When external file references cannot be read or when a custom template does not have location specifiedpublic List<Template> getTemplatesInDomain(Domain domain) throws FMWEnvSpecException
domain
- the Domain who's Templates are to be returnedFMWEnvSpecException
- When external file references cannot be read or when a custom template does not have location specifiedpublic List<Template> getTemplatesInDomain(String domainId) throws FMWEnvSpecException
domainId
- the id representing the Domain who's Templates are to be returnedFMWEnvSpecException
- When external file references cannot be read or when a custom template does not have location specifiedpublic MappedDomain getMappedDomainForHostAndDomain(String hostId, String domainId)
hostId
- The id representing the Host who's MappedDomain is to be returneddomainId
- the id representing the Domain who's MappedDomain is to be returnedpublic MappedOracleHome getMappedOracleHomeForHostAndOracleHome(String hostId, String oracleHomeId)
hostId
- The id representing the Host who's MappedOracleHome is to be returnedoracleHomeId
- The id of the OracleHome that the MappedOracleHome is associated topublic Topology getTopology()
public void setCredentials(oracle.fmwplatform.credentials.credential.Credentials credentials)
credentials
- the Credentials that are to be wrapped by this EnvironmentModelpublic void setTopology(Topology topology)
topology
- the Topology that is to be associated with this EnvironmentModelpublic List<oracle.fmwplatform.util.validation.ValidationMessage> validate() throws FMWEnvSpecException
EnvironmentModelValidator.validate(EnvironmentModel)
FMWEnvSpecException
- When any external file references cannot be readpublic List<oracle.fmwplatform.util.validation.ValidationMessage> validate(ModelTarget target)
target
- a ModelTarget object to use for validationpublic List<String> getServerGroups(String domainId, String serverName) throws FMWEnvSpecException
domainId
- the id representing the Domain who's Server group names are to be returnedserverName
- The name of the ServerFMWEnvSpecException
- if a model file could not be found in the search pathpublic Map<String,Set<String>> getServerGroupMapFromTemplates(String domainId) throws FMWEnvSpecException
domainId
- the id representing the Domain who's templates will be used to construct the server group mapFMWEnvSpecException
- if templates or Oracle Home cannot be foundpublic List<WebTier> getWebTiers()
public WebTier getWebTierById(String webTierId)
webTierId
- the id representing the WebTier that is to be returnedpublic List<WebTier> getWebTiersForDomain(String domainId)
domainId
- the id of the Domain whose WebTiers are to be returned