public abstract class DomainEnvironment extends Environment
Modifier and Type | Field and Description |
---|---|
protected String |
clusterId
Current cluster ID.
|
protected String |
domainId
Current domain ID.
|
protected String |
serverId
Current server ID.
|
protected Domain |
topologyDomain
Domain being discovered.
|
protected OracleHome |
topologyOracleHome
Oracle home being discovered.
|
protected static String |
WLST_CLUSTERS_METHOD
Get clusters method for WLST discovery.
|
protected static String |
WLST_CONFIGGROUPS_METHOD
Get configuration groups method fro WLST discovery.
|
protected static String |
WLST_DATASOURCES_METHOD
Get data sources method fro WLST discovery.
|
protected static String |
WLST_DOMAIN_METHOD
Get domain method for WLST discovery.
|
protected static String |
WLST_NODEMANAGERS_METHOD
Get node managers method for WLST discovery.
|
protected static String |
WLST_SERVERS_METHOD
Get servers method fro WLST discovery.
|
protected static String |
WLST_TEMPLATES_METHOD
Get templates method fro WLST discovery.
|
protected oracle.fmwplatform.wlst.EmbeddedWLSTInvoker |
wlstInvoker
WLST invoker for executing discovery commands.
|
protected static String |
wlstModulePrefix
Module prefix for the WLST interpreter.
|
topology
Constructor and Description |
---|
DomainEnvironment() |
Modifier and Type | Method and Description |
---|---|
protected void |
endSession()
Cleanup the embedded WLST session.
|
protected void |
execWLST(String command)
Execute a WLST command in the embedded WLST session
|
abstract List<Cluster> |
getClusters()
Returns the list of cluster objects of the discovered WebLogic Domain.
|
abstract List<DataSource> |
getDataSources()
Returns the list of datasource objects of the discovered WebLogic Domain.
|
abstract Domain |
getDomain()
Returns a Domain object that has fields which are associated with WebLogic Domain properties like JTA timeout etc, and does not have any server or cluster information.
|
abstract List<NodeManager> |
getNodeManagers()
Returns the list of nodemanager or machine objects of the discovered offline WebLogic Domain.
|
abstract List<Server> |
getServers()
Returns list of server objects of the discovered WebLogic Domain In offline mode it is not possible to retrieve the value of a particular WebLogic attribute when it contains the default value.
|
protected <T> T |
getWLSTValue(String myModule, String method)
Execute a WLST command in the embedded WLST session and return the discovered environment object.
|
protected <T> List<T> |
getWLSTValues(String myModule, String method)
Execute a WLST command in the embedded WLST session and return a list of discovered environment objects.
|
protected <T> List<T> |
getWLSTValuesByFilter(String myModule, String method, String filter)
Execute a WLST command in the embedded WLST session and return a list of discovered environment objects.
|
protected void |
importModule(String myModule)
Import and load a WLST jython module.
|
protected void |
retrieveTopologyObjects(Topology topology)
Retrieve the right Oracle Home and Domain from the topology object.
|
protected void |
startSession(String oracleHome)
Start an embedded WLST session.
|
protected void |
validateEnvironmentTarget(ModelTarget target, EnvironmentModel model, String envType)
Validate the target, which should be a DomainTarget, so it can be used for Domain discovery.
|
protected static final String WLST_DOMAIN_METHOD
protected static final String WLST_NODEMANAGERS_METHOD
protected static final String WLST_CLUSTERS_METHOD
protected static final String WLST_SERVERS_METHOD
protected static final String WLST_DATASOURCES_METHOD
protected static final String WLST_TEMPLATES_METHOD
protected static final String WLST_CONFIGGROUPS_METHOD
protected static String wlstModulePrefix
protected oracle.fmwplatform.wlst.EmbeddedWLSTInvoker wlstInvoker
protected String domainId
protected String serverId
protected String clusterId
protected OracleHome topologyOracleHome
protected Domain topologyDomain
protected void endSession()
protected void execWLST(String command) throws FMWEnvSpecException
command
- The command to executeFMWEnvSpecException
- on errorpublic abstract List<Cluster> getClusters() throws FMWEnvSpecException
FMWEnvSpecException
- on errorpublic abstract List<DataSource> getDataSources() throws FMWEnvSpecException
FMWEnvSpecException
- on errorpublic abstract Domain getDomain() throws FMWEnvSpecException
FMWEnvSpecException
- on errorpublic abstract List<NodeManager> getNodeManagers() throws FMWEnvSpecException
FMWEnvSpecException
- on errorpublic abstract List<Server> getServers() throws FMWEnvSpecException
FMWEnvSpecException
- on errorprotected <T> T getWLSTValue(String myModule, String method) throws FMWEnvSpecException
T
- Discovered Environment Object classmyModule
- WLST python module, can be the offline or online modulemethod
- Method name of the WLST python moduleFMWEnvSpecException
- on errorprotected <T> List<T> getWLSTValues(String myModule, String method) throws FMWEnvSpecException
T
- Discovered Environment Object classmyModule
- WLST python module, can be the offline or online modulemethod
- Method name of the WLST python moduleFMWEnvSpecException
- on errorprotected <T> List<T> getWLSTValuesByFilter(String myModule, String method, String filter) throws FMWEnvSpecException
T
- Discovered Environment Object classmyModule
- WLST python module, can be the offline or online modulemethod
- Method name of the WLST python modulefilter
- Parameter which can be used to filter the result for only one particular object.FMWEnvSpecException
- on errorprotected void importModule(String myModule) throws FMWEnvSpecException
myModule
- is it for online or offlineFMWEnvSpecException
- when a not valid WLST/Jython command is executedprotected void retrieveTopologyObjects(Topology topology) throws FMWEnvSpecException
topology
- The topology object which contains the online or offline domain bootstrap informationFMWEnvSpecException
- on errorprotected void startSession(String oracleHome) throws FMWEnvSpecException
oracleHome
- this oracle home will be used for all the library referencesFMWEnvSpecException
- when WLST can't be startedprotected void validateEnvironmentTarget(ModelTarget target, EnvironmentModel model, String envType) throws FMWEnvSpecException
target
- EnvironmentModelTarget with Domain, CLuster or Server target type which can be used to focus on a particular area of the offline WebLogic domainmodel
- EnvironmentModel objectenvType
- OfflineEnvironment or OnlineEnvironmentFMWEnvSpecException
- on error