|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.management.jmx.MBeanServerGateway
public class MBeanServerGateway
Remoting gateway to the MBean server that hosts Flex MBeans.
Some base javax.management.MBeanServer methods are unimplemented due to the fact that we're interacting with the MBean server from remote Flash clients. Some methods have been modified to better suite remote Flash clients. Other methods are additive, serving as a convenience for Flex applications.
Unimplemented methods from the base MBeanServer API:
Modifications to the base MBeanServer API:
Additonal Flex-specific methods:
| Constructor Summary | |
|---|---|
MBeanServerGateway()
Constructs a new MBeanServerGateway. |
|
| Method Summary | |
|---|---|
ObjectInstance |
createMBean(String className,
String objectName)
Instantiates and registers an MBean with the MBean server. |
ObjectInstance |
createMBean(String className,
String objectName,
Object[] params,
String[] signature)
Instantiates and registers an MBean with the MBean server. |
ObjectInstance |
createMBean(String className,
String objectName,
String loaderName)
Instantiates and registers an MBean with the MBean server. |
ObjectInstance |
createMBean(String className,
String objectName,
String loaderName,
Object[] params,
String[] signature)
Instantiates and registers an MBean with the MBean server. |
Object |
getAttribute(String objectName,
String attribute)
Gets the value of a specific attribute of a named MBean. |
Attribute[] |
getAttributes(String objectName,
String[] attributes)
Gets the values of several attributes of a named MBean. |
String |
getDefaultDomain()
Returns the default domain used for naming MBeans. |
String[] |
getFlexDomains()
Returns the narrowed list of Flex domains in which any MBean is currently registered. |
Integer |
getFlexMBeanCount()
Returns the number of narrowed Flex MBeans registered in the MBean server. |
ObjectName[] |
getFlexMBeanObjectNames()
Returns all the object names for Flex related MBeans. |
Integer |
getMBeanCount()
Returns the total number of beans registered in the MBean server. |
MBeanInfo |
getMBeanInfo(String objectName)
This method discovers the attributes and operations that an MBean exposes for management by a Flash client. |
ObjectInstance |
getObjectInstance(String objectName)
Gets the ObjectInstance for the specified MBean registered with the MBean server. |
Object |
invoke(String objectName,
String operationName,
Object[] params,
String[] signature)
Invokes an operation on an MBean. |
boolean |
isInstanceOf(String objectName,
String className)
Returns true if the specified MBean is an instance of the specified class; otherwise false. |
boolean |
isRegistered(String objectName)
Checks whether an MBean, identified by its object name, is already registered with the MBean server. |
ObjectInstance[] |
queryMBeans(String objectName)
Gets MBeans controlled by the MBean server. |
ObjectName[] |
queryNames(String objectName)
Gets the names of MBeans controlled by the MBean server. |
ObjectInstance |
registerMBean(Object object,
String objectName)
Registers a pre-existing object as an MBean with the MBean server. |
void |
setAttribute(String objectName,
Attribute attribute)
Sets the value of the attribute for the specified MBean. |
Attribute[] |
setAttributes(String objectName,
Attribute[] attributes)
Sets the values for several attributes of the specified MBean. |
void |
unregisterMBean(String objectName)
Unregisters an MBean from the MBean server. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MBeanServerGateway()
| Method Detail |
|---|
public ObjectInstance createMBean(String className,
String objectName)
className - The class name for the MBean to instantiate.objectName - The object name of the MBean.
public ObjectInstance createMBean(String className,
String objectName,
String loaderName)
className - The class name for the MBean to instantiate.objectName - The object name of the MBean.loaderName - The object name of the desired class loader.
public ObjectInstance createMBean(String className,
String objectName,
Object[] params,
String[] signature)
className - The class name for the MBean to instantiate.objectName - The object name of the MBean.params - An array of parameters to pass to the MBean constructor.signature - An array containing the type signature for the constructor to invoke.
public ObjectInstance createMBean(String className,
String objectName,
String loaderName,
Object[] params,
String[] signature)
className - The class name for the MBean to instantiate.objectName - The object name of the MBean.loaderName - The object name of the desired class loader.params - An array of parameters to pass to the MBean constructor.signature - An array containing the type signature for the constructor to invoke.
public ObjectInstance registerMBean(Object object,
String objectName)
object - The object to register as an MBean.objectName - The object name for the MBean.
public void unregisterMBean(String objectName)
objectName - The object name of the MBean to unregister.public ObjectInstance getObjectInstance(String objectName)
objectName - The object name of the MBean.
public ObjectInstance[] queryMBeans(String objectName)
This method does not support a QueryExp argument for additional filtering of the queried set.
objectName - The object name pattern identifying the MBeans to retrieve.
public ObjectName[] queryNames(String objectName)
This method does not support a QueryExp argument for additional filtering of the queried set.
objectName - The object name pattern identifying the MBean names to retrieve.
public boolean isRegistered(String objectName)
objectName - The object name of the MBean to be checked.
public Integer getMBeanCount()
public Object getAttribute(String objectName,
String attribute)
objectName - The object name of the MBean from which the attribute is to be retrieved.attribute - The name of the attribute to be retrieved.
public Attribute[] getAttributes(String objectName,
String[] attributes)
objectName - The object name of the MBean to get attribute values from.attributes - The names of the attributes to get values for.
public void setAttribute(String objectName,
Attribute attribute)
objectName - The name of the MBean.attribute - The attribute to set.
public Attribute[] setAttributes(String objectName,
Attribute[] attributes)
objectName - The object name for the MBean.attributes - The attributes to set.
public Object invoke(String objectName,
String operationName,
Object[] params,
String[] signature)
objectName - The object name of the MBean to invoke the operation on.operationName - The operation to invoke.params - The parameters for the operation invocation.signature - The parameter signature for the operation.
public String getDefaultDomain()
public MBeanInfo getMBeanInfo(String objectName)
objectName - The name of the MBean to get metadata for.
public boolean isInstanceOf(String objectName,
String className)
objectName - The object name of the MBean.className - The name of the class.public ObjectName[] getFlexMBeanObjectNames()
public Integer getFlexMBeanCount()
public String[] getFlexDomains()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcdsjavadoc/flex/management/jmx/MBeanServerGateway.html