com.adventnet.services.logger
Class LogFactoryController

java.lang.Object
  |
  +--com.adventnet.services.logger.LogFactoryController

public class LogFactoryController
extends java.lang.Object
implements DynamicMBean


Constructor Summary
LogFactoryController()
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String attributeName)
          Obtain the value of a specific attribute of the Dynamic MBean.
 AttributeList getAttributes(java.lang.String[] attributeNames)
          get all attributes
 MBeanInfo getMBeanInfo()
          Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object.
 java.lang.Object invoke(java.lang.String operationName, java.lang.Object[] params, java.lang.String[] signature)
          Allows an action to be invoked on the Dynamic MBean.
 void setAttribute(Attribute attribute)
          Sets the value of the specified attribute of the Dynamic MBean.
 AttributeList setAttributes(AttributeList attributes)
          Sets the values of several attributes of the Dynamic MBean.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFactoryController

public LogFactoryController()
Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.String attributeName)
                              throws AttributeNotFoundException,
                                     MBeanException,
                                     ReflectionException
Description copied from interface: DynamicMBean
Obtain the value of a specific attribute of the Dynamic MBean.
Specified by:
getAttribute in interface DynamicMBean
Tags copied from interface: DynamicMBean
Parameters:
attribute - The name of the attribute to be retrieved
Returns:
The value of the attribute retrieved.
Throws:
AttributeNotFoundException -  
MBeanException - Wraps a java.lang.Exception thrown by the MBean's getter.
ReflectionException - Wraps a java.lang.Exception thrown while trying to invoke the getter.
See Also:
DynamicMBean.setAttribute(javax.management.Attribute)

setAttribute

public void setAttribute(Attribute attribute)
                  throws AttributeNotFoundException,
                         InvalidAttributeValueException,
                         MBeanException,
                         ReflectionException
Sets the value of the specified attribute of the Dynamic MBean.
Specified by:
setAttribute in interface DynamicMBean
Tags copied from interface: DynamicMBean
Parameters:
attribute - The identification of the attribute to be set and the value it is to be set to.
Throws:
AttributeNotFoundException -  
InvalidAttributeValueException -  
MBeanException - Wraps a java.lang.Exception thrown by the MBean's setter.
ReflectionException - Wraps a java.lang.Exception thrown while trying to invoke the MBean's setter.
See Also:
DynamicMBean.getAttribute(java.lang.String)

getAttributes

public AttributeList getAttributes(java.lang.String[] attributeNames)
get all attributes
Specified by:
getAttributes in interface DynamicMBean
Tags copied from interface: DynamicMBean
Parameters:
attributes - A list of the attributes to be retrieved.
Returns:
The list of attributes retrieved.
See Also:
DynamicMBean.setAttributes(javax.management.AttributeList)

setAttributes

public AttributeList setAttributes(AttributeList attributes)
Description copied from interface: DynamicMBean
Sets the values of several attributes of the Dynamic MBean.
Specified by:
setAttributes in interface DynamicMBean
Tags copied from interface: DynamicMBean
Parameters:
attributes - A list of attributes: The identification of the attributes to be set and the values they are to be set to.
Returns:
The list of attributes that were set, with their new values.
See Also:
DynamicMBean.getAttributes(java.lang.String[])

invoke

public java.lang.Object invoke(java.lang.String operationName,
                               java.lang.Object[] params,
                               java.lang.String[] signature)
                        throws MBeanException,
                               ReflectionException
Description copied from interface: DynamicMBean
Allows an action to be invoked on the Dynamic MBean.
Specified by:
invoke in interface DynamicMBean
Tags copied from interface: DynamicMBean
Parameters:
actionName - The name of the action to be invoked.
params - An array containing the parameters to be set when the action is invoked.
signature - An array containing the signature of the action. The class objects will be loaded through the same class loader as the one used for loading the MBean on which the action is invoked.
Returns:
The object returned by the action, which represents the result of invoking the action on the MBean specified.
Throws:
MBeanException - Wraps a java.lang.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()
Description copied from interface: DynamicMBean
Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object.
Specified by:
getMBeanInfo in interface DynamicMBean
Tags copied from interface: DynamicMBean
Returns:
An instance of MBeanInfo allowing all attributes and actions exposed by this Dynamic MBean to be retrieved.