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 |
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) |
protected void |
awaitBundleActive(long bundleId,
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) |
long |
installBundle(org.jboss.shrinkwrap.api.Archive<?> archive,
boolean start)
Install a bundle from an Archive
|
void |
refresh()
Perform a "refresh packages" operation
|
void |
setup(T configuration) |
void |
startBundle(long bundleId) |
void |
startBundle(String symbolicName,
String version)
Start a bundle identified by
symbolicName and version |
void |
stop() |
void |
undeploy(org.jboss.shrinkwrap.api.Archive<?> archive) |
void |
undeploy(org.jboss.shrinkwrap.descriptor.api.Descriptor desc) |
void |
uninstallBundle(long bundleId)
Uninstall a bundle identified by
bundleId |
awaitBootstrapCompleteServices, installArquillianBundle, isAutostartBundle, uninstallArquillianBundleprotected 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 refresh()
throws Exception
CommonDeployableContainerrefresh in class CommonDeployableContainer<T extends JMXContainerConfiguration>Exception - If an error occuredpublic 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.DeploymentExceptionpublic void uninstallBundle(long bundleId)
throws Exception
CommonDeployableContainerbundleIduninstallBundle in class CommonDeployableContainer<T extends JMXContainerConfiguration>bundleId - Bundle idException - If an error occured and therefore bundle was not uninstalledpublic void stop()
throws org.jboss.arquillian.container.spi.client.container.LifecycleException
org.jboss.arquillian.container.spi.client.container.LifecycleExceptionpublic long installBundle(org.jboss.shrinkwrap.api.Archive<?> archive,
boolean start)
throws Exception
CommonDeployableContainerinstallBundle in class CommonDeployableContainer<T extends JMXContainerConfiguration>archive - ArchiveException - If an error occured and therefore bundle was not installedprotected 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 awaitBundleActive(long bundleId,
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
TimeoutExceptionpublic 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 © 2018 JBoss by Red Hat. All rights reserved.