public abstract class JMXDeployableContainer<T extends JMXContainerConfiguration> extends CommonDeployableContainer<T>
| Modifier and Type | Field and Description |
|---|---|
protected org.osgi.jmx.framework.BundleStateMBean |
bundleStateMBean |
protected Map<String,org.jboss.arquillian.container.osgi.jmx.JMXDeployableContainer.BundleHandle> |
deployedBundles |
protected org.osgi.jmx.framework.FrameworkMBean |
frameworkMBean |
protected org.jboss.arquillian.core.api.InstanceProducer<MBeanServerConnection> |
mbeanServerInstance |
protected org.osgi.jmx.framework.ServiceStateMBean |
serviceStateMBean |
| Constructor and Description |
|---|
JMXDeployableContainer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
awaitArquillianBundleActive(long timeout,
TimeUnit unit) |
protected void |
awaitBeginningStartLevel(Integer beginningStartLevel,
long timeout,
TimeUnit unit) |
protected void |
awaitBootstrapCompleteService(String service)
Await for bootstrap service
|
protected void |
awaitBootstrapCompleteService(String serviceName,
long timeout,
TimeUnit unit) |
org.jboss.arquillian.container.spi.client.protocol.metadata.ProtocolMetaData |
deploy(org.jboss.shrinkwrap.api.Archive<?> archive) |
void |
deploy(org.jboss.shrinkwrap.descriptor.api.Descriptor desc) |
protected org.jboss.arquillian.container.osgi.jmx.JMXDeployableContainer.BundleHandle |
getBundle(String symbolicName,
String version) |
protected JMXContainerConfiguration |
getContainerConfiguration() |
org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription |
getDefaultProtocol() |
protected <U> U |
getMBeanProxy(MBeanServerConnection mbeanServer,
ObjectName oname,
Class<U> type,
long timeout,
TimeUnit unit) |
protected MBeanServerConnection |
getMBeanServerConnection() |
protected MBeanServerConnection |
getMBeanServerConnection(long timeout,
TimeUnit unit) |
protected void |
installArquillianBundle() |
protected org.jboss.arquillian.container.osgi.jmx.JMXDeployableContainer.BundleHandle |
installBundle(String groupId,
String artifactId,
String version,
boolean startBundle) |
protected List<org.jboss.arquillian.container.osgi.jmx.JMXDeployableContainer.BundleHandle> |
listBundles(String symbolicName) |
void |
setup(T configuration) |
void |
startBundle(String symbolicName,
String version)
Start a bundle identified by
symbolicName and version |
void |
undeploy(org.jboss.shrinkwrap.api.Archive<?> archive) |
void |
undeploy(org.jboss.shrinkwrap.descriptor.api.Descriptor desc) |
awaitBootstrapCompleteServices, isAutostartBundleprotected final Map<String,org.jboss.arquillian.container.osgi.jmx.JMXDeployableContainer.BundleHandle> deployedBundles
@Inject @ContainerScoped protected org.jboss.arquillian.core.api.InstanceProducer<MBeanServerConnection> mbeanServerInstance
protected org.osgi.jmx.framework.FrameworkMBean frameworkMBean
protected org.osgi.jmx.framework.BundleStateMBean bundleStateMBean
protected org.osgi.jmx.framework.ServiceStateMBean serviceStateMBean
protected JMXContainerConfiguration getContainerConfiguration()
public org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription getDefaultProtocol()
public void setup(T configuration)
setup in interface org.jboss.arquillian.container.spi.client.container.DeployableContainer<T extends JMXContainerConfiguration>setup in class CommonDeployableContainer<T extends JMXContainerConfiguration>public org.jboss.arquillian.container.spi.client.protocol.metadata.ProtocolMetaData deploy(org.jboss.shrinkwrap.api.Archive<?> archive)
throws org.jboss.arquillian.container.spi.client.container.DeploymentException
org.jboss.arquillian.container.spi.client.container.DeploymentExceptionpublic void deploy(org.jboss.shrinkwrap.descriptor.api.Descriptor desc)
throws org.jboss.arquillian.container.spi.client.container.DeploymentException
org.jboss.arquillian.container.spi.client.container.DeploymentExceptionpublic void undeploy(org.jboss.shrinkwrap.api.Archive<?> archive)
throws org.jboss.arquillian.container.spi.client.container.DeploymentException
org.jboss.arquillian.container.spi.client.container.DeploymentExceptionpublic void undeploy(org.jboss.shrinkwrap.descriptor.api.Descriptor desc)
throws org.jboss.arquillian.container.spi.client.container.DeploymentException
org.jboss.arquillian.container.spi.client.container.DeploymentExceptionprotected org.jboss.arquillian.container.osgi.jmx.JMXDeployableContainer.BundleHandle installBundle(String groupId, String artifactId, String version, boolean startBundle) throws org.osgi.framework.BundleException, IOException
org.osgi.framework.BundleExceptionIOExceptionprotected void installArquillianBundle()
throws org.jboss.arquillian.container.spi.client.container.LifecycleException,
IOException
org.jboss.arquillian.container.spi.client.container.LifecycleExceptionIOExceptionprotected void awaitBeginningStartLevel(Integer beginningStartLevel, long timeout, TimeUnit unit) throws IOException, TimeoutException, InterruptedException
protected void awaitBootstrapCompleteService(String service)
CommonDeployableContainerawaitBootstrapCompleteService in class CommonDeployableContainer<T extends JMXContainerConfiguration>protected void awaitBootstrapCompleteService(String serviceName, long timeout, TimeUnit unit) throws TimeoutException, InterruptedException, IOException
protected void awaitArquillianBundleActive(long timeout,
TimeUnit unit)
throws IOException,
TimeoutException,
InterruptedException
protected MBeanServerConnection getMBeanServerConnection(long timeout, TimeUnit unit) throws TimeoutException
TimeoutExceptionprotected MBeanServerConnection getMBeanServerConnection() throws IOException
IOExceptionprotected <U> U getMBeanProxy(MBeanServerConnection mbeanServer, ObjectName oname, Class<U> type, long timeout, TimeUnit unit) throws TimeoutException
TimeoutExceptionprotected List<org.jboss.arquillian.container.osgi.jmx.JMXDeployableContainer.BundleHandle> listBundles(String symbolicName) throws IOException
IOExceptionpublic void startBundle(String symbolicName, String version) throws Exception
CommonDeployableContainersymbolicName and versionstartBundle in class CommonDeployableContainer<T extends JMXContainerConfiguration>symbolicName - Bundle symbolic nameversion - Bundle versionException - If an error occured and therefore bundle was not startedCopyright © 2014 JBoss by Red Hat. All Rights Reserved.