com.adventnet.adaptors.clients
Interface AsyncClient

All Known Implementing Classes:
AbstractClient

public interface AsyncClient

This interface provides methods for asynchronous communication


Method Summary
 java.lang.Object asyncGetAttribute(ObjectName name, java.lang.String attribute)
          Gets the value of a specific attribute of a named MBean.
 java.lang.Object asyncGetAttributes(ObjectName name, java.lang.String[] attributes)
          Gets the values of several attributes of a named MBean.
 java.lang.Object asyncInvoke(ObjectName name, java.lang.String actionName, java.lang.Object[] params, java.lang.String[] signature)
          Invokes an operation on an MBean
 java.lang.Object asyncSetAttributes(ObjectName name, AttributeList attributes)
          Sets the values of several attributes of a named MBean.
 

Method Detail

asyncInvoke

public java.lang.Object asyncInvoke(ObjectName name,
                                    java.lang.String actionName,
                                    java.lang.Object[] params,
                                    java.lang.String[] signature)
                             throws java.lang.Exception
Invokes an operation on an MBean
Parameters:
name - - The object name of the MBean on which the method is to be invoked.
actionName - - The name of the operation to be invoked.
params - - An array containing the parameters to be set when the operation is invoked
signature - - An array containing the signature of the operation. The class objects will be loaded using the same class loader as the one used for loading the MBean on which the operation was invoked.
Returns:
- returns an Object that contains information to correlate this request with the response sent by the agent and received elsewhere

asyncGetAttribute

public java.lang.Object asyncGetAttribute(ObjectName name,
                                          java.lang.String attribute)
                                   throws java.lang.Exception
Gets the value of a specific attribute of a named MBean. The MBean is identified by its object name.
Parameters:
name - - The object name of the MBean from which the attribute is to be retrieved.
attribute - - A String specifying the name of the attribute to be retrieved.
Returns:
- returns an Object that contains information to correlate this request with the response sent by the agent and received elsewhere

asyncGetAttributes

public java.lang.Object asyncGetAttributes(ObjectName name,
                                           java.lang.String[] attributes)
                                    throws java.lang.Exception
Gets the values of several attributes of a named MBean. The MBean is identified by its object name.
Parameters:
name - - The object name of the MBean from which the attributes are retrieved.
attributes - - A list of the attributes to be retrieved.
Returns:
- returns an Object that contains information to correlate this request with the response sent by the agent and received elsewhere

asyncSetAttributes

public java.lang.Object asyncSetAttributes(ObjectName name,
                                           AttributeList attributes)
                                    throws java.lang.Exception
Sets the values of several attributes of a named MBean. The MBean is identified by its object name.
Parameters:
name - - The object name of the MBean within which the attributes are to be set.
attributes - - A list of attributes: The identification of the attributes to be set and the values they are to be set to.
Returns:
- returns an Object that contains information to correlate this request with the response sent by the agent and received elsewhere