Class SaharaPluginServiceImpl

    • Constructor Detail

      • SaharaPluginServiceImpl

        public SaharaPluginServiceImpl()
    • Method Detail

      • list

        public List<? extends Plugin> list()
        List all plugins
        Specified by:
        list in interface SaharaPluginService
        Returns:
        list of plugins registered in Sahara or empty
      • get

        public Plugin get​(String name)
        Get a plugin by name
        Specified by:
        get in interface SaharaPluginService
        Parameters:
        name - the plugin name
        Returns:
        the plugin or null if not found
      • get

        public Plugin get​(String name,
                          String version)
        Get a specific plugin with all details by name and version
        Specified by:
        get in interface SaharaPluginService
        Parameters:
        name - the plugin name
        version - the plugin version
        Returns:
        the plugin or null if not found
      • convertConfig

        public ClusterTemplate convertConfig​(String name,
                                             String version,
                                             String templateName,
                                             Payload<?> payload)
        Convert plugin specific config file into cluster template
        Specified by:
        convertConfig in interface SaharaPluginService
        Parameters:
        name - the plugin name
        version - the plugin version
        templateName - the cluster template name
        payload - the config file for the specific plugin
        Returns:
        the cluster template