com.sun.sgs.management
Interface ProfileControllerMXBean


public interface ProfileControllerMXBean

The management information for this node's profiling data. The profiling levels for each of the individual profile consumers can be modified through this interface.

An instance implementing this MBean can be obtained from the from the getPlatformMBeanServer method.

The ObjectName for uniquely identifying this MBean is "com.sun.sgs:type=ProfileController".


Field Summary
static String MXBEAN_NAME
          The name for uniquely identifying this MBean.
 
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.
 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.
 

Field Detail

MXBEAN_NAME

static final String MXBEAN_NAME
The name for uniquely identifying this MBean.

See Also:
Constant Field Values
Method Detail

getDefaultProfileLevel

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

Returns:
the default profile level for consumer creation

setDefaultProfileLevel

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

Parameters:
level - the default profile level for consumer creation

getProfileConsumers

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

Returns:
the names of all the profile consumers

getConsumerLevel

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

Parameters:
consumer - the consumer name
Returns:
the profile level for the named consumer
Throws:
IllegalArgumentException - if the consumer has not been created

setConsumerLevel

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

Parameters:
consumer - the consumer name
level - the profile level
Throws:
IllegalArgumentException - if the consumer has not been created

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