Class ComponentsInfo


  • public class ComponentsInfo
    extends Object
    Thin wrapper around the list of components
    • Constructor Detail

      • ComponentsInfo

        public ComponentsInfo​(com.fasterxml.jackson.databind.JsonNode rootNode)
                       throws ClientException
        The only constructor.
        Parameters:
        rootNode - the root JSON node of the components info.
        Throws:
        ClientException - if the info cannot be retrieved
    • Method Detail

      • getNumberOfInstalledComponents

        public int getNumberOfInstalledComponents()
                                           throws ClientException
        Returns:
        the number of installed components
        Throws:
        ClientException - if the info cannot be retrieved
      • forName

        public ComponentInfo forName​(String name)
                              throws ClientException
        Parameters:
        name - the name of the component
        Returns:
        the ComponentInfo for a component with the name name
        Throws:
        ClientException - if the info cannot be retrieved