public abstract class DomainEnvironment extends Environment
Modifier and Type | Field and Description |
---|---|
protected String |
clusterId |
protected String |
domainId |
protected String |
serverId |
protected Domain |
topologyDomain |
protected OracleHome |
topologyOracleHome |
protected static String |
WLST_CLUSTERS_METHOD |
protected static String |
WLST_CONFIGGROUPS_METHOD |
protected static String |
WLST_DATASOURCES_METHOD |
protected static String |
WLST_DOMAIN_METHOD |
protected static String |
WLST_NODEMANAGERS_METHOD |
protected static String |
WLST_SERVERS_METHOD |
protected static String |
WLST_TEMPLATES_METHOD |
protected oracle.fmwplatform.wlst.EmbeddedWLSTInvoker |
wlstInvoker |
protected static String |
wlstModulePrefix |
topology
Constructor and Description |
---|
DomainEnvironment() |
Modifier and Type | Method and Description |
---|---|
protected void |
endSession()
cleanup the embedded WLST session.
|
protected void |
execWLST(String command)
Just execute a WLST command in the embedded WLST session
|
abstract List<Cluster> |
getClusters() |
abstract List<DataSource> |
getDataSources() |
abstract Domain |
getDomain() |
abstract List<NodeManager> |
getNodeManagers() |
abstract List<Server> |
getServers() |
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 the 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 EnvironmentTarget so it can be used for Domain discovery, it should of type Domain.
|
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
public abstract List<DataSource> getDataSources() throws FMWEnvSpecException
FMWEnvSpecException
public abstract Domain getDomain() throws FMWEnvSpecException
FMWEnvSpecException
public abstract List<NodeManager> getNodeManagers() throws FMWEnvSpecException
FMWEnvSpecException
public abstract List<Server> getServers() throws FMWEnvSpecException
FMWEnvSpecException
protected <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