WebLogic Scripting Tool

     Previous  Next    Open TOC in new window    View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

WLST Deployment Objects

The following sections describe the WLST deployment objects:

 


WLSTPlan Object

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.

The following table describes the WLSTPlan object methods that you can use to operate on the deployment plan.

Table C-1 WLSTPlan Object Methods 
To operate on the...
Use this method...
To...
Deployment Plan
DeploymentPlanBean getDeploymentPlan()
Return the DeploymentPlanBean for the current application.
void save() throws FileNotFoundException, ConfigurationException
Saves the deployment plan to a file from which it was read.
Module Overrides
ModuleOverrideBean createModuleDescriptor(String name, String uri, String moduleOverrideName)
Create a ModuleDescriptorBean with the specified name and uri for the ModuleOverrideBean moduleOverrideName
ModuleOverrideBean createModuleOverride(String name, String type)
Create a ModuleOverrideBean with the specified name and type for the current deployment plan.
void destroyModuleOverride(String name)
Destroy the ModuleOverrideBean name in the deployment plan.
ModuleOverrideBean[] getModuleOverride(String name)
Return the ModuleOverrideBean name.
ModuleOverrideBean[] getModuleOverrides()
Return all ModuleOverrideBean objects that are available in the deployment plan.
VariableBean[] setModuleOverride(ModuleOverrideBean moduleOverride)
Set the ModuleOverrideBean moduleOverride for the current deployment plan.
void showModuleOverrides()
Prints all of the ModuleOverrideBean objects that are available in the deployment plan as name/type pairs.
Variables
VariableBean createVariable(String name)
Create a VariableBean name that can override values in the deployment plan.
void destroyVariable(String name)
Destroy the VariableBean name.
VariableBean getVariable(String name)
Return the VariableBean name.
VariableBean[] getVariables()
Return all VariableBean objects that are available in the deployment plan.
void setVariable(String name, String value)
Set the variable name to the specified value.
void setVariableBean(VariableBean bean)
Set the VariableBean bean.
void showVariables()
Print all of the VariableBean objects in the deployment plan as name/value pairs.
Variable Assignment
VariableAssignmentBean createVariableAssignment(String name, String moduleOverrideName, String moduleDescriptorName)
Create a VariableAssignmentBean for the ModuleDescriptorBean moduleDescriptorName for the ModuleOverrideBean moduelOverrideName.
void destroyVariableAssignment(String name, String moduleDescriptorName)
Destroy the VariableAssignmentBean name for the ModuleDescriptorBean moduleDescriptorName.
VariableAssignmentBean getVariableAssignment(String name, String moduleDescriptorName)
Return the VariableAssignmentBean name for the ModuleDescriptorBean moduleDescriptorName.
void showVariables()
Prints all of the VariableBean objects in the deployment plan as name/value pairs.

 


WLSTProgress Object

The WLSTProgress object enables you to check the status of an executed deployment command. The WLSTProgress object is returned by the following commands:

The following table describes the WLSTProgress object methods that you can use to check the status of the current deployment action.

Table C-2 WLSTProgress Object Methods 
Use this method...
To...
String getCommandType()
Return the deployment CommandType of this event.This command returns one of the following values: distribute, redeploy, start, stop, or undeploy.
String getMessage()
Return information about the status of this event.
ProgressObject getProgressObject()
Return the ProgressObject that is associated with the current deployment action.
String getState()
Retrieve the state of the current deployment action. CommandType of this event.This command returns one of the following values: running, completed, failed, or released (indicating that the object has been released into production).
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.


  Back to Top       Previous  Next