|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.management.deploy.DeploymentData
WebLogicDeploymentManager
public class DeploymentData
Describes the targets involved in an application deployment and other
deployment options. DeploymentData objects are used when invoking
deployments via the
DeployerRuntimeMBean
methods.
Field Summary | |
---|---|
static int |
CLUSTER
Deprecated. Target is a Cluster |
static int |
JMSSERVER
Deprecated. Target is a JMS Server |
static int |
SAFAGENT
Deprecated. Target is a SAF agent |
static int |
SERVER
Deprecated. Target is a Server |
static String |
STANDALONE_MODULE
Deprecated. |
static int |
UNKNOWN
Deprecated. Target type is unknown either because it has not been set or is not available. |
static int |
VIRTUALHOST
Deprecated. Target is a Virtual Host |
Constructor Summary | |
---|---|
DeploymentData()
Deprecated. Creates empty DeploymentData object, one with no targets defined and no file list. |
|
DeploymentData(String[] files)
Deprecated. Creates DeploymentData object, with no targets defined and a file list. |
Method Summary | |
---|---|
void |
addGlobalTarget(String targetName)
Deprecated. |
void |
addModuleTarget(String moduleName,
String newtarget)
Deprecated. |
void |
addModuleTargets(String moduleName,
String[] newtargets)
Deprecated. |
void |
addModuleToTarget(String target,
String module)
Deprecated. Since 9.0. Use DeploymentData.addModuleTargets(java.lang.String, java.lang.String[]) |
void |
addOrUpdateSubModuleTargets(Map givenSMTs)
Deprecated. |
void |
addOrUpdateSubModuleTargetsFor(String moduleName,
Map submodules)
Deprecated. |
void |
addSubModuleTarget(String moduleName,
String subModuleName,
String[] newtargets)
Deprecated. Adds a target list specific to a submodule in a given module. |
void |
addTarget(String target,
String[] modules)
Deprecated. Since 9.0. Use DeploymentData.addTarget(java.lang.String, java.lang.String[]) , DeploymentData.setGlobalTargets(java.lang.String[]) or
DeploymentData.addModuleTargets(java.lang.String, java.lang.String[]) |
void |
addTargetsForComponent(weblogic.management.configuration.ApplicationMBean mbean,
String compName)
Deprecated. Since 9.0. Use DeploymentData.addModuleTargets(java.lang.String, java.lang.String[]) |
void |
addTargetsFromConfig(weblogic.management.configuration.BasicDeploymentMBean dmb)
Deprecated. Adds targets to this object based on contents of the config bean. |
Map |
getAllModuleTargets()
Deprecated. |
Map |
getAllSubModuleTargets()
Deprecated. |
Set |
getAllTargetedServers(Set logicalTargets,
weblogic.management.configuration.DomainMBean editDomain)
Deprecated. |
String |
getAltDescriptorPath()
Deprecated. |
String |
getAltWLSDescriptorPath()
Deprecated. |
boolean |
getClusterConstraints()
Deprecated. |
String |
getConfigDirectory()
Deprecated. |
boolean |
getDelete()
Deprecated. |
DeploymentOptions |
getDeploymentOptions()
Deprecated. |
String |
getDeploymentPlan()
Deprecated. |
String |
getDeploymentPrincipalName()
Deprecated. |
String[] |
getFiles()
Deprecated. Returns the files specific to this deployment |
String[] |
getGlobalTargets()
Deprecated. Returns a list of targets which apply to the whole deployable unit. |
String[] |
getModules()
Deprecated. Since 9.0. |
String[] |
getModulesForTarget(String target)
Deprecated. Since 9.0 |
String[] |
getModuleTargets(String moduleName)
Deprecated. Returns module specific targets for a given module. |
String |
getRootDirectory()
Deprecated. |
String |
getSecurityModel()
Deprecated. |
Map |
getSubModuleTargets(String moduleName)
Deprecated. |
String[] |
getTargets()
Deprecated. since 9.0 use DeploymentData.getGlobalTargets() , #getModuleTargets
or {@link #getSubModuleTargets} |
Set |
getTargetsForModule(String module)
Deprecated. Since 9.0. |
int |
getTargetType(String target)
Deprecated. Specifies the type of target involved. |
int |
getTimeOut()
Deprecated. Timeout value (in milliseconds) used for 2 phase deployments. |
boolean |
hasFiles()
Deprecated. |
boolean |
hasGlobalTarget(String targetname)
Deprecated. |
boolean |
hasModuleTargets()
Deprecated. |
boolean |
hasSubModuleTargets()
Deprecated. |
boolean |
hasTargets()
Deprecated. |
boolean |
isLibrary()
Deprecated. |
boolean |
isSecurityValidationEnabled()
Deprecated. |
boolean |
isStandaloneModule()
Deprecated. |
boolean |
removeSubModuleTarget(String mod,
String sub,
String target)
Deprecated. |
void |
setAltDescriptorPath(String dd)
Deprecated. |
void |
setAltWLSDescriptorPath(String dd)
Deprecated. |
void |
setClusterConstraints(boolean clusterConstraints)
Deprecated. Sets the attribute indicating if strict cluster constraints need to be enforced on clustered deployments. |
void |
setConfigDirectory(String config)
Deprecated. |
void |
setDelete(boolean deleteFlag)
Deprecated. |
void |
setDeploymentOptions(DeploymentOptions opts)
Deprecated. |
void |
setDeploymentPlan(String plan)
Deprecated. |
void |
setDeploymentPrincipalName(String principal)
Deprecated. |
void |
setFile(String[] files)
Deprecated. Indicates whether to add or remove files from the application's staging area. |
void |
setGlobalTargets(String[] targetNames)
Deprecated. |
void |
setLibrary(boolean isLibrary)
Deprecated. |
void |
setPlanUpdate(boolean b)
Deprecated. |
void |
setRootDirectory(String dir)
Deprecated. |
void |
setSecurityModel(String model)
Deprecated. |
void |
setSecurityValidationEnabled(boolean enable)
Deprecated. |
void |
setTargetType(String target,
int type)
Deprecated. Specifies the type of target involved. |
void |
setTimeOut(int timeInMillis)
Deprecated. Overrides deployment timeout value. |
String |
toString()
Deprecated. 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
public static final int JMSSERVER
public static final int SAFAGENT
public static final String STANDALONE_MODULE
Constructor Detail |
---|
public DeploymentData()
public DeploymentData(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 setPlanUpdate(boolean b)
public boolean hasTargets()
public String[] getGlobalTargets()
public boolean hasGlobalTarget(String targetname)
public void addGlobalTarget(String targetName)
public void setGlobalTargets(String[] targetNames)
public Map getAllModuleTargets()
Map
. Key = module name. Value = String[] of target names.public boolean hasModuleTargets()
public String[] getModuleTargets(String moduleName)
public void addModuleTarget(String moduleName, String newtarget)
public void addModuleTargets(String moduleName, String[] newtargets)
public boolean isStandaloneModule()
public void addSubModuleTarget(String moduleName, String subModuleName, String[] newtargets) throws IllegalArgumentException
subModuleName
- Required. Must be non-null.moduleName
- If this is null, it is assumed that there is only one
module in this deployable unit, the deployable unit itself.
And all submodules are part of it. Hence, either all submoduletargets
should have a module name or none.
IllegalArgumentException
- When target list is empty or module
names are specified in some targets and nto in others.public void addOrUpdateSubModuleTargetsFor(String moduleName, Map submodules)
public void addOrUpdateSubModuleTargets(Map givenSMTs)
public Set getAllTargetedServers(Set logicalTargets, weblogic.management.configuration.DomainMBean editDomain) throws weblogic.deploy.beans.factory.InvalidTargetException
weblogic.deploy.beans.factory.InvalidTargetException
public Map getSubModuleTargets(String moduleName)
Map
where Key = submodule name & Value =
String[] containing target names.public Map getAllSubModuleTargets()
public boolean hasSubModuleTargets()
public void addTargetsFromConfig(weblogic.management.configuration.BasicDeploymentMBean dmb)
dmb
- public String getSecurityModel()
public void setSecurityModel(String model) throws IllegalArgumentException
IllegalArgumentException
public boolean isSecurityValidationEnabled()
public void setSecurityValidationEnabled(boolean enable)
public boolean isLibrary()
public void setLibrary(boolean isLibrary)
public void setFile(String[] files)
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 DeploymentData.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)
DeploymentData.getTimeOut()
public void setAltDescriptorPath(String dd)
public String getAltDescriptorPath()
public void setAltWLSDescriptorPath(String dd)
public String getAltWLSDescriptorPath()
public void setDeploymentPrincipalName(String principal)
public String getDeploymentPrincipalName()
public String[] getFiles()
public boolean hasFiles()
public int getTargetType(String target)
target
- is the name of the target being checked.public void setTargetType(String target, int type)
target
- is the name of the target being updated.type
- the type of the target.public String toString()
toString
in class Object
public String getDeploymentPlan()
public void setDeploymentPlan(String plan)
public String getConfigDirectory()
public void setConfigDirectory(String config)
public String getRootDirectory()
public void setRootDirectory(String dir)
public DeploymentOptions getDeploymentOptions()
public void setDeploymentOptions(DeploymentOptions opts)
public String[] getTargets()
DeploymentData.getGlobalTargets()
, #getModuleTargets
or {@link #getSubModuleTargets}
public void addTarget(String target, String[] modules)
DeploymentData.addTarget(java.lang.String, java.lang.String[])
, DeploymentData.setGlobalTargets(java.lang.String[])
or
DeploymentData.addModuleTargets(java.lang.String, java.lang.String[])
Modules may also be added using the DeploymentData.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 String[] getModulesForTarget(String target)
public void addModuleToTarget(String target, String module)
DeploymentData.addModuleTargets(java.lang.String, java.lang.String[])
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(weblogic.management.configuration.ApplicationMBean mbean, String compName) throws IllegalArgumentException
DeploymentData.addModuleTargets(java.lang.String, java.lang.String[])
mbean
- is the application mbean containing the componentcompName
- is the component whose targets will be added to this object
IllegalArgumentException
public Set getTargetsForModule(String module)
public String[] getModules()
public boolean removeSubModuleTarget(String mod, String sub, String target)
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs92 Copyright 2006 BEA Systems Inc. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |