|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.management.deploy.DeploymentData
Describes the targets involved in an application deployment. DeploymentData objects are used
when invoking deployments via the DeployerRuntimeMBean
methods. The object
defines the list of target servers, clusters and virtual hosts that apply to a specific deployment request,
and may also be used to identify specific files to refresh as part of the deployment.
Field Summary | |
static int |
CLUSTER
Target is a Cluster |
static int |
SERVER
Target is a Server |
static int |
UNKNOWN
Target type is unknown either because it has not been set or is not available. |
static int |
VIRTUALHOST
Target is a Virtual Host |
Constructor Summary | |
DeploymentData()
Creates empty DeploymentData object, one with no targets defined and no file list. |
|
DeploymentData(java.lang.String[] files)
Creates DeploymentData object, with no targets defined and a file list. |
Method Summary | |
void |
addModuleToTarget(java.lang.String target,
java.lang.String module)
Adds a module name to an existing target in this object. |
void |
addTarget(java.lang.String target,
java.lang.String[] modules)
Adds a target name to this object. |
void |
addTargetsForComponent(ApplicationMBean mbean,
java.lang.String compName)
Creates target/module list based on application configuration. |
java.lang.String |
getAltDescriptorPath()
|
java.lang.String |
getAltWLSDescriptorPath()
|
boolean |
getClusterConstraints()
|
boolean |
getDelete()
|
java.lang.String[] |
getFiles()
Returns the files specific to this deployment |
java.lang.String[] |
getModules()
Returns list of all modules, regardless of target. |
java.lang.String[] |
getModulesForTarget(java.lang.String target)
Returns list of modules for a particular target defined in this object. |
java.lang.String[] |
getTargets()
Returns a list of targets (server, web server, virtual hosts and cluster names) An empty array indicates no targets, whereas a null return value implies all configured targets. |
java.util.Set |
getTargetsForModule(java.lang.String module)
Returns list of target names associated with a specific module. |
int |
getTargetType(java.lang.String target)
Specifies the type of target involved. |
int |
getTimeOut()
Timeout value (in milliseconds) used for 2 phase deployments. |
boolean |
iActionFromDeployer()
exclude |
void |
setActionFromDeployer(boolean isDeployer)
|
void |
setAltDescriptorPath(java.lang.String dd)
|
void |
setAltWLSDescriptorPath(java.lang.String dd)
|
void |
setClusterConstraints(boolean clusterConstraints)
Sets the attribute indicating if strict cluster constraints need to be enforced on clustered deployments. |
void |
setDelete(boolean deleteFlag)
|
void |
setFile(java.lang.String[] files)
Indicates whether to add or remove files from the application's staging area. |
void |
setTargetType(java.lang.String target,
int type)
Specifies the type of target involved. |
void |
setTimeOut(int timeInMillis)
Overrides deployment timeout value. |
java.lang.String |
toString()
Constructs a String representation of the object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int UNKNOWN
public static final int CLUSTER
public static final int SERVER
public static final int VIRTUALHOST
Constructor Detail |
public DeploymentData()
public DeploymentData(java.lang.String[] files)
files
- is a list of file names to be deployed. This defines a partial deployment, one where
individual files are distributed instead of entire applications. This is only valid for redeployments.
The files in the list are relative to the root of the application. This argument may be null.Method Detail |
public void setFile(java.lang.String[] files)
deleteFlag,
- if true, will result in the listed files being removed from the
staging and active areas, and only if they were staged to those locations. The default is false.public void setDelete(boolean deleteFlag)
public boolean getDelete()
public void setClusterConstraints(boolean clusterConstraints)
public boolean getClusterConstraints()
public int getTimeOut()
ApplicationMBean.DEPLOYMENT_TIMEOUT
, but can be overriden with setTimeOut(int)
method.
Deployment tasks that remain running for more than this time are automatically cancelled, with their state
becoming failed. For cluster deployments, this will result in a rollback of the
entire deployment.
public void setTimeOut(int timeInMillis)
getTimeOut()
public void addTarget(java.lang.String target, java.lang.String[] modules)
Modules may also be added using the addModuleToTarget(java.lang.String, java.lang.String)
method.
target
- is the name of a server, cluster or virtual host. Virtual hosts are only valid
for web deployments.modules
- is an optional list of module names which are specifically targetted to the named target. A null value
indicates all modules. An empty array implies no modules.public java.lang.String[] getModulesForTarget(java.lang.String target)
public void setAltDescriptorPath(java.lang.String dd)
public java.lang.String getAltDescriptorPath()
public void setAltWLSDescriptorPath(java.lang.String dd)
public java.lang.String getAltWLSDescriptorPath()
public void addModuleToTarget(java.lang.String target, java.lang.String module)
target
- is the server, cluster, web server or virtual host to receive the module.module
- is the name of the module to be deployed to this target.public void addTargetsForComponent(ApplicationMBean mbean, java.lang.String compName) throws java.lang.IllegalArgumentException
mbean
- is the application containing the componentcompName
- is the component whose targets will be added to this objectpublic java.util.Set getTargetsForModule(java.lang.String module)
public java.lang.String[] getModules()
public java.lang.String[] getTargets()
public java.lang.String[] getFiles()
public int getTargetType(java.lang.String target)
target
- is the name of the target being checked.public void setTargetType(java.lang.String target, int type)
target
- is the name of the target being updated.type
- the type of the target.public java.lang.String toString()
public boolean iActionFromDeployer()
public void setActionFromDeployer(boolean isDeployer)
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |