|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
There are 2 interfaces to access MBeans:
MBeanServer - Each WebLogic Server contains an MBeanServer. The MBeanServer contains all MBeans for its host WebLogic Server. Using the JMX API, MBean attribute values can be retrieved and other JMX operations can be performed on MBeans in the MBeanServer.
MBeanHome - Each WebLogic Server publishes an MBeanHome, which is a wrapper on it MBeanServer, exposing a strongly-typed interface. MBeanServer and MBeanHome provide access to the same set of MBeans in a given server. Each server in a domain contains an MBeanHome (and a corresponding MBeanServer), which hosts configuration and runtime MBeans on that server.
Administration(or Admin) MBeanHome
In addition to the regular MBeanHome, the Administration server has an administration MBeanHome that provides access to all MBeans in the entire domain. It also implements this interface. The only difference is in the set of mbeans it hosts.The Administration MBeans reside only on the Administration Server, and are only available through the Administration MBeanHome. For the difference between Administration, Configuration and Runtime MBeans, please see weblogic.management.WebLogicMBean
For example, a query for MBeans on the Administration MBeanHome returns one MBean for each running server in the domain. The same query on the MBeanHome of a Managed Server (or the regular MBeanHome of the Administration Server) returns only the MBeans for that server. While MBeanHome is local (and serializable), the underlying MBeanServer is remote.
WebLogicMBean
,
MBeanServer
,
Helper
Field Summary | |
static java.lang.String |
ADMIN_JNDI_NAME
The JNDI name used to access the domainwide administration MBeanHome from the JNDI tree of the admin server. |
static java.lang.String |
JNDI_NAME
The JNDI name used to lookup the MBeanHome of a given server in the JNDI tree of the admin server. |
static java.lang.String |
LOCAL_JNDI_NAME
The JNDI name used to access local MBeanHome of a given server from that servers JNDI tree. |
Method Summary | |
void |
addManagedHome(MBeanHome managedHome,
java.lang.String managedServerName,
java.lang.String managedListenAddress,
int managedListenPort,
java.lang.String isListenPortSecure)
Adds managed MBeanHome to the admin mbean server. |
WebLogicMBean |
createAdminMBean(java.lang.String name,
java.lang.String type)
Create an Admin MBean with the specified name and type in the current domain. |
WebLogicMBean |
createAdminMBean(java.lang.String name,
java.lang.String type,
java.lang.String domain)
Create an Admin MBean with the specified name, type, and domain. |
WebLogicMBean |
createAdminMBean(java.lang.String name,
java.lang.String type,
java.lang.String domain,
ConfigurationMBean parent)
Create an Admin MBean with the specified name, type, domain and parent. |
DomainMBean |
getActiveDomain()
Return the Active Domain |
ConfigurationMBean |
getAdminMBean(java.lang.String name,
java.lang.String type)
Return the Admin MBean matching a given name and type for the current domain. |
ConfigurationMBean |
getAdminMBean(java.lang.String name,
java.lang.String type,
java.lang.String domain)
Return the Admin MBean matching a give name, type and domain. |
java.util.Set |
getAllMBeans()
Return all the mbeans. |
java.util.Set |
getAllMBeans(java.lang.String domain)
Return all the mbeans for the specified domain. |
ConfigurationMBean |
getConfigurationMBean(java.lang.String name,
java.lang.String type)
Return the Configuration MBean matching a given name and type in the current domain. |
java.lang.String |
getDomainName()
Return the domain name of the server on which this home was originally instantiated. |
WebLogicMBean |
getMBean(javax.management.ObjectName objectName)
Return the MBean with the specified objectName. |
WebLogicMBean |
getMBean(java.lang.String name,
java.lang.Class cls)
Return the MBean with the specified name that implements the specified class in the active domain. |
WebLogicMBean |
getMBean(java.lang.String name,
java.lang.String type)
Return the Admin MBean with the specified name and type in the default domain. |
WebLogicMBean |
getMBean(java.lang.String name,
java.lang.String type,
java.lang.String domain)
Return the MBean with the specified name and type in the specified domain. |
WebLogicMBean |
getMBean(java.lang.String name,
java.lang.String type,
java.lang.String domain,
java.lang.String location)
Return the MBean with the specified name,type,location in the domain. |
java.util.Set |
getMBeansByClass(java.lang.Class cls)
Return all the MBeans that implement a particular class in the active domain. |
java.util.Set |
getMBeansByClass(java.lang.Class cls,
java.lang.String domain)
Return all the MBeans that implement a particular class in the specified domain. |
java.util.Set |
getMBeansByClass(java.lang.Class cls,
WebLogicMBean parent)
Return all the MBeans that implement a particular class and which have the given MBean as their parent. |
java.util.Set |
getMBeansByType(java.lang.String type)
Return all mbeans of a particular type in all domains. |
java.util.Set |
getMBeansByType(java.lang.String type,
java.lang.String domain)
Return all mbeans of a particular type the in the specified domain. |
RemoteMBeanServer |
getMBeanServer()
Return the MBean Server associated with this MBeanHome |
weblogic.management.runtime.RuntimeMBean |
getRuntimeMBean(java.lang.String name,
java.lang.String type)
Return the runtime MBean matching a given name and type in the current domain. |
void |
registerConfigMBeansForAdminChanges(java.util.List configMbeanPairList,
javax.management.MBeanServer remoteMBeanServer)
Description of the Method |
void |
unRegisterConfigMBeansForAdminChanges(java.util.List configMbeanPairList,
java.lang.String msName)
Description of the Method |
Field Detail |
public static final java.lang.String JNDI_NAME
public static final java.lang.String LOCAL_JNDI_NAME
public static final java.lang.String ADMIN_JNDI_NAME
Method Detail |
public RemoteMBeanServer getMBeanServer()
public WebLogicMBean getMBean(javax.management.ObjectName objectName) throws javax.management.InstanceNotFoundException
objectName
- The unique WeblogicObjectName of the Bean.public WebLogicMBean getMBean(java.lang.String name, java.lang.String type, java.lang.String domain, java.lang.String location) throws javax.management.InstanceNotFoundException
name
- Unique within type, domain, and locationtype
- The type of the MBean (i.e. Server, ServerConfig)domain
- The WebLogic Domain (which is the same as the JMX domain)location
- The name of the server on which the MBean residespublic WebLogicMBean getMBean(java.lang.String name, java.lang.String type, java.lang.String domain) throws javax.management.InstanceNotFoundException
name
- Unique within type, domain, and locationtype
- The type of the MBean (i.e. Server, ServerConfig)domain
- The WebLogic Domain (which is the same as the JMX domain)public WebLogicMBean getMBean(java.lang.String name, java.lang.String type) throws javax.management.InstanceNotFoundException
name
- Description of the Parametertype
- Description of the Parameterpublic WebLogicMBean getMBean(java.lang.String name, java.lang.Class cls) throws javax.management.InstanceNotFoundException
name
- The name of the MBean which must be unique for that class.cls
- Description of the Parameterpublic java.util.Set getMBeansByType(java.lang.String type, java.lang.String domain)
type
- Description of the Parameterdomain
- Description of the Parameterpublic java.util.Set getMBeansByType(java.lang.String type)
type
- Description of the Parameterpublic java.util.Set getMBeansByClass(java.lang.Class cls)
cls
- Description of the Parameterpublic java.util.Set getMBeansByClass(java.lang.Class cls, WebLogicMBean parent)
cls
- Description of the Parameterparent
- Description of the Parameterpublic java.util.Set getMBeansByClass(java.lang.Class cls, java.lang.String domain)
cls
- Description of the Parameterdomain
- Description of the Parameterpublic java.util.Set getAllMBeans(java.lang.String domain)
domain
- Description of the Parameterpublic java.util.Set getAllMBeans()
public DomainMBean getActiveDomain()
public ConfigurationMBean getAdminMBean(java.lang.String name, java.lang.String type, java.lang.String domain) throws javax.management.InstanceNotFoundException
name
- Description of the Parametertype
- Description of the Parameterdomain
- Description of the Parameterpublic ConfigurationMBean getAdminMBean(java.lang.String name, java.lang.String type) throws javax.management.InstanceNotFoundException
name
- Description of the Parametertype
- Description of the Parameterpublic ConfigurationMBean getConfigurationMBean(java.lang.String name, java.lang.String type) throws javax.management.InstanceNotFoundException
name
- Description of the Parametertype
- Description of the ParametergetAdminMBean(java.lang.String, java.lang.String, java.lang.String)
public weblogic.management.runtime.RuntimeMBean getRuntimeMBean(java.lang.String name, java.lang.String type) throws javax.management.InstanceNotFoundException
name
- Description of the Parametertype
- Description of the ParametergetAdminMBean(java.lang.String, java.lang.String, java.lang.String)
public WebLogicMBean createAdminMBean(java.lang.String name, java.lang.String type, java.lang.String domain, ConfigurationMBean parent) throws MBeanCreationException
name
- Description of the Parametertype
- Description of the Parameterdomain
- Description of the Parameterparent
- Description of the Parameterpublic WebLogicMBean createAdminMBean(java.lang.String name, java.lang.String type, java.lang.String domain) throws MBeanCreationException
name
- Description of the Parametertype
- Description of the Parameterdomain
- Description of the Parameterpublic WebLogicMBean createAdminMBean(java.lang.String name, java.lang.String type) throws MBeanCreationException
name
- Description of the Parametertype
- Description of the Parameterpublic void addManagedHome(MBeanHome managedHome, java.lang.String managedServerName, java.lang.String managedListenAddress, int managedListenPort, java.lang.String isListenPortSecure)
managedHome
- The feature to be added to the ManagedHome attributemanagedServerName
- The feature to be added to the ManagedHome attributemanagedListenAddress
- The feature to be added to the ManagedHome attributemanagedListenPort
- The feature to be added to the ManagedHome attributeisListenPortSecure
- The feature to be added to the ManagedHome attributepublic java.lang.String getDomainName()
public void registerConfigMBeansForAdminChanges(java.util.List configMbeanPairList, javax.management.MBeanServer remoteMBeanServer)
configMbeanPairList
- Description of the ParameterRMBS
- Description of the Parameterpublic void unRegisterConfigMBeansForAdminChanges(java.util.List configMbeanPairList, java.lang.String msName)
configMbeanPairList
- Description of the Parameter
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81b |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |