Provides a Java client API for accessing and managing a remote OSGi framework through the REST API. Implementations of this interface will usually take the URL to the remote REST Management Service instance as an argument in their constructor. Further arguments might be needed, for example, if the cloud provider requires URL signing.
| Modifier and Type | Method and Description |
|---|---|
| public BundleDTO | |
| public BundleDTO | |
| public Map | Returns: Returns the map of headers entries.Addresses the bundle by its identifier. id)Get the header for a bundle given by its bundle Id. |
| public Map | Returns: Returns the map of headers entries.Addresses the bundle by its URI path. bundlePath)Get the header for a bundle given by its URI path. |
| public Collection | Returns: Returns a collection of the bundle URIs in the form of Strings. The URIs are relative to the REST API root URL and can be used to retrieve bundle representations.Get the bundles currently installed on the managed framework. |
| public Collection | Returns: Returns a collection of BundleDTO objects.Get the bundle representations for all bundles currently installed in the managed framework. |
| public BundleStartLevelDTO | Returns: Returns aBundleStartLevelDTO describing the current
start level of the bundle.Addresses the bundle by its identifier. id)Get the start level for a bundle given by its bundle Id. |
| public BundleStartLevelDTO | Returns: Returns aBundleStartLevelDTO describing the current
start level of the bundle.Addresses the bundle by its URI path. bundlePath)Get the start level for a bundle given by its URI path. |
| public int | Returns: Returns the current bundle state as defined in (@link org.osgi.framework.Bundle}.Addresses the bundle by its identifier. id)Get the state for a given bundle Id. |
| public int | Returns: Returns the current bundle state as defined in (@link org.osgi.framework.Bundle}.Addresses the bundle by its URI path. bundlePath)Get the state for a given bundle path. |
| public FrameworkStartLevelDTO | Returns: Returns the current framework start level in the form of aFrameworkStartLevelDTO.Retrieves the current framework start level. |
| public Collection | Returns: Returns a collection of URI paths to the installed services.Gets a collection of URI paths to all installed services. |
| public Collection | Returns: Returns a collection of URI paths to the installed services.Passes a filter to restrict the result set. filter)Gets a collection of URI paths to all installed services. |
| public ServiceReferenceDTO | Returns: The service representation asServiceReferenceDTO.Addresses the service by its identifier. id)Get the service representation for a service given by its service Id. |
| public ServiceReferenceDTO | Returns: The service representation asServiceReferenceDTO.Addresses the service by its URI path. servicePath)Get the service representation for a service given by its URI path. |
| public Collection | Returns: Returns the service representations in the form ofServiceReferenceDTO objects.Get the service representations for all services. |
| public Collection | Returns: Returns the service representations in the form ofServiceReferenceDTO objects.Passes a filter to restrict the result set. filter)Get the service representations for all services. |
| public BundleDTO | Returns: Returns theBundleDTO of the newly installed bundle.Passes the location string to retrieve the bundle content
from. location)Install a new bundle given by an externally reachable location string, typically describing a URL. |
| public BundleDTO | Returns: Returns theBundleDTO of the newly installed bundle.Passes the location string to be used to install the new
bundle. location, InputStream Passes the input stream to a bundle. in)Install a new bundle given by an |
| public void | setBundleStartLevel(long
Addresses the bundle by its identifier. id, int The target start level. startLevel)Set the start level for a bundle given by its bundle Id. |
| public void | setBundleStartLevel(String
Addresses the bundle by its URI path. bundlePath, int The target start level. startLevel)
|
| public void | setFrameworkStartLevel(FrameworkStartLevelDTO
set the framework start level to this target. startLevel)Sets the current framework start level. |
| public void | |
| public void | startBundle(String
Addresses the bundle by its URI path. bundlePath)Start a bundle given by its URI path. |
| public void | startBundle(long
Addresses the bundle by its identifier. id, int Passes additional options as defined in
options)org.Start a bundle given by its bundle Id. |
| public void | startBundle(String
Addresses the bundle by its URI path. bundlePath, int Passes additional options as defined in
options)org.Start a bundle given by its URI path. |
| public void | |
| public void | stopBundle(String
Addresses the bundle by its URI path. bundlePath)Stop a bundle given by its URI path. |
| public void | stopBundle(long
Addresses the bundle by its identifier. id, int Passes additional options as defined in
options)org.Stop a bundle given by its bundle Id. |
| public void | stopBundle(String
Addresses the bundle by its URI path. bundlePath, int Passes additional options as defined in
options)org.Stop a bundle given by its URI path. |
| public BundleDTO | Returns: Returns theBundleDTO of the uninstalled bundle.Addresses the bundle by its identifier. id)Uninstall a bundle given by its bundle Id. |
| public BundleDTO | Returns: Returns theBundleDTO of the uninstalled bundle.Addresses the bundle by its URI path. bundlePath)Uninstall a bundle given by its URI path. |
| public BundleDTO | Returns: Returns theBundleDTO of the updated bundle.Addresses the bundle by its identifier. id)Updates a bundle given by its bundle Id using the bundle-internal update location. |
| public BundleDTO | Returns: Returns theBundleDTO of the updated bundle.Addresses the bundle by its identifier. id, String The URL whose content is to be used to update the bundle. url)Updates a bundle given by its URI path using the content at the specified URL. |
| public BundleDTO | Returns: Returns theBundleDTO of the updated bundle.Addresses the bundle by its identifier. id, InputStream Passes an input stream to the new bundle content. in)Updates a bundle given by its bundle Id and passing the new bundle
content in the form of an |
| getBundle | back to summary |
|---|---|
| public BundleDTO getBundle(long id) throws Exception Retrieve the bundle representation for a given bundle Id. | |
| getBundle | back to summary |
|---|---|
| public BundleDTO getBundle(String bundlePath) throws Exception Retrieve the bundle representation for a given bundle path. | |
| getBundleHeaders | back to summary |
|---|---|
| public Map Get the header for a bundle given by its bundle Id. | |
| getBundleHeaders | back to summary |
|---|---|
| public Map Get the header for a bundle given by its URI path. | |
| getBundlePaths | back to summary |
|---|---|
| public Collection Get the bundles currently installed on the managed framework.
| |
| getBundles | back to summary |
|---|---|
| public Collection Get the bundle representations for all bundles currently installed in the managed framework.
| |
| getBundleStartLevel | back to summary |
|---|---|
| public BundleStartLevelDTO getBundleStartLevel(long id) throws Exception Get the start level for a bundle given by its bundle Id.
| |
| getBundleStartLevel | back to summary |
|---|---|
| public BundleStartLevelDTO getBundleStartLevel(String bundlePath) throws Exception Get the start level for a bundle given by its URI path.
| |
| getBundleState | back to summary |
|---|---|
| public int getBundleState(long id) throws Exception Get the state for a given bundle Id.
| |
| getBundleState | back to summary |
|---|---|
| public int getBundleState(String bundlePath) throws Exception Get the state for a given bundle path. | |
| getFrameworkStartLevel | back to summary |
|---|---|
| public FrameworkStartLevelDTO getFrameworkStartLevel() throws Exception Retrieves the current framework start level.
| |
| getServicePaths | back to summary |
|---|---|
| public Collection Gets a collection of URI paths to all installed services.
| |
| getServicePaths | back to summary |
|---|---|
| public Collection Gets a collection of URI paths to all installed services.
| |
| getServiceReference | back to summary |
|---|---|
| public ServiceReferenceDTO getServiceReference(long id) throws Exception Get the service representation for a service given by its service Id.
| |
| getServiceReference | back to summary |
|---|---|
| public ServiceReferenceDTO getServiceReference(String servicePath) throws Exception Get the service representation for a service given by its URI path.
| |
| getServiceReferences | back to summary |
|---|---|
| public Collection Get the service representations for all services.
| |
| getServiceReferences | back to summary |
|---|---|
| public Collection Get the service representations for all services.
| |
| installBundle | back to summary |
|---|---|
| public BundleDTO installBundle(String location) throws Exception Install a new bundle given by an externally reachable location string, typically describing a URL. | |
| installBundle | back to summary |
|---|---|
| public BundleDTO installBundle(String location, InputStream in) throws Exception Install a new bundle given by an
| |
| setBundleStartLevel | back to summary |
|---|---|
| public void setBundleStartLevel(long id, int startLevel) throws Exception Set the start level for a bundle given by its bundle Id.
| |
| setBundleStartLevel | back to summary |
|---|---|
| public void setBundleStartLevel(String bundlePath, int startLevel) throws Exception | |
| setFrameworkStartLevel | back to summary |
|---|---|
| public void setFrameworkStartLevel(FrameworkStartLevelDTO startLevel) throws Exception Sets the current framework start level.
| |
| startBundle | back to summary |
|---|---|
| public void startBundle(long id) throws Exception Start a bundle given by its bundle Id.
| |
| startBundle | back to summary |
|---|---|
| public void startBundle(String bundlePath) throws Exception Start a bundle given by its URI path. | |
| startBundle | back to summary |
|---|---|
| public void startBundle(long id, int options) throws Exception Start a bundle given by its bundle Id.
| |
| startBundle | back to summary |
|---|---|
| public void startBundle(String bundlePath, int options) throws Exception Start a bundle given by its URI path.
| |
| stopBundle | back to summary |
|---|---|
| public void stopBundle(long id) throws Exception Stop a bundle given by its bundle Id.
| |
| stopBundle | back to summary |
|---|---|
| public void stopBundle(String bundlePath) throws Exception Stop a bundle given by its URI path. | |
| stopBundle | back to summary |
|---|---|
| public void stopBundle(long id, int options) throws Exception Stop a bundle given by its bundle Id.
| |
| stopBundle | back to summary |
|---|---|
| public void stopBundle(String bundlePath, int options) throws Exception Stop a bundle given by its URI path.
| |
| uninstallBundle | back to summary |
|---|---|
| public BundleDTO uninstallBundle(long id) throws Exception Uninstall a bundle given by its bundle Id. | |
| uninstallBundle | back to summary |
|---|---|
| public BundleDTO uninstallBundle(String bundlePath) throws Exception Uninstall a bundle given by its URI path. | |
| updateBundle | back to summary |
|---|---|
| public BundleDTO updateBundle(long id) throws Exception Updates a bundle given by its bundle Id using the bundle-internal update location. | |
| updateBundle | back to summary |
|---|---|
| public BundleDTO updateBundle(long id, String url) throws Exception Updates a bundle given by its URI path using the content at the specified URL. | |
| updateBundle | back to summary |
|---|---|
| public BundleDTO updateBundle(long id, InputStream in) throws Exception Updates a bundle given by its bundle Id and passing the new bundle
content in the form of an
| |