BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.management.configuration
Interface DeploymentMBean

All Known Subinterfaces:
weblogic.management.configuration.ClassDeploymentMBean, ComponentMBean, ConnectorComponentMBean, EJBComponentMBean, JDBCConnectionPoolMBean, JDBCDataSourceMBean, JDBCMultiPoolMBean, JDBCTxDataSourceMBean, JMSConnectionFactoryMBean, JMSServerMBean, MailSessionMBean, MessagingBridgeMBean, RMCFactoryMBean, ShutdownClassMBean, StartupClassMBean, VirtualHostMBean, WebAppComponentMBean, WebDeploymentMBean, WebServerMBean, WLECConnectionPoolMBean

public interface DeploymentMBean
extends ConfigurationMBean

A Deployment is any MBean that may be deployed on one or more targets, such as a Component, a Web Server personality, a JMS Front-end or back-end or a JDBC connection pool. A deployment has targets, which specify which servers the deployment should be deployed on. Assigning the targets on a deployment will cause the deployment to get deployed on those targets. If the targets overlap, the deployment will only be deployed once. For example, if a deployment is deployed both on a cluster C and on a server S that is a member of that cluster, the deployment will be deployed on S only once. Likewise removing a target from the deployment list will cause the deployment to get undeployed. Furthermore, if a deployment is deployed on cluster C and server S of that cluster, removing either C or S will not undeploy the deployment from S. Both C and S must be removed. Certain types of deployments, ComponentMBeans, behave slightly differently. Please refer to their documentation for more information.

Author:
Copyright © 2001 BEA Systems, Inc. All Rights Reserved.

Field Summary
static int DEFAULT_ORDER
          The default deployment order.
static int MAX_ORDER
          The maximum value for a deployment order.
static int MIN_ORDER
          The minimum value for a deployment order.
 
Method Summary
 boolean addTarget(TargetMBean target)
          Add a target
 int getDeploymentOrder()
          Specify the order of deployment.
 TargetMBean[] getTargets()
          Returns targets on which this deployment is deployed.
 boolean removeTarget(TargetMBean target)
          Remove a target.
 void setDeploymentOrder(int order)
           
 void setTargets(TargetMBean[] Targets)
          Set the targets for this deployment
 
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
getNotes, setNotes, setPersistenceEnabled
 
Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParent
 
Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes
 
Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 

Field Detail

DEFAULT_ORDER

public static final int DEFAULT_ORDER
The default deployment order. This is a midrange value.

MIN_ORDER

public static final int MIN_ORDER
The minimum value for a deployment order. This represents the highest priority in terms of deployment.

MAX_ORDER

public static final int MAX_ORDER
The maximum value for a deployment order. This represents the lowest priority in terms of deployment.
Method Detail

getTargets

public TargetMBean[] getTargets()
Returns targets on which this deployment is deployed.


setTargets

public void setTargets(TargetMBean[] Targets)
                throws javax.management.InvalidAttributeValueException,
                       DistributedManagementException
Set the targets for this deployment

A dynamic MBean attribute

addTarget

public boolean addTarget(TargetMBean target)
                  throws javax.management.InvalidAttributeValueException,
                         DistributedManagementException
Add a target

A dynamic MBean attribute

removeTarget

public boolean removeTarget(TargetMBean target)
                     throws javax.management.InvalidAttributeValueException,
                            DistributedManagementException
Remove a target.

A dynamic MBean attribute

getDeploymentOrder

public int getDeploymentOrder()
Specify the order of deployment. Ordering is with respect to other deployable units of the same class, e.g. EJB's and Web Applications. Deployments with the lowest DeploymentOrder are deployed first. There is no guarantee on the order of deployments with equal DeploymentOrder values. There is no guarantee of ordering across clusters.

A dynamic MBean attribute
Default Value: DEFAULT_ORDER
Legal Minimum Value: MIN_ORDER
Legal Maximum Value: MAX_ORDER

setDeploymentOrder

public void setDeploymentOrder(int order)


Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.