Package io.fathom.auto.openstack.metadata

Examples of io.fathom.auto.openstack.metadata.Metadata


    @Override
    public boolean init() {
        try {
            log.info("Checking for openstack configuration");

            Metadata metadata = getConfig().getMetadata();
            assert metadata != null;

            this.client = getConfig().getOpenstackClient();

            return true;
View Full Code Here


    Metadata metadata;

    public Metadata getMetadata() throws RestClientException {
        if (metadata == null) {
            MetadataClient metadataClient = MetadataClient.INSTANCE;
            Metadata metadata = metadataClient.getMetadata();
            this.metadata = metadata;
        }
        return metadata;
    }
View Full Code Here

        if (client == null) {
            MetadataClient metadataClient = MetadataClient.INSTANCE;

            String serviceToken = metadataClient.getSecretString("token");
            serviceToken = serviceToken.trim();
            Metadata metadata = getMetadata();

            URI identityEndpoint = URI.create(metadata.getTopLevel("identity_uri"));

            HttpClient httpClient = metadataClient.getHttpClient();
            OpenstackIdentityClient identityClient = new OpenstackIdentityClient(httpClient, identityEndpoint, null);

            StaticTokenProvider tokenProvider = new StaticTokenProvider(identityClient, serviceToken);
View Full Code Here

TOP

Related Classes of io.fathom.auto.openstack.metadata.Metadata

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.