|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jdmk.GenericProxy
JdmkLegacyConnector
and CascadingProxy
.
public class GenericProxy
Implementation of the GenericProxy
object associated
with a remote MBean.
Constructor Summary | |
---|---|
GenericProxy(ObjectInstance instance)
Deprecated. Constructs a GenericProxy instance. |
|
GenericProxy(ObjectInstance instance,
ProxyHandler server)
Deprecated. Constructs a GenericProxy instance. |
Method Summary | |
---|---|
Object |
getAttribute(String attribute)
Deprecated. Gets the value of a specific attribute of an MBean. |
AttributeList |
getAttributes(String[] attributes)
Deprecated. Gets the values of several attributes of an MBean. |
MBeanInfo |
getMBeanInfo()
Deprecated. This method provides the exposed attributes and actions of the MBean. |
ObjectInstance |
getMBeanObjectInstance()
Deprecated. Returns an ObjectInstance object that contains the object name (ObjectName object) and the class name of the remote MBean that this proxy MBean represents. |
ProxyHandler |
getServer()
Deprecated. Returns the server to which this proxy is bound. |
Object |
invoke(String methodName,
Object[] arguments,
String[] signature)
Deprecated. Invokes a method of an MBean. |
void |
setAttribute(Attribute attribute)
Deprecated. Sets the value of a specific attribute of an MBean. |
AttributeList |
setAttributes(AttributeList attributes)
Deprecated. Sets the values of several attributes of an MBean. |
void |
setMBeanObjectInstance(ObjectInstance instance)
Deprecated. Sets an ObjectInstance identifying an MBean which will be represented by this proxy. |
void |
setServer(ProxyHandler server)
Deprecated. Sets the server to which this proxy is bound. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericProxy(ObjectInstance instance)
instance
- The object instance identifying a MBean.public GenericProxy(ObjectInstance instance, ProxyHandler server)
instance
- The object instance identifying a MBean.server
- The server to which this proxy is bound.Method Detail |
---|
public ObjectInstance getMBeanObjectInstance()
Proxy
getMBeanObjectInstance
in interface Proxy
public ProxyHandler getServer()
Proxy
getServer
in interface Proxy
public void setServer(ProxyHandler server)
Proxy
setServer
in interface Proxy
public MBeanInfo getMBeanInfo() throws InstanceNotFoundException, ProxyMBeanInstantiationException, ReflectionException, IntrospectionException
MBeanInfo
object.
MBeanInfo
allowing all attributes and actions of
this MBean to be retrieved.
ProxyMBeanInstantiationException
- The ProxyMBean
Metadata Service could not be instantiated.
InstanceNotFoundException
- The MBean specified is not registered in the MBean server.
ReflectionException
- Wraps a java.lang.Exception
thrown while trying to invoke the introspect
method.
IntrospectionException
- An exception occurs during introspection.public Object getAttribute(String attribute) throws AttributeNotFoundException, InstanceNotFoundException, MBeanException, ReflectionException
attribute
- The name of the attribute to be retrieved.
serializable
.
AttributeNotFoundException
- The attribute specified is not accessible in the MBean.
MBeanException
- Wraps an exception thrown by the MBean's getter.
InstanceNotFoundException
- The MBean specified is not registered in the MBean server.
ReflectionException
- Wraps an exception thrown while trying to instantiate and apply the
operator specified in Modification.public AttributeList getAttributes(String[] attributes) throws InstanceNotFoundException, ReflectionException
attributes
- A list of the attributes to be retrieved.
serializable
.
InstanceNotFoundException
- The MBean specified is not registered in the MBean server.
ReflectionException
- An exception occurred trying to invoke the getAttributes of a Dynamic MBean.public void setAttribute(Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
attribute
- The modification to be performed: The identification of the
attribute to be set, the value it is to be set to, and the operator to apply.
The value of the attribute can be any Java object that is serializable
.
InstanceNotFoundException
- The MBean specified is not registered in the MBean server.
AttributeNotFoundException
- The attribute specified is not accessible in the MBean.
InvalidAttributeValueException
- The value specified for the attribute is not valid.
MBeanException
- Wraps an exception thrown by the MBean's setter.
ReflectionException
- Wraps a java.lang.Exception
thrown while trying to invoke the setter.public AttributeList setAttributes(AttributeList attributes) throws InstanceNotFoundException, ReflectionException
attributes
- A list of attributes: The identification of the
attributes to be set and the values to which they are to be set.
The value of the attributes can be any Java object that is serializable
.
serializable
.
InstanceNotFoundException
- The MBean specified is not registered in the MBean server.
ReflectionException
- An exception occurred trying to invoke the setAttributes of a Dynamic MBean.public Object invoke(String methodName, Object[] arguments, String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException
methodName
- The name of the method to be invoked.arguments
- An array containing the arguments to be set when the method is invoked.
An argument can be any Java object that is serializable
.signature
- An array containing the signature of the method.
serializable
.
InstanceNotFoundException
- The MBean specified is not registered in the MBean server.
MBeanException
- Wraps an exception thrown by the MBean's invoked method.
ReflectionException
- Wraps a java.lang.Exception
thrown while trying to invoke the method.public void setMBeanObjectInstance(ObjectInstance instance)
instance
- The object instance identifying a MBean.
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |