| java.lang.Object |
| ↳ |
org.ops4j.pax.exam.rbc.internal.RemoteBundleContextImpl |
Summary
| Public Methods |
|
long
|
installBundle(String bundleUrl)
Installs a bundle remotly.
|
|
long
|
installBundle(String bundleLocation, byte[] bundle)
Installs a bundle remotly given the bundle content.
|
|
Object
|
remoteCall(Class<?> serviceType, String methodName, Class[]<?> methodParams, String filter, RelativeTimeout timeout, Object... actualParams)
Makes a remote call on a service.
|
|
void
|
setBundleStartLevel(long bundleId, int startLevel)
Sets bundle start level.
|
|
void
|
startBundle(long bundleId)
Starts a bundle.
|
|
void
|
stopBundle(long bundleId)
Stops a bundle.
|
|
void
|
uninstallBundle(long id)
|
|
void
|
waitForState(long bundleId, int state, RelativeTimeout timeout)
Waits for a bundle to be in a certain state and returns.
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0)
|
|
final
void
|
wait(long arg0, int arg1)
|
|
From interface
org.ops4j.pax.exam.rbc.internal.RemoteBundleContext
|
abstract
long
|
installBundle(String bundleUrl)
Installs a bundle remotly.
|
|
abstract
long
|
installBundle(String bundleLocation, byte[] bundle)
Installs a bundle remotly given the bundle content.
|
|
abstract
Object
|
remoteCall(Class<?> serviceType, String methodName, Class[]<?> methodParamTypes, String filter, RelativeTimeout timeout, Object... actualParams)
Makes a remote call on a service.
|
|
abstract
void
|
setBundleStartLevel(long bundleId, int startLevel)
Sets bundle start level.
|
|
abstract
void
|
startBundle(long bundleId)
Starts a bundle.
|
|
abstract
void
|
stopBundle(long bundleId)
Stops a bundle.
|
|
abstract
void
|
uninstallBundle(long id)
|
|
abstract
void
|
waitForState(long bundleId, int state, RelativeTimeout timeout)
Waits for a bundle to be in a certain state and returns.
|
|
Public Constructors
public
RemoteBundleContextImpl
(BundleContext bundleContext)
Parameters
| bundleContext
| bundle context (cannot be null) |
Throws
| IllegalArgumentException
| - If bundle context is null
|
Public Methods
public
long
installBundle
(String bundleUrl)
Installs a bundle remotly.
Parameters
| bundleUrl
| url of the bundle to be installed. The url must be accessible from the remote OSGi container. |
Returns
- bundle id of the installed bundle
public
long
installBundle
(String bundleLocation, byte[] bundle)
Installs a bundle remotly given the bundle content.
Parameters
| bundleLocation
| bundle location |
| bundle
| bundle content as a byte array |
Returns
- bundle id of the installed bundle
public
Object
remoteCall
(Class<?> serviceType, String methodName, Class[]<?> methodParams, String filter, RelativeTimeout timeout, Object... actualParams)
Makes a remote call on a service.
Parameters
| serviceType
| service class of the remote service |
| methodName
| method name |
| methodParams
| method parameters types |
| timeout
| timeout for looking up the service |
| actualParams
| actual parameters (must match the given method params) |
public
void
setBundleStartLevel
(long bundleId, int startLevel)
Parameters
| bundleId
| id of the bundle to which the start level should be set |
| startLevel
| bundle start level |
Throws
| RemoteException
| |
| BundleException
| |
public
void
startBundle
(long bundleId)
Parameters
| bundleId
| id of the bundle to be started |
public
void
stopBundle
(long bundleId)
Parameters
| bundleId
| id of the bundle to be stopped |
public
void
uninstallBundle
(long id)
public
void
waitForState
(long bundleId, int state, RelativeTimeout timeout)
Waits for a bundle to be in a certain state and returns.
Parameters
| bundleId
| bundle id |
| state
| expected state |