org.ow2.jonas.lib.management.extensions.container
Class ContainerManagement

java.lang.Object
  extended by org.ow2.jonas.lib.management.extensions.container.ContainerManagement
All Implemented Interfaces:
IContainerManagement

public class ContainerManagement
extends Object
implements IContainerManagement


Field Summary
protected static org.ow2.util.log.Log logger
          create logger
 
Constructor Summary
ContainerManagement()
          Default constructor.
 
Method Summary
 ObjectName getEJBModuleObjectName(String ejbObjectName)
          Gets ObjectName for J2EE Module.
 List<?> getEntityBeans(ObjectName pObjectName, String serverName)
          Gets all the EntityBean MBeans in a module which is deployed in a given server
static IContainerManagement getInstance()
          Get singleton instance.
 List<?> getMessageDrivenBeans(ObjectName pObjectName, String serverName)
          Gets all the Message Driven MBeans in a module which is deployed in a given server
 List<?> getStatefulSessionBeans(ObjectName pObjectName, String serverName)
          Gets all the Stateful Session MBeans in a module which is deployed in a given server
 List<?> getStatelessSessionBeans(ObjectName pObjectName, String serverName)
          Gets all the Stateless Session MBeans in a module which is deployed in a given server
 Map getTotalEJB(ObjectName moduleOn)
          Get the total number of EJBs in a EJBModule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.ow2.util.log.Log logger
create logger

Constructor Detail

ContainerManagement

public ContainerManagement()
Default constructor.

Method Detail

getInstance

public static IContainerManagement getInstance()
Get singleton instance.

Returns:
singleton instance.

getEJBModuleObjectName

public ObjectName getEJBModuleObjectName(String ejbObjectName)
                                  throws MalformedObjectNameException
Gets ObjectName for J2EE Module.

Specified by:
getEJBModuleObjectName in interface IContainerManagement
Parameters:
ejbObjectName -
Returns:
module objectName.
Throws:
MalformedObjectNameException

getEntityBeans

public List<?> getEntityBeans(ObjectName pObjectName,
                              String serverName)
Gets all the EntityBean MBeans in a module which is deployed in a given server

Specified by:
getEntityBeans in interface IContainerManagement
Parameters:
pDomain - domain name
pModule - name of the module containing the Entity
pServer - the server name
Returns:
List of entity beans.

getStatelessSessionBeans

public List<?> getStatelessSessionBeans(ObjectName pObjectName,
                                        String serverName)
Gets all the Stateless Session MBeans in a module which is deployed in a given server

Specified by:
getStatelessSessionBeans in interface IContainerManagement
Parameters:
pObjectName - pObjectName
serverName - name of the administrated server.
Returns:
List of entity beans.

getStatefulSessionBeans

public List<?> getStatefulSessionBeans(ObjectName pObjectName,
                                       String serverName)
Gets all the Stateful Session MBeans in a module which is deployed in a given server

Specified by:
getStatefulSessionBeans in interface IContainerManagement
Parameters:
pObjectName - pObjectName
serverName - name of the administrated server.
Returns:
List of entity beans.

getMessageDrivenBeans

public List<?> getMessageDrivenBeans(ObjectName pObjectName,
                                     String serverName)
Gets all the Message Driven MBeans in a module which is deployed in a given server

Specified by:
getMessageDrivenBeans in interface IContainerManagement
Parameters:
pObjectName - pObjectName
serverName - name of the administrated server.
Returns:
List of entity beans.

getTotalEJB

public Map getTotalEJB(ObjectName moduleOn)
Get the total number of EJBs in a EJBModule

Specified by:
getTotalEJB in interface IContainerManagement
Parameters:
moduleOn - the EJBModule's ObjectName
Returns:
map with the number of EJBs of different types where the key is the JSR77 type name


Copyright © 2010 OW2 Consortium. All Rights Reserved.