com.sun.jdmk.cascading
Class CascadeGenericProxy

java.lang.Object
  extended bycom.sun.jdmk.cascading.CascadeGenericProxy
All Implemented Interfaces:
DynamicMBean, NotificationBroadcaster

Deprecated. Use package com.sun.jdmk.remote.cascading in preference to classes in this package. This class may be removed in a future version of Java DMK.

public class CascadeGenericProxy
extends Object
implements DynamicMBean, NotificationBroadcaster

Dynamic MBean representing a subagent MBean in the master agent. It has a reference to the GenericProxy representing the "cascaded" MBean. For each "cascaded" MBean the corresponding CascadeGenericProxy is created by the cascading service (CascadingAgent).


Constructor Summary
CascadeGenericProxy(GenericProxy gen)
          Deprecated. Creates a CascadeGenericProxy for a "cascaded" MBean represented by the GenericProxy passed in parameter.
 
Method Summary
 void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
          Deprecated.  
 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.
 MBeanNotificationInfo[] getNotificationInfo()
          Deprecated.  
 Object invoke(String actionName, Object[] params, String[] signature)
          Deprecated. Invokes a method of an MBean.
 void removeNotificationListener(NotificationListener listener)
          Deprecated.  
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CascadeGenericProxy

public CascadeGenericProxy(GenericProxy gen)
Deprecated. 
Creates a CascadeGenericProxy for a "cascaded" MBean represented by the GenericProxy passed in parameter.

Method Detail

addNotificationListener

public void addNotificationListener(NotificationListener listener,
                                    NotificationFilter filter,
                                    Object handback)
                             throws IllegalArgumentException
Deprecated. 
Specified by:
addNotificationListener in interface NotificationBroadcaster
Throws:
IllegalArgumentException

removeNotificationListener

public void removeNotificationListener(NotificationListener listener)
                                throws ListenerNotFoundException
Deprecated. 
Specified by:
removeNotificationListener in interface NotificationBroadcaster
Throws:
ListenerNotFoundException

getNotificationInfo

public MBeanNotificationInfo[] getNotificationInfo()
Deprecated. 
Specified by:
getNotificationInfo in interface NotificationBroadcaster

getAttribute

public Object getAttribute(String attribute)
                    throws AttributeNotFoundException,
                           MBeanException,
                           ReflectionException
Deprecated. 
Gets the value of a specific attribute of an MBean.

Specified by:
getAttribute in interface DynamicMBean
Parameters:
attribute - The name of the attribute to be retrieved.
Returns:
The value of the retrieved attribute. The return value can be any Java object that is serializable.
Throws:
AttributeNotFoundException - The attribute specified is not accessible in the MBean.
MBeanException - Wraps an exception thrown by the MBean's getter.
ReflectionException - Wraps an exception thrown while trying to instantiate and apply the operator specified in Modification.

setAttribute

public void setAttribute(Attribute attribute)
                  throws AttributeNotFoundException,
                         InvalidAttributeValueException,
                         MBeanException,
                         ReflectionException
Deprecated. 
Sets the value of a specific attribute of an MBean.

Specified by:
setAttribute in interface DynamicMBean
Parameters:
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.
Throws:
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.

getAttributes

public AttributeList getAttributes(String[] attributes)
Deprecated. 
Gets the values of several attributes of an MBean.

Specified by:
getAttributes in interface DynamicMBean
Parameters:
attributes - A list of the attributes to be retrieved.
Returns:
The values of the retrieved attributes. The value of the attributes can be any Java object that is serializable.

setAttributes

public AttributeList setAttributes(AttributeList attributes)
Deprecated. 
Sets the values of several attributes of an MBean.

Specified by:
setAttributes in interface DynamicMBean
Parameters:
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.
Returns:
The list of attributes that were set, with their new values. The value of the attributes can be any Java object that is serializable.

invoke

public Object invoke(String actionName,
                     Object[] params,
                     String[] signature)
              throws MBeanException,
                     ReflectionException
Deprecated. 
Invokes a method of an MBean.

Specified by:
invoke in interface DynamicMBean
Parameters:
actionName - The name of the method to be invoked.
params - 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.
Returns:
The object returned by the invocation of the given method. The return value can be any Java object that is serializable.
Throws:
MBeanException - Wraps an exception thrown by the MBean's invoked method.
ReflectionException - Wraps a java.lang.Exception thrown while trying to invoke the method.

getMBeanInfo

public MBeanInfo getMBeanInfo()
Deprecated. 
This method provides the exposed attributes and actions of the MBean. It provides this information using an MBeanInfo object.

Specified by:
getMBeanInfo in interface DynamicMBean
Returns:
An instance of MBeanInfo allowing all attributes and actions of this MBean to be retrieved.

FCS Release
jdmk-5_1-b34.1 2005.02.10_16:46:09_MET

Copyright 1998-2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.