public class EnvironmentDatabaseMapping extends Object
Constructor and Description |
---|
EnvironmentDatabaseMapping() |
Modifier and Type | Method and Description |
---|---|
String |
getDatabaseFromUrl(String url)
Retrieve the database from a JDBC url based on a regex pattern
|
String |
getHostFromUrl(String url)
Retrieve the hostname from a JDBC url based on a regex pattern
|
int |
getPortFromUrl(String url)
Retrieve the portnumber from a JDBC url based on a regex pattern
|
void |
updateDataSource(DataSource dataSource, Topology topology, HashMap<String,oracle.fmwplatform.envspec.lookup.AliasWLSTValues> dataSourceParameterAlias, Domain topologyDomain, Boolean refreshOnly)
Add database object on a topology object based on the discovered datasource
|
public String getDatabaseFromUrl(String url)
url
- with the whole jdbc urlpublic String getHostFromUrl(String url)
url
- with the whole jdbc urlpublic int getPortFromUrl(String url)
url
- with the whole jdbc urlpublic void updateDataSource(DataSource dataSource, Topology topology, HashMap<String,oracle.fmwplatform.envspec.lookup.AliasWLSTValues> dataSourceParameterAlias, Domain topologyDomain, Boolean refreshOnly)
dataSource
- Discovered Environment Server objecttopology
- Topology object which will be updated with the Database objectsdataSourceParameterAlias
- requested WLST dataSource attributestopologyDomain
- the topology domain object which will be updated with the all database reference, based on the environmentTargetrefreshOnly
- only update existing objects or attributes