public interface FrameworkManager
Modifier and Type | Method and Description |
---|---|
BundleDTO |
getBundle(long id)
Retrieve the bundle representation for a given bundle Id.
|
java.util.Map<java.lang.String,java.lang.String> |
getBundleHeaders(long id)
Get the header for a bundle given by its bundle Id.
|
java.util.Collection<BundleDTO> |
getBundles()
Get the bundle representations for all bundles currently installed in the
managed framework.
|
BundleStartLevelDTO |
getBundleStartLevel(long id)
Get the start level for a bundle given by its bundle Id.
|
int |
getBundleState(long id)
Get the state for a given bundle Id.
|
FrameworkStartLevelDTO |
getFrameworkStartLevel()
Retrieves the current framework start level.
|
ServiceReferenceDTO |
getServiceReference(long id)
Get the service representation for a service given by its service Id.
|
java.util.Collection<ServiceReferenceDTO> |
getServiceReferences()
Get the service representations for all services.
|
java.util.Collection<ServiceReferenceDTO> |
getServiceReferences(java.lang.String filter)
Get the service representations for all services.
|
BundleDTO |
installBundle(java.lang.String location)
Install a new bundle given by an externally reachable location string,
typically describing a URL.
|
void |
setBundleStartLevel(long id,
int startLevel)
Set the start level for a bundle given by its bundle Id.
|
void |
setFrameworkStartLevel(FrameworkStartLevelDTO startLevel)
Sets the current framework start level.
|
void |
startBundle(long id)
Start a bundle given by its bundle Id.
|
void |
startBundle(long id,
int options)
Start a bundle given by its bundle Id.
|
void |
stopBundle(long id)
Stop a bundle given by its bundle Id.
|
void |
stopBundle(long id,
int options)
Stop a bundle given by its bundle Id.
|
BundleDTO |
uninstallBundle(long id)
Uninstall a bundle given by its bundle Id.
|
BundleDTO |
updateBundle(long id)
Updates a bundle given by its bundle Id using the bundle-internal update
location.
|
BundleDTO |
updateBundle(long id,
java.lang.String url)
Updates a bundle given by its URI path using the content at the specified
URL.
|
BundleDTO getBundle(long id) throws java.lang.Exception
id
- Addresses the bundle by its identifier.BundleDTO
for the requested bundle.java.lang.Exception
- An exception representing a failure in the underlying
remote call.java.util.Map<java.lang.String,java.lang.String> getBundleHeaders(long id) throws java.lang.Exception
id
- Addresses the bundle by its identifier.java.lang.Exception
- An exception representing a failure in the underlying
remote call.java.util.Collection<BundleDTO> getBundles() throws java.lang.Exception
java.lang.Exception
- An exception representing a failure in the underlying
remote call.BundleStartLevelDTO getBundleStartLevel(long id) throws java.lang.Exception
id
- Addresses the bundle by its identifier.BundleStartLevelDTO
describing the current
start level of the bundle.java.lang.Exception
- An exception representing a failure in the underlying
remote call.int getBundleState(long id) throws java.lang.Exception
id
- Addresses the bundle by its identifier.Bundle
.java.lang.Exception
- An exception representing a failure in the underlying
remote call.FrameworkStartLevelDTO getFrameworkStartLevel() throws java.lang.Exception
FrameworkStartLevelDTO
.java.lang.Exception
- An exception representing a failure in the underlying
remote call.ServiceReferenceDTO getServiceReference(long id) throws java.lang.Exception
id
- Addresses the service by its identifier.ServiceReferenceDTO
.java.lang.Exception
- An exception representing a failure in the underlying
remote call.java.util.Collection<ServiceReferenceDTO> getServiceReferences() throws java.lang.Exception
ServiceReferenceDTO
objects.java.lang.Exception
- An exception representing a failure in the underlying
remote call.java.util.Collection<ServiceReferenceDTO> getServiceReferences(java.lang.String filter) throws java.lang.Exception
filter
- Passes a filter to restrict the result set.ServiceReferenceDTO
objects.java.lang.Exception
- An exception representing a failure in the underlying
remote call.BundleDTO installBundle(java.lang.String location) throws java.lang.Exception
location
- Passes the location string to retrieve the bundle content
from.BundleDTO
of the newly installed bundle.java.lang.Exception
- An exception representing a failure in the underlying
remote call.void setBundleStartLevel(long id, int startLevel) throws java.lang.Exception
id
- Addresses the bundle by its identifier.startLevel
- The target start level.java.lang.Exception
- An exception representing a failure in the underlying
remote call.void setFrameworkStartLevel(FrameworkStartLevelDTO startLevel) throws java.lang.Exception
startLevel
- set the framework start level to this target.java.lang.Exception
- An exception representing a failure in the underlying
remote call.void startBundle(long id) throws java.lang.Exception
id
- Addresses the bundle by its identifier.java.lang.Exception
- An exception representing a failure in the underlying
remote call.void startBundle(long id, int options) throws java.lang.Exception
id
- Addresses the bundle by its identifier.options
- Passes additional options as defined in
Bundle.start(int)
java.lang.Exception
- An exception representing a failure in the underlying
remote call.void stopBundle(long id) throws java.lang.Exception
id
- Addresses the bundle by its identifier.java.lang.Exception
- An exception representing a failure in the underlying
remote call.void stopBundle(long id, int options) throws java.lang.Exception
id
- Addresses the bundle by its identifier.options
- Passes additional options as defined in
Bundle.stop(int)
java.lang.Exception
- An exception representing a failure in the underlying
remote call.BundleDTO uninstallBundle(long id) throws java.lang.Exception
id
- Addresses the bundle by its identifier.BundleDTO
of the uninstalled bundle.java.lang.Exception
- An exception representing a failure in the underlying
remote call.BundleDTO updateBundle(long id) throws java.lang.Exception
id
- Addresses the bundle by its identifier.BundleDTO
of the updated bundle.java.lang.Exception
- An exception representing a failure in the underlying
remote call.BundleDTO updateBundle(long id, java.lang.String url) throws java.lang.Exception
id
- Addresses the bundle by its identifier.url
- The URL whose content is to be used to update the bundle.BundleDTO
of the updated bundle.java.lang.Exception
- An exception representing a failure in the underlying
remote call.Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0