public class AppStateChecker extends Object
Also records the time that the last state change occurred
| Constructor and Description |
|---|
AppStateChecker(MBeanServerConnection mbsc,
String appName) |
| Modifier and Type | Method and Description |
|---|---|
String |
checkState()
Returns the state of the application
|
String |
getAppName() |
long |
getMsInState()
Returns the time that the application has been in the current state in
milliseconds
|
public AppStateChecker(MBeanServerConnection mbsc, String appName) throws org.jboss.arquillian.container.spi.client.container.DeploymentException
mbsc - the MBean server connectionappName - the name of the application to checkorg.jboss.arquillian.container.spi.client.container.DeploymentException - if the application name can't be converted to a valid MBean
ObjectNamepublic String checkState() throws org.jboss.arquillian.container.spi.client.container.DeploymentException
This will be the value returned from the State attribute, if the app is
installed, or "NOT_INSTALLED" otherwise.
Also updates the value returned by getMsInState()
org.jboss.arquillian.container.spi.client.container.DeploymentException - if there is a problem getting the state of the applicationpublic long getMsInState()
Note that this object won't notice that the app has changed state unless
checkState() is called, so the accuracy of this method is limited by
how often checkState() is called.
public String getAppName()
Copyright © 2018 the original author or authors.