public class DeploymentUtility extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
MAIN_DEPLOYER
The object name of the JBoss main deployer MBean.
|
| Constructor and Description |
|---|
DeploymentUtility() |
| Modifier and Type | Method and Description |
|---|---|
static File |
getDescriptorFile(org.mc4j.ems.connection.EmsConnection connection,
String objectName)
This will attempt to find the deployment descriptor file where the ObjectName MBean was deployed.
|
static Map<String,String> |
getEarDeploymentPath(org.mc4j.ems.connection.EmsConnection connection,
List<String> fileNames)
Return the path where the passed objectnames are deployed
|
static String |
getJndiNameBinding(org.mc4j.ems.connection.bean.EmsBean bean) |
protected static org.mc4j.ems.connection.bean.operation.EmsOperation |
getListDeployedOperation(org.mc4j.ems.connection.EmsConnection connection) |
static List<org.mc4j.ems.connection.bean.EmsBean> |
getVHostsFromClusterManager(String contextRoot,
org.mc4j.ems.connection.EmsConnection emsConnection)
Retrieves the virtual host MBeans for the webapp with the specified context root.
|
static List<org.mc4j.ems.connection.bean.EmsBean> |
getVHostsFromLocalManager(String contextRoot,
org.mc4j.ems.connection.EmsConnection emsConnection)
Retrieves the virtual host MBeans for the webapp with the specified context root.
|
static Map<String,List<WarDeploymentInformation>> |
getWarDeploymentInformation(org.mc4j.ems.connection.EmsConnection connection,
List<String> jbossManMBeanNames)
Retrieves all the discovery information for a War resources.
|
static boolean |
isDuplicateJndiName(org.mc4j.ems.connection.EmsConnection connection,
String mbeanType,
String jndiName) |
protected static final String MAIN_DEPLOYER
protected static org.mc4j.ems.connection.bean.operation.EmsOperation getListDeployedOperation(org.mc4j.ems.connection.EmsConnection connection)
public static File getDescriptorFile(org.mc4j.ems.connection.EmsConnection connection, String objectName)
connection - the connection to the JBoss instanceobjectName - The objectname to look fornull if it could not be foundpublic static Map<String,List<WarDeploymentInformation>> getWarDeploymentInformation(org.mc4j.ems.connection.EmsConnection connection, List<String> jbossManMBeanNames)
connection - EmsConnection to get the mbean informationjbossManMBeanNames - Name of the main jboss.management mbeans for a collection of wars.public static Map<String,String> getEarDeploymentPath(org.mc4j.ems.connection.EmsConnection connection, List<String> fileNames)
connection - fileNames - The objectNames of the EAR files we are interested inpublic static boolean isDuplicateJndiName(org.mc4j.ems.connection.EmsConnection connection,
String mbeanType,
String jndiName)
public static String getJndiNameBinding(org.mc4j.ems.connection.bean.EmsBean bean)
public static List<org.mc4j.ems.connection.bean.EmsBean> getVHostsFromLocalManager(String contextRoot, org.mc4j.ems.connection.EmsConnection emsConnection)
contextRoot - the context rootemsConnection - valid connection to the remote MBeanServerpublic static List<org.mc4j.ems.connection.bean.EmsBean> getVHostsFromClusterManager(String contextRoot, org.mc4j.ems.connection.EmsConnection emsConnection)
contextRoot - the context rootemsConnection - valid connection to the remote MBeanServerCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.