The following sections describe the WLST deployment objects:
The WLSTPlan
object enables you to make changes to an application deployment plan after loading an application using the loadApplication
command, as described in "loadApplication" in WebLogic Scripting Tool Command Reference.
The following table describes the WLSTPlan
object methods that you can use to operate on the deployment plan.
Table A-1 WLSTPlan Object Methods
To operate on the... | Use this method... | To... |
---|---|---|
Deployment Plan |
DeploymentPlanBean getDeploymentPlan() |
Return the |
Deployment Plan |
void save() throws FileNotFoundException, ConfigurationException |
Saves the deployment plan to a file from which it was read. |
Module Descriptors |
ModuleDescriptorBean createModuleDescriptor(String uri, String moduleOverrideName) |
Create a |
Module Overrides |
ModuleOverrideBean[] getModuleOverride(String
name)
|
Return the |
Module Overrides |
ModuleOverrideBean[] getModuleOverrides() |
Return all |
Module Overrides |
void showModuleOverrides() |
Prints all of the |
Variables |
VariableBean createVariable(String name, String value) |
Create a |
Variables |
void destroyVariable(String name)
|
Destroy the |
Variables |
VariableBean getVariable(String name)
|
Return the |
Variables |
VariableBean[] getVariables() |
Return all |
Variables |
void setVariableValue(String name, String value) |
Set the variable |
Variables |
void showVariables() |
Print all of the |
Variable Assignment |
VariableAssignmentBean createVariableAssignment(String name, String moduleOverrideName, String moduleDescriptorUri) |
Create a |
Variable Assignment |
void destroyVariableAssignment(String name, String moduleOverrideName, String moduleDescriptorName) |
Destroy the |
Variable Assignment |
VariableAssignmentBean getVariableAssignment(String name, String moduleOverrideName, String moduleDescriptorName) |
Return the |
The WLSTProgress
object enables you to check the status of an executed deployment command. The WLSTProgress
object is returned by the following commands (refer to the associated command section in WebLogic Scripting Tool Command Reference for more information:
The following table describes the WLSTProgress
object methods that you can use to check the status of the current deployment action.
Table A-2 WLSTProgress Object Methods
Use this method... | To... |
---|---|
String getCommandType() |
Return the deployment |
String getMessage() |
Return information about the status of this event. |
ProgressObject getProgressObject() |
Return the |
String getState() |
Retrieve the state of the current deployment action. |
boolean isCompleted() |
Determine if the current deployment action has been completed. |
boolean isFailed() |
Determine if the current deployment action has failed. |
boolean isRunning() |
Determine if the current deployment action is running. |
void printStatus() |
Print the current status of the deployment action, including the command type, the state, additional messages, and so on. |