org.objectweb.jonas.jmx
Class JonasObjectName

java.lang.Object
  |
  +--org.objectweb.jonas.jmx.JonasObjectName

public class JonasObjectName
extends java.lang.Object

A set of static classes used to build the names of MBeans used in JOnAS Each MBean or MBean type should have a method here.

Author:
Bruno Michel and Guillaume Riviere Contributor(s): Florent Benoit & Ludovic Bert : Ear service/Web Container service/Mail service Miroslav Halas for Jetty

Field Summary
static java.lang.String DOMAIN
           
 
Constructor Summary
JonasObjectName()
           
 
Method Summary
static javax.management.ObjectName allContainers()
           
static javax.management.ObjectName allDatasources()
           
static javax.management.ObjectName allEars()
           
static javax.management.ObjectName allEjbBmp(java.lang.String fileName)
           
static javax.management.ObjectName allEjbCmp(java.lang.String fileName)
           
static javax.management.ObjectName allEjbMdb(java.lang.String fileName)
           
static javax.management.ObjectName allEjbSbf(java.lang.String fileName)
           
static javax.management.ObjectName allEjbSbl(java.lang.String fileName)
           
static javax.management.ObjectName allInContainer(java.lang.String fileName)
           
static javax.management.ObjectName allMimeMailFactories()
          Return an objectName specifying all the mime mail factories.
static javax.management.ObjectName allResourceAdaptors()
           
static javax.management.ObjectName allSessionMailFactories()
          Return an objectName specifying all the session mail factories.
static javax.management.ObjectName allWWW()
           
static javax.management.ObjectName container(java.lang.String filename)
           
static javax.management.ObjectName databaseService()
           
static javax.management.ObjectName datasource(java.lang.String name)
           
static javax.management.ObjectName ear(java.lang.String filename)
           
static javax.management.ObjectName earService()
          Return the earService (Jmx).
static javax.management.ObjectName ejb(java.lang.String type, java.lang.String filename, java.lang.String name)
           
static javax.management.ObjectName ejbbmp(java.lang.String filename, java.lang.String name)
           
static javax.management.ObjectName ejbcmp(java.lang.String filename, java.lang.String name)
           
static javax.management.ObjectName ejbmdb(java.lang.String filename, java.lang.String name)
           
static javax.management.ObjectName ejbsbf(java.lang.String filename, java.lang.String name)
           
static javax.management.ObjectName ejbsbl(java.lang.String filename, java.lang.String name)
           
static javax.management.ObjectName ejbServer()
           
static javax.management.ObjectName ejbService()
           
static java.lang.String fileNameForObjectName(java.lang.String fileName)
           
static javax.management.ObjectName genericEjbObjectName(java.util.Properties p)
           
static java.lang.String getType(javax.management.ObjectName obj)
           
static javax.management.ObjectName jmsService()
           
static javax.management.ObjectName jmxService()
           
static javax.management.ObjectName jrmpAdaptor()
          Create an ObjectName for the MX4J JRMP adaptor
static javax.management.ObjectName logService()
           
static javax.management.ObjectName mailService()
          Return the mailService (Jmx).
static javax.management.ObjectName mimeMailFactory(java.lang.String name)
          Return an objectName for a MimePartDataSource type mail factory.
static javax.management.ObjectName resourceAdapter(java.lang.String name)
           
static javax.management.ObjectName resourceService()
           
static javax.management.ObjectName rmiConnector()
           
static javax.management.ObjectName securityService()
           
static javax.management.ObjectName sessionMailFactory(java.lang.String name)
          Return an objectName for a Session type mail factory.
 java.lang.String toString()
          A different implementation should allow returning a logical name.
static javax.management.ObjectName transactionService()
           
static javax.management.ObjectName webContainerService()
          Return the webContainerService (Jmx).
static javax.management.ObjectName www(java.lang.String subtype)
           
static javax.management.ObjectName wwwService()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DOMAIN

public static java.lang.String DOMAIN
Constructor Detail

JonasObjectName

public JonasObjectName()
Method Detail

jrmpAdaptor

public static javax.management.ObjectName jrmpAdaptor()
Create an ObjectName for the MX4J JRMP adaptor

ejbServer

public static javax.management.ObjectName ejbServer()

wwwService

public static javax.management.ObjectName wwwService()

ejbService

public static javax.management.ObjectName ejbService()

earService

public static javax.management.ObjectName earService()
Return the earService (Jmx).
Returns:
the Ear service.

mailService

public static javax.management.ObjectName mailService()
Return the mailService (Jmx).
Returns:
the Mail service.

webContainerService

public static javax.management.ObjectName webContainerService()
Return the webContainerService (Jmx).
Returns:
the web container service.

databaseService

public static javax.management.ObjectName databaseService()

resourceService

public static javax.management.ObjectName resourceService()

transactionService

public static javax.management.ObjectName transactionService()

logService

public static javax.management.ObjectName logService()

jmsService

public static javax.management.ObjectName jmsService()

securityService

public static javax.management.ObjectName securityService()

jmxService

public static javax.management.ObjectName jmxService()

www

public static javax.management.ObjectName www(java.lang.String subtype)
                                       throws javax.management.MalformedObjectNameException

container

public static javax.management.ObjectName container(java.lang.String filename)
                                             throws javax.management.MalformedObjectNameException

ear

public static javax.management.ObjectName ear(java.lang.String filename)
                                       throws javax.management.MalformedObjectNameException

ejb

public static javax.management.ObjectName ejb(java.lang.String type,
                                              java.lang.String filename,
                                              java.lang.String name)
                                       throws javax.management.MalformedObjectNameException

ejbbmp

public static javax.management.ObjectName ejbbmp(java.lang.String filename,
                                                 java.lang.String name)
                                          throws javax.management.MalformedObjectNameException

ejbcmp

public static javax.management.ObjectName ejbcmp(java.lang.String filename,
                                                 java.lang.String name)
                                          throws javax.management.MalformedObjectNameException

ejbsbf

public static javax.management.ObjectName ejbsbf(java.lang.String filename,
                                                 java.lang.String name)
                                          throws javax.management.MalformedObjectNameException

ejbsbl

public static javax.management.ObjectName ejbsbl(java.lang.String filename,
                                                 java.lang.String name)
                                          throws javax.management.MalformedObjectNameException

ejbmdb

public static javax.management.ObjectName ejbmdb(java.lang.String filename,
                                                 java.lang.String name)
                                          throws javax.management.MalformedObjectNameException

datasource

public static javax.management.ObjectName datasource(java.lang.String name)
                                              throws javax.management.MalformedObjectNameException

sessionMailFactory

public static javax.management.ObjectName sessionMailFactory(java.lang.String name)
                                                      throws javax.management.MalformedObjectNameException
Return an objectName for a Session type mail factory.
Parameters:
name - the name of the mail factory
Returns:
an objectName for the mail factory.
Throws:
javax.management.MalformedObjectNameException - if the objectname can't be build

mimeMailFactory

public static javax.management.ObjectName mimeMailFactory(java.lang.String name)
                                                   throws javax.management.MalformedObjectNameException
Return an objectName for a MimePartDataSource type mail factory.
Parameters:
name - the name of the mail factory
Returns:
an objectName for the mail factory.
Throws:
javax.management.MalformedObjectNameException - if the objectname can't be build

resourceAdapter

public static javax.management.ObjectName resourceAdapter(java.lang.String name)
                                                   throws javax.management.MalformedObjectNameException

rmiConnector

public static javax.management.ObjectName rmiConnector()

allWWW

public static javax.management.ObjectName allWWW()

allContainers

public static javax.management.ObjectName allContainers()

allEars

public static javax.management.ObjectName allEars()

allDatasources

public static javax.management.ObjectName allDatasources()

allSessionMailFactories

public static javax.management.ObjectName allSessionMailFactories()
Return an objectName specifying all the session mail factories.
Returns:
an objectName referencing all session mail factories.

allMimeMailFactories

public static javax.management.ObjectName allMimeMailFactories()
Return an objectName specifying all the mime mail factories.
Returns:
an objectName referencing all mime mail factories.

allResourceAdaptors

public static javax.management.ObjectName allResourceAdaptors()

allEjbBmp

public static javax.management.ObjectName allEjbBmp(java.lang.String fileName)

allEjbCmp

public static javax.management.ObjectName allEjbCmp(java.lang.String fileName)

allEjbSbf

public static javax.management.ObjectName allEjbSbf(java.lang.String fileName)

allEjbSbl

public static javax.management.ObjectName allEjbSbl(java.lang.String fileName)

allEjbMdb

public static javax.management.ObjectName allEjbMdb(java.lang.String fileName)

allInContainer

public static javax.management.ObjectName allInContainer(java.lang.String fileName)

getType

public static java.lang.String getType(javax.management.ObjectName obj)

fileNameForObjectName

public static java.lang.String fileNameForObjectName(java.lang.String fileName)

genericEjbObjectName

public static javax.management.ObjectName genericEjbObjectName(java.util.Properties p)
                                                        throws javax.management.MalformedObjectNameException

toString

public java.lang.String toString()
A different implementation should allow returning a logical name. This String is used within the Exception messages when throwing a ManagementException. This is done currently in the invoke method of ManagementReprImpl/Mx4jManagementReprImpl classes.
Overrides:
toString in class java.lang.Object
Returns:
String representation of the ObjectName