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
-
Field Summary
Fields inherited from interface io.vertigo.core.node.component.Connector
DEFAULT_CONNECTOR_NAME -
Constructor Summary
ConstructorsConstructorDescriptionOpenStackConnector(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
Modifier and TypeMethodDescriptionprotected org.openstack4j.api.OSClient.OSClientV3authenticateClient(String authenticationUrl, String domain, String user, String secret, String projectDomain, String projectName, org.openstack4j.core.transport.Config config) protected org.openstack4j.core.transport.ConfigbuildConfig(Optional<String> trustoreFileOpt, Optional<String> trustorePswdOpt, Optional<Boolean> enableSSLOpt) org.openstack4j.api.OSClient.OSClientV3Get an OSClientV3 from the connection poolMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vertigo.core.node.component.Connector
getName
-
Constructor Details
-
OpenStackConnector
@Inject public 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.- 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 userprojectDomain- DOmain of the projectprojectName- Name of the project
-
-
Method Details
-
getClient
public org.openstack4j.api.OSClient.OSClientV3 getClient()Get an OSClientV3 from the connection pool- Specified by:
getClientin interfaceio.vertigo.core.node.component.Connector<org.openstack4j.api.OSClient.OSClientV3>- Returns:
- the OpenStack client
-
authenticateClient
-
buildConfig
-