public class ServicesInfo extends Object
| Constructor and Description |
|---|
ServicesInfo(org.codehaus.jackson.JsonNode root)
The only constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ServiceInfo |
forId(String id)
Return service info for a service with given id
|
Collection<ServiceInfo> |
forType(String type)
Return service infos for a bundle with name
name |
int |
getTotalNumOfServices() |
public ServicesInfo(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 int getTotalNumOfServices()
public ServiceInfo forId(String id) throws ClientException
id - the id of the serviceClientException - if the info could not be retrievedpublic Collection<ServiceInfo> forType(String type) throws ClientException
nametype - the type of the serviceServiceInfos of all services with the given type. Might be empty, never nullClientException - if the info cannot be retrievedCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.