BEA Systems, Inc.

Type-Safe Access to BEA WebLogic Server 9.0 MBeans (Deprecated)

(Methods marked with @since 9.0.0.0 are not available through the deprecated MBeanHome interface.)


weblogic.management.configuration
Interface TargetInfoMBean

All Superinterfaces:
ConfigurationMBean, weblogic.descriptor.DescriptorBean, DynamicMBean, MBeanRegistration, NotificationBroadcaster, weblogic.descriptor.SettableBean, weblogic.management.WebLogicMBean
All Known Subinterfaces:
weblogic.management.configuration.AppDeploymentMBean, weblogic.management.configuration.BasicDeploymentMBean, JDBCSystemResourceMBean, JMSInteropModuleMBean, JMSSystemResourceMBean, LibraryMBean, SubDeploymentMBean, SystemResourceMBean

public interface TargetInfoMBean
extends ConfigurationMBean

This bean represents any weblogic entity which can be targeted. A bean of this type does not imply that it can be deployed on a weblogic domain. For example, a module within an ear or a submodule within a JMS module. Deployments are represented by BasicDeploymentMBean.

Deprecation of MBeanHome and Type-Safe Interfaces

This is a type-safe interface for a WebLogic Server MBean, which you can import into your client classes and access through weblogic.management.MBeanHome. As of 9.0, the MBeanHome interface and all type-safe interfaces for WebLogic Server MBeans are deprecated. Instead, client classes that interact with WebLogic Server MBeans should use standard JMX design patterns in which clients use the javax.management.MBeanServerConnection interface to discover MBeans, attributes, and attribute types at runtime. For more information, see "Developing Manageable Applications with JMX" on http://www.oracle.com/technology/documentation/index.html.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved.

Field Summary
 
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean
DEFAULT_EMPTY_BYTE_ARRAY
 
Method Summary
 void addTarget(TargetMBean target)
          You can add a target to specify additional servers on which the deployment can be deployed.
 String getCompatibilityName()
           This is only set for beans created as a result of conversion from an 8.1 application configured using ApplicationMBean and ComponentMBean.
 String getName()
          Unique identifier for this bean instance.
 TargetMBean[] getTargets()
          You must select a target on which an MBean will be deployed from this list of the targets in the current domain on which this item can be deployed.
 void removeTarget(TargetMBean target)
          Removes the value of the Target attribute.
 void setCompatibilityName(String name)
           
 void setModuleType(String moduleType)
           
 void setName(String name)
          Sets the value of the Name attribute.
 void setTargets(TargetMBean[] targets)
          Sets the value of the Targets attribute.
 
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
freezeCurrentValue, getNotes, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setNotes, setPersistenceEnabled, unSet
 
Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, 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
 
Methods inherited from interface weblogic.descriptor.DescriptorBean
addBeanUpdateListener, addPropertyChangeListener, createChildCopy, createChildCopyIncludingObsolete, getDescriptor, getParentBean, isEditable, removeBeanUpdateListener, removePropertyChangeListener
 

Method Detail

addTarget

public void addTarget(TargetMBean target)
               throws InvalidAttributeValueException,
                      weblogic.management.DistributedManagementException

You can add a target to specify additional servers on which the deployment can be deployed. The targets must be either clusters or servers.

Parameters:
target - The feature to be added to the Target attribute
Throws:
InvalidAttributeValueException
weblogic.management.DistributedManagementException
A dynamic MBean attribute.

getCompatibilityName

public String getCompatibilityName()

This is only set for beans created as a result of conversion from an 8.1 application configured using ApplicationMBean and ComponentMBean.

Standalone modules in 8.1 have both an ApplicationMBean name and ComponentMBean name. This attribute stores the name of the latter, to be used when the server creates the transient ComponentMBean for backward compatibility.


getName

public String getName()
Unique identifier for this bean instance.

Specified by:
getName in interface ConfigurationMBean
Legal null:
false

getTargets

public TargetMBean[] getTargets()

You must select a target on which an MBean will be deployed from this list of the targets in the current domain on which this item can be deployed. Targets must be either servers or clusters. The deployment will only occur once if deployments overlap.

Returns:
The targets value
A dynamic MBean attribute.

removeTarget

public void removeTarget(TargetMBean target)
                  throws InvalidAttributeValueException,
                         weblogic.management.DistributedManagementException

Removes the value of the Target attribute.

Parameters:
target - The target to remove
Throws:
InvalidAttributeValueException
weblogic.management.DistributedManagementException
See Also:
addTarget(weblogic.management.configuration.TargetMBean)
A dynamic MBean attribute.

setCompatibilityName

public void setCompatibilityName(String name)

setModuleType

public void setModuleType(String moduleType)

setName

public void setName(String name)
             throws InvalidAttributeValueException,
                    weblogic.management.ManagementException

Sets the value of the Name attribute.

Specified by:
setName in interface ConfigurationMBean
Throws:
InvalidAttributeValueException
weblogic.management.ManagementException
Legal null:
false

setTargets

public void setTargets(TargetMBean[] targets)
                throws InvalidAttributeValueException,
                       weblogic.management.DistributedManagementException

Sets the value of the Targets attribute.

Parameters:
targets - The new targets value
Throws:
InvalidAttributeValueException
weblogic.management.DistributedManagementException
See Also:
getTargets()
A dynamic MBean attribute.

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs90
Copyright 2005 BEA Systems Inc.