org.rhq.plugins.mobicents.servlet.sip
Class ConvergedDeploymentUtility
java.lang.Object
org.rhq.plugins.mobicents.servlet.sip.ConvergedDeploymentUtility
public class ConvergedDeploymentUtility
- extends java.lang.Object
Accesses the MainDeployer mbean to find the deployment files behind services.
Original file copied over from jopr jboss as plugin trunk rev 26.
getVHosts method has been modified to fetch SipManager instead of Manager
- Author:
- Greg Hinkle, Jean Deruelle
|
Field Summary |
protected static java.lang.String |
MAIN_DEPLOYER
The object name of the JBoss main deployer MBean. |
|
Method Summary |
static java.util.Map<java.lang.String,java.util.List<org.rhq.plugins.jbossas.util.WarDeploymentInformation>> |
getConvergedWarDeploymentInformation(org.mc4j.ems.connection.EmsConnection connection,
java.util.List<java.lang.String> objectNames)
Retrieves all the discovery information for a War resources. |
protected static org.mc4j.ems.connection.bean.operation.EmsOperation |
getListDeployedOperation(org.mc4j.ems.connection.EmsConnection connection)
|
static java.util.List<org.mc4j.ems.connection.bean.EmsBean> |
getVHosts(java.lang.String contextRoot,
org.mc4j.ems.connection.EmsConnection emsConnection)
Retrieves the virtual host MBeans for the webapp with the specified context root. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAIN_DEPLOYER
protected static final java.lang.String MAIN_DEPLOYER
- The object name of the JBoss main deployer MBean.
- See Also:
- Constant Field Values
ConvergedDeploymentUtility
public ConvergedDeploymentUtility()
getConvergedWarDeploymentInformation
public static java.util.Map<java.lang.String,java.util.List<org.rhq.plugins.jbossas.util.WarDeploymentInformation>> getConvergedWarDeploymentInformation(org.mc4j.ems.connection.EmsConnection connection,
java.util.List<java.lang.String> objectNames)
- Retrieves all the discovery information for a War resources. We are retrieving all the information
so that there is only ever one call to the MBeanServer to get the deployed mbeans, therefore saving
some performance if it did this for each and every war resource one at a time.
- Parameters:
connection - EmsConnection to get the mbean informationobjectNames - Name of the main jboss.management mbeans for a collection of wars.
- Returns:
- map holds all the war deployment information for the objects passed in the objectNames collection
getVHosts
public static java.util.List<org.mc4j.ems.connection.bean.EmsBean> getVHosts(java.lang.String contextRoot,
org.mc4j.ems.connection.EmsConnection emsConnection)
- Retrieves the virtual host MBeans for the webapp with the specified context root.
VHost MBeans have the pattern "jboss.web:host=*,path=/,type=Manager".
- Parameters:
contextRoot - the context root
- Returns:
- the list of VHost MBeans for this webapp
getListDeployedOperation
protected static org.mc4j.ems.connection.bean.operation.EmsOperation getListDeployedOperation(org.mc4j.ems.connection.EmsConnection connection)
Copyright © 2010. All Rights Reserved.