|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.plugins.jboss.JMXUtils
public class JMXUtils
This utility class contains static methods to help dealing with JBoss Managed Beans.
Method Summary | |
---|---|
static boolean |
checkDeploy(java.lang.String hostName,
int jndiPort,
hudson.model.BuildListener listener,
int timeout,
java.lang.String[] modules)
Checks if given modules have been correctly deployed. |
static boolean |
checkEARDeploymentState(hudson.model.BuildListener listener,
javax.management.MBeanServerConnection server,
java.lang.String earName)
Checks if single EAR is deployed with no problems. |
static boolean |
checkEJBDeploymentState(hudson.model.BuildListener listener,
javax.management.MBeanServerConnection server,
java.lang.String ejbName)
Checks if single EJB module is deployed with no problems. |
static boolean |
checkServerStatus(java.lang.String hostName,
int jndiPort,
hudson.model.BuildListener listener,
int timeout,
boolean ignoreErrors)
Waits for server status. |
static boolean |
checkWARDeploymentState(hudson.model.BuildListener listener,
javax.management.MBeanServerConnection server,
java.lang.String warName)
Checks if single WAR is deployed with no problems. |
static javax.naming.InitialContext |
getInitialContext(java.lang.String hostName,
int jndiPort)
Gets InitialContext from given server and port. |
static javax.management.MBeanServerConnection |
getMBeanServer(javax.naming.InitialContext ctx,
hudson.model.BuildListener listener,
int timeout)
Gets Managed Beans server for given naming context. |
static boolean |
isServerStarted(javax.management.MBeanServerConnection server)
Checks if Server is up using given MBean server connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static javax.naming.InitialContext getInitialContext(java.lang.String hostName, int jndiPort)
InitialContext
from given server and port.
hostName
- Name of the server connect tojndiPort
- Port number of naming service
public static javax.management.MBeanServerConnection getMBeanServer(javax.naming.InitialContext ctx, hudson.model.BuildListener listener, int timeout)
ctx
- InitialContext
used to lookup.listener
- used only for logging purposetimeout
- timeout of connection in seconds
public static boolean isServerStarted(javax.management.MBeanServerConnection server) throws java.lang.Exception
server
- given MBeanServerConnection
java.lang.Exception
- A few types of exception can be thrown.public static boolean checkServerStatus(java.lang.String hostName, int jndiPort, hudson.model.BuildListener listener, int timeout, boolean ignoreErrors)
hostName
- name of the server connect tojndiPort
- port number of naming servicelistener
- BuildListener
for logging purposetimeout
- how long will we wait for server startignoreErrors
- if true any connection problems will be ignored
public static boolean checkDeploy(java.lang.String hostName, int jndiPort, hudson.model.BuildListener listener, int timeout, java.lang.String[] modules)
hostName
- name of the server connect tojndiPort
- port number of naming servicelistener
- BuildListener
for logging purposetimeout
- how long will we wait for server start
public static boolean checkWARDeploymentState(hudson.model.BuildListener listener, javax.management.MBeanServerConnection server, java.lang.String warName)
ServiceMBean
.
listener
- for logging purposeserver
- given MBeanServerConnection
warName
- the name of the WAR to be checked
public static boolean checkEARDeploymentState(hudson.model.BuildListener listener, javax.management.MBeanServerConnection server, java.lang.String earName)
ServiceMBean
.
listener
- for logging purposeserver
- given MBeanServerConnection
earName
- the name of the EAR to be checked
public static boolean checkEJBDeploymentState(hudson.model.BuildListener listener, javax.management.MBeanServerConnection server, java.lang.String ejbName)
ServiceMBean
.
listener
- for logging purposeserver
- given MBeanServerConnection
ejbName
- the name of the EJB module to be checked
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |