Package io.vertigo.connectors.openstack
Class OpenStackConnector
- java.lang.Object
-
- io.vertigo.connectors.openstack.OpenStackConnector
-
- All Implemented Interfaces:
io.vertigo.core.node.component.Connector<org.openstack4j.api.OSClient.OSClientV3>
,io.vertigo.core.node.component.CoreComponent
public class OpenStackConnector extends Object implements io.vertigo.core.node.component.Connector<org.openstack4j.api.OSClient.OSClientV3>
Component to handle the authentification and the connection to any OpenStack service.- Author:
- mlaroche, tingargiola
-
-
Constructor Summary
Constructors Constructor Description OpenStackConnector(String authenticationUrl, String userDomain, String userName, String userSecret, String projectDomain, String projectName, Optional<String> trustoreFileOpt, Optional<String> trustorePswdOpt, Optional<Boolean> enableSSLOpt, io.vertigo.core.resource.ResourceManager resourceManager)
Inject constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.openstack4j.api.OSClient.OSClientV3
authenticateClient(String authenticationUrl, String domain, String user, String secret, String projectDomain, String projectName, org.openstack4j.core.transport.Config config)
protected org.openstack4j.core.transport.Config
buildConfig(Optional<String> trustoreFileOpt, Optional<String> trustorePswdOpt, Optional<Boolean> enableSSLOpt)
org.openstack4j.api.OSClient.OSClientV3
getClient()
Get an OSClientV3 from the connection pool
-
-
-
Constructor Detail
-
OpenStackConnector
@Inject public OpenStackConnector(@Named("authenticationUrl") String authenticationUrl, @Named("userDomain") String userDomain, @Named("userName") String userName, @Named("userSecret") String userSecret, @Named("projectDomain") String projectDomain, @Named("projectName") String projectName, @Named("trustoreFile") Optional<String> trustoreFileOpt, @Named("trustorePswd") Optional<String> trustorePswdOpt, @Named("enableSSL") Optional<Boolean> enableSSLOpt, io.vertigo.core.resource.ResourceManager resourceManager)
Inject constructor.- Parameters:
authenticationUrl
- Url of the identity api (ex: https://keystone.openstack.klee.lan.net:5000/v3/)userDomain
- Domain of the user.userName
- Name of the useruserSecret
- Password of the userprojectName
- Name of the projectprojectDomain
- DOmain of the project
-
-
Method Detail
-
getClient
public org.openstack4j.api.OSClient.OSClientV3 getClient()
Get an OSClientV3 from the connection pool- Specified by:
getClient
in interfaceio.vertigo.core.node.component.Connector<org.openstack4j.api.OSClient.OSClientV3>
- Returns:
- the OpenStack client
-
authenticateClient
protected org.openstack4j.api.OSClient.OSClientV3 authenticateClient(String authenticationUrl, String domain, String user, String secret, String projectDomain, String projectName, org.openstack4j.core.transport.Config config)
-
-