public class BundlesInfo extends Object
| Constructor and Description |
|---|
BundlesInfo(org.codehaus.jackson.JsonNode root)
The only constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BundleInfo |
forId(String id)
Return bundle info for a bundle with persistence identifier
pid |
BundleInfo |
forName(String name)
Return bundle info for a bundle with name
name |
BundleInfo |
forSymbolicName(String name)
Return bundle info for a bundle with symbolic name
name |
int |
getNumBundlesByStatus(Bundle.Status status)
Returns number of bundles that are in specified state
|
String |
getStatusMessage() |
int |
getTotalNumOfBundles() |
public BundlesInfo(org.codehaus.jackson.JsonNode root)
throws ClientException
root - the root JSON node of the bundles info.ClientException - if the json does not contain the proper infopublic String getStatusMessage() throws ClientException
ClientException - if the request cannot be completedpublic int getTotalNumOfBundles()
public int getNumBundlesByStatus(Bundle.Status status)
status - the requested statuspublic BundleInfo forId(String id) throws ClientException
pidid - the id of the bundleClientException - if the info could not be retrievedpublic BundleInfo forName(String name) throws ClientException
namename - the name of the requested bundlenull if the bundle is not foundClientException - if the info cannot be retrievedpublic BundleInfo forSymbolicName(String name) throws ClientException
namename - the symbolic name of the requested bundlenull if the bundle is not foundClientException - if the info cannot be retrievedCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.