com.netflix.adminresources.resources.jmx
Class JmxService

java.lang.Object
  extended by com.netflix.adminresources.resources.jmx.JmxService

public class JmxService
extends java.lang.Object


Method Summary
 java.util.List<java.lang.String> getDomainKeys(java.lang.String domainName)
          Return all keysace in a domain
 java.util.List<java.lang.String> getDomainList()
          Return the list of all domains on this server
 DynaTreeNode getDomainTree(java.lang.String domainName)
          Return subtree of nodes for a domain
static JmxService getInstance()
           
 java.util.List<java.lang.String> getKeysFromRegex(java.lang.String regex)
          Return the list of all keys matching a regex
 java.util.Map<java.lang.String,java.lang.String> getMBeanAttributes(java.lang.String key)
          Get list of all attributes of the specified key
 java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getMBeanAttributesByRegex(java.lang.String regex)
          Return a map of all attributes for objects matching the regex.
 javax.management.MBeanOperationInfo[] getMBeanOperations(java.lang.String name)
          Return all operations for the specified mbean name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static JmxService getInstance()

getDomainList

public java.util.List<java.lang.String> getDomainList()
Return the list of all domains on this server

Returns:

getDomainTree

public DynaTreeNode getDomainTree(java.lang.String domainName)
Return subtree of nodes for a domain


getDomainKeys

public java.util.List<java.lang.String> getDomainKeys(java.lang.String domainName)
Return all keysace in a domain

Parameters:
domainName -
Returns:

getKeysFromRegex

public java.util.List<java.lang.String> getKeysFromRegex(java.lang.String regex)
Return the list of all keys matching a regex

Parameters:
regex -
Returns:

getMBeanAttributesByRegex

public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getMBeanAttributesByRegex(java.lang.String regex)
                                                                                                           throws java.lang.Exception
Return a map of all attributes for objects matching the regex.

Parameters:
regex -
Returns:
Throws:
java.lang.Exception

getMBeanAttributes

public java.util.Map<java.lang.String,java.lang.String> getMBeanAttributes(java.lang.String key)
                                                                    throws java.lang.Exception
Get list of all attributes of the specified key

Parameters:
key -
Returns:
Throws:
java.lang.Exception

getMBeanOperations

public javax.management.MBeanOperationInfo[] getMBeanOperations(java.lang.String name)
                                                         throws java.lang.Exception
Return all operations for the specified mbean name

Parameters:
name -
Returns:
Throws:
java.lang.Exception