net.sf.panoptes.model.component
Class ComponentUtil

java.lang.Object
  |
  +--net.sf.panoptes.model.component.ComponentUtil

public class ComponentUtil
extends java.lang.Object

Author:
Dag Liodden

Constructor Summary
ComponentUtil()
           
 
Method Summary
static ComponentName createDomainMBeanQuery(MBeanServerComponent server, java.lang.String domainName)
          Creates a query that lists MBeanComponents in a domain.
static ComponentName createDomainName(MBeanServerComponent server, java.lang.String domainName)
          Creates a name for a DomainComponent
static ComponentName createLoggerName(java.lang.String host, java.lang.String prefix)
           
static ComponentName createMBeanName(MBeanServerComponent server, DomainComponent domain, javax.management.ObjectName objectName)
          Creates the name of an MBeanComponent
static ComponentName createMBeanServerDomainQuery(java.lang.String host, int port)
          Creates a query that lists DomainComponents in an MBeanServerComponent
static ComponentName createMBeanServerName(MBeanServerComponent server)
           
static ComponentName createMBeanServerName(java.lang.String host, int port)
          Creates a name for a MBeanServerComponent
static ComponentName createName(LoggerComponent logger)
           
static ComponentName createQueryName(ComponentQuery query)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentUtil

public ComponentUtil()
Method Detail

createQueryName

public static ComponentName createQueryName(ComponentQuery query)
                                     throws MalformedComponentNameException
MalformedComponentNameException

createLoggerName

public static ComponentName createLoggerName(java.lang.String host,
                                             java.lang.String prefix)
                                      throws MalformedComponentNameException
MalformedComponentNameException

createName

public static ComponentName createName(LoggerComponent logger)
                                throws MalformedComponentNameException
MalformedComponentNameException

createMBeanServerName

public static ComponentName createMBeanServerName(java.lang.String host,
                                                  int port)
                                           throws MalformedComponentNameException
Creates a name for a MBeanServerComponent

Returns:
Throws:
MalformedComponentNameException

createMBeanServerName

public static ComponentName createMBeanServerName(MBeanServerComponent server)
                                           throws MalformedComponentNameException
MalformedComponentNameException

createDomainName

public static ComponentName createDomainName(MBeanServerComponent server,
                                             java.lang.String domainName)
                                      throws MalformedComponentNameException
Creates a name for a DomainComponent

Parameters:
server -
domainName -
Returns:
Throws:
MalformedComponentNameException

createMBeanServerDomainQuery

public static ComponentName createMBeanServerDomainQuery(java.lang.String host,
                                                         int port)
                                                  throws MalformedComponentNameException
Creates a query that lists DomainComponents in an MBeanServerComponent

Parameters:
host - host of the sever
port - port of the server
Returns:
the query
Throws:
MalformedComponentNameException

createDomainMBeanQuery

public static ComponentName createDomainMBeanQuery(MBeanServerComponent server,
                                                   java.lang.String domainName)
                                            throws MalformedComponentNameException
Creates a query that lists MBeanComponents in a domain.

Parameters:
server - the MBeanServerComponent
domainName - the domain name
Returns:
the query
Throws:
MalformedComponentNameException

createMBeanName

public static ComponentName createMBeanName(MBeanServerComponent server,
                                            DomainComponent domain,
                                            javax.management.ObjectName objectName)
                                     throws MalformedComponentNameException
Creates the name of an MBeanComponent

Parameters:
server - the MBeanServerComponent
domain - the DomainComponent
objectName - the JMX ObjectName of the MBean
Returns:
the name
Throws:
MalformedComponentNameException
See Also:
ObjectName


Copyright © 2003 . All Rights Reserved.