com.sun.sgs.impl.profile
Class ProfileController

java.lang.Object
  extended by javax.management.StandardMBean
      extended by com.sun.sgs.impl.profile.ProfileController
All Implemented Interfaces:
ProfileControllerMXBean, DynamicMBean, MBeanRegistration

 class ProfileController
extends StandardMBean
implements ProfileControllerMXBean

The MXBean for controlling profile information.


Field Summary
 
Fields inherited from interface com.sun.sgs.management.ProfileControllerMXBean
MXBEAN_NAME
 
Constructor Summary
ProfileController(ProfileCollector collector)
          Creates a new Profile Controller MXBean object.
 
Method Summary
 ProfileCollector.ProfileLevel getConsumerLevel(String consumer)
          Gets the current profile level of the named consumer.
 ProfileCollector.ProfileLevel getDefaultProfileLevel()
          Gets the default profile level for all newly created consumers.
protected  String getDescription(MBeanAttributeInfo info)
          
protected  String getDescription(MBeanInfo info)
          
protected  String getDescription(MBeanOperationInfo op)
          
protected  String getDescription(MBeanOperationInfo op, MBeanParameterInfo param, int sequence)
          
protected  int getImpact(MBeanOperationInfo op)
          
protected  String getParameterName(MBeanOperationInfo op, MBeanParameterInfo param, int sequence)
          
 String[] getProfileConsumers()
          Gets the names of all profile consumers in the system.
 void setConsumerLevel(String consumer, ProfileCollector.ProfileLevel level)
          Sets the current profile level of the named consumer.
 void setDefaultProfileLevel(ProfileCollector.ProfileLevel level)
          Sets the default profile level for all newly created consumers.
 
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileController

public ProfileController(ProfileCollector collector)
Creates a new Profile Controller MXBean object.

Parameters:
collector - the backing profile collector
Method Detail

getProfileConsumers

public String[] getProfileConsumers()
Gets the names of all profile consumers in the system.

Specified by:
getProfileConsumers in interface ProfileControllerMXBean
Returns:
the names of all the profile consumers

getConsumerLevel

public ProfileCollector.ProfileLevel getConsumerLevel(String consumer)
Gets the current profile level of the named consumer.

Specified by:
getConsumerLevel in interface ProfileControllerMXBean
Parameters:
consumer - the consumer name
Returns:
the profile level for the named consumer

setConsumerLevel

public void setConsumerLevel(String consumer,
                             ProfileCollector.ProfileLevel level)
Sets the current profile level of the named consumer.

Specified by:
setConsumerLevel in interface ProfileControllerMXBean
Parameters:
consumer - the consumer name
level - the profile level

getDefaultProfileLevel

public ProfileCollector.ProfileLevel getDefaultProfileLevel()
Gets the default profile level for all newly created consumers.

Specified by:
getDefaultProfileLevel in interface ProfileControllerMXBean
Returns:
the default profile level for consumer creation

setDefaultProfileLevel

public void setDefaultProfileLevel(ProfileCollector.ProfileLevel level)
Sets the default profile level for all newly created consumers.

Specified by:
setDefaultProfileLevel in interface ProfileControllerMXBean
Parameters:
level - the default profile level for consumer creation

getDescription

protected String getDescription(MBeanInfo info)

Overrides:
getDescription in class StandardMBean

getDescription

protected String getDescription(MBeanAttributeInfo info)

Overrides:
getDescription in class StandardMBean

getDescription

protected String getDescription(MBeanOperationInfo op)

Overrides:
getDescription in class StandardMBean

getDescription

protected String getDescription(MBeanOperationInfo op,
                                MBeanParameterInfo param,
                                int sequence)

Overrides:
getDescription in class StandardMBean

getParameterName

protected String getParameterName(MBeanOperationInfo op,
                                  MBeanParameterInfo param,
                                  int sequence)

Overrides:
getParameterName in class StandardMBean

getImpact

protected int getImpact(MBeanOperationInfo op)

Overrides:
getImpact in class StandardMBean

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved