Class SaharaPluginServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.sahara.internal.BaseSaharaServices
-
- org.openstack4j.openstack.sahara.internal.SaharaPluginServiceImpl
-
- All Implemented Interfaces:
SaharaPluginService,RestService
public class SaharaPluginServiceImpl extends BaseSaharaServices implements SaharaPluginService
Sahara Data Processing Operations- Author:
- ekasit.kijsipongse@nectec.or.th
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description SaharaPluginServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterTemplateconvertConfig(String name, String version, String templateName, Payload<?> payload)Convert plugin specific config file into cluster templatePluginget(String name)Get a plugin by namePluginget(String name, String version)Get a specific plugin with all details by name and versionList<? extends Plugin>list()List all plugins-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
list
public List<? extends Plugin> list()
List all plugins- Specified by:
listin interfaceSaharaPluginService- Returns:
- list of plugins registered in Sahara or empty
-
get
public Plugin get(String name)
Get a plugin by name- Specified by:
getin interfaceSaharaPluginService- 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:
getin interfaceSaharaPluginService- Parameters:
name- the plugin nameversion- 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:
convertConfigin interfaceSaharaPluginService- Parameters:
name- the plugin nameversion- the plugin versiontemplateName- the cluster template namepayload- the config file for the specific plugin- Returns:
- the cluster template
-
-