Oracle Fusion Middleware extensions for Logging and Diagnostic
11g Release 1 (11.1.1.6)

E22565-06

oracle.apps.fnd.appltest.diagfwk.engine.impl.mbean
Class ExecutorMBeanDiscovererImpl

java.lang.Object
  extended by oracle.apps.fnd.appltest.diagfwk.engine.impl.mbean.ExecutorMBeanDiscovererImpl
All Implemented Interfaces:
ExecutorMBeanDiscoverer

public class ExecutorMBeanDiscovererImpl
extends java.lang.Object
implements ExecutorMBeanDiscoverer

Implementation of the Diagnostics Executor MBean Discoverer

Since:
release specific (what release of product did this appear in)
Version:
$Header: atgpf/appltest/applications/Diagnostics/Engine/src/oracle/apps/fnd/appltest/diagfwk/engine/impl/mbean/ExecutorMBeanDiscovererImpl.java /main/7 2009/06/11 19:54:33 ilawler Exp $
Author:
Oracle

Method Summary
 java.util.Map<java.lang.String,java.util.List<javax.management.ObjectName>> getAvailableExecutorMBeans(java.lang.String pWebAppName)
          Returns the object names of the discovered MBeans for the given web app
static ExecutorMBeanDiscoverer getInstance()
           
static java.lang.String getPartialExecutorMBeanObjectName(java.lang.String webAppName)
          Formulates the object name of the Executor MBean partially.
 java.util.List<java.lang.String> getWebApplicationsAvailableForTest()
          Returns the list of Web Applications that are available on which Diagnostic Tests that execute Applications code can be run.
 boolean isExecutorMBeanAvailable(java.lang.String pWebAppName)
          Checks whether there is at least one mbean instance currently available in order to execute any tests for the given web application that requires the application context.
 void refreshAvailableMBeans()
          Starts a discovery process that queries the Domain runtime mbean server to determine the instances of all diagnostics executor mbeans that are currently available to execute diagnostic tests that require application context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ExecutorMBeanDiscoverer getInstance()

refreshAvailableMBeans

public void refreshAvailableMBeans()
Description copied from interface: ExecutorMBeanDiscoverer
Starts a discovery process that queries the Domain runtime mbean server to determine the instances of all diagnostics executor mbeans that are currently available to execute diagnostic tests that require application context.

If multiple domains are configured in the domain registry the refresh action will also query the additional domains to get list of mbeans instances from such domains.

Specified by:
refreshAvailableMBeans in interface ExecutorMBeanDiscoverer

getAvailableExecutorMBeans

public java.util.Map<java.lang.String,java.util.List<javax.management.ObjectName>> getAvailableExecutorMBeans(java.lang.String pWebAppName)
Description copied from interface: ExecutorMBeanDiscoverer
Returns the object names of the discovered MBeans for the given web app

Specified by:
getAvailableExecutorMBeans in interface ExecutorMBeanDiscoverer
Parameters:
pWebAppName - name of the web application for which to get the list of available executor mbeans
Returns:
a Map with the domain runtime mbean server URL as key and list of executor mbean object names available on that server as value in order to invoke tests that require application context for the given web application name.

isExecutorMBeanAvailable

public boolean isExecutorMBeanAvailable(java.lang.String pWebAppName)
Description copied from interface: ExecutorMBeanDiscoverer
Checks whether there is at least one mbean instance currently available in order to execute any tests for the given web application that requires the application context.

Specified by:
isExecutorMBeanAvailable in interface ExecutorMBeanDiscoverer
Parameters:
pWebAppName - name of the web application
Returns:
true if there is at least one mbean instance currently available in order to execute any tests for the given web application that requires the application context. Returns false otherwise.

getWebApplicationsAvailableForTest

public java.util.List<java.lang.String> getWebApplicationsAvailableForTest()
Description copied from interface: ExecutorMBeanDiscoverer
Returns the list of Web Applications that are available on which Diagnostic Tests that execute Applications code can be run. This would typically be the list of web applications that are running on the current server.

Specified by:
getWebApplicationsAvailableForTest in interface ExecutorMBeanDiscoverer
Returns:
list of web application names that are running on the server

getPartialExecutorMBeanObjectName

public static java.lang.String getPartialExecutorMBeanObjectName(java.lang.String webAppName)
Formulates the object name of the Executor MBean partially. Translate the object name further to the global namespace prior to registering.

Parameters:
webAppName -
Returns:
formulated object name as a string
Throws:
javax.management.MalformedObjectNameException

Oracle Fusion Middleware extensions for Logging and Diagnostic
11g Release 1 (11.1.1.6)

E22565-06

Copyright © 2012 Oracle. All Rights Reserved.