|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.testing.internal.OSGiRuntimeImpl
org.jboss.osgi.testing.internal.RemoteRuntime
public class RemoteRuntime
A remote implementation of the OSGiRuntime
| Constructor Summary | |
|---|---|
RemoteRuntime(OSGiRuntimeHelper helper)
|
|
| Method Summary | |
|---|---|
void |
deploy(String location)
|
OSGiBundle |
getBundle(long bundleId)
Get the OSGiBundle for a given bundle id. |
OSGiBundle[] |
getBundles()
Get the array of installed OSGiBundles |
MBeanServerConnection |
getMBeanServer()
Get the MBeanServerConnection for this OSGiRuntime |
OSGiServiceReference |
getServiceReference(String clazz)
Returns a ServiceReference object for a service that implements and was registered under the specified class. |
OSGiServiceReference[] |
getServiceReferences(String clazz,
String filter)
Returns an array of ServiceReference objects. |
boolean |
isRemoteRuntime()
Return true if this OSGiRuntime connects to a remote Framework. |
void |
refreshPackages(OSGiBundle[] bundles)
Refresh the packages through PackageAdmin.refreshPackages(org.osgi.framework.Bundle[]) |
void |
shutdown()
Shutdown the OSGiRuntime. |
void |
undeploy(String location)
|
| Methods inherited from class org.jboss.osgi.testing.internal.OSGiRuntimeImpl |
|---|
addCapability, getBundle, getBundleStateMBean, getFrameworkMBean, getInitialContext, getMBeanProxy, getPackageStateMBean, getServerHost, getServiceReference, getServiceStateMBean, getTestHelper, installBundle, installBundle, installBundle, removeCapability |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteRuntime(OSGiRuntimeHelper helper)
| Method Detail |
|---|
public boolean isRemoteRuntime()
OSGiRuntimeOSGiRuntime connects to a remote Framework.
public void deploy(String location)
throws Exception
Exception
public void undeploy(String location)
throws Exception
Exceptionpublic OSGiBundle[] getBundles()
OSGiRuntimeOSGiBundles
public OSGiBundle getBundle(long bundleId)
OSGiRuntimeOSGiBundle for a given bundle id.
public OSGiServiceReference getServiceReference(String clazz)
OSGiRuntime
public OSGiServiceReference[] getServiceReferences(String clazz,
String filter)
OSGiRuntime
public MBeanServerConnection getMBeanServer()
OSGiRuntimeOSGiRuntime
public void refreshPackages(OSGiBundle[] bundles)
throws IOException
OSGiRuntimePackageAdmin.refreshPackages(org.osgi.framework.Bundle[])
IOExceptionpublic void shutdown()
OSGiRuntimeOSGiRuntime.
This will remove added Capability.
shutdown in interface OSGiRuntimeshutdown in class OSGiRuntimeImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||