Package org.jclouds.openstack.keystone.v1_1.functions

Examples of org.jclouds.openstack.keystone.v1_1.functions.RegionFirstPartOfDNSNameOrProvider


   }

   @Override
   protected void installLocations() {
      super.installLocations();
      install(new AuthenticationServiceModule());
   }
View Full Code Here


   }

   @Override
   protected void installLocations() {
      super.installLocations();
      install(new AuthenticationServiceModule());
   }
View Full Code Here

   }

   @Override
   protected void installLocations() {
      super.installLocations();
      install(new AuthenticationServiceModule());
   }
View Full Code Here

   }

   @Override
   protected void installLocations() {
      super.installLocations();
      install(new AuthenticationServiceModule());
   }
View Full Code Here

      protected static class TestCloudServersRestClientModule extends CloudServersRestClientModule {

      @Provides
      @Singleton
      GetAuth provideGetAuth() {
         return new GetAuth(null) {
            @Override
            public Auth load(Credentials in) {
               return new ParseAuthTest().expected();
            }
         };
View Full Code Here

      protected static class TestCloudServersRestClientModule extends CloudServersRestClientModule {

      @Provides
      @Singleton
      GetAuth provideGetAuth() {
         return new GetAuth(null) {
            @Override
            public Auth load(Credentials in) {
               return new ParseAuthTest().expected();
            }
         };
View Full Code Here

      protected static class TestCloudServersRestClientModule extends CloudServersRestClientModule {

      @Provides
      @Singleton
      GetAuth provideGetAuth() {
         return new GetAuth(null) {
            @Override
            public Auth load(Credentials in) {
               return new ParseAuthTest().expected();
            }
         };
View Full Code Here

      protected static class TestCloudServersHttpApiModule extends CloudServersHttpApiModule {

      @Provides
      @Singleton
      GetAuth provideGetAuth() {
         return new GetAuth(null) {
            @Override
            public Auth load(Credentials in) {
               return new ParseAuthTest().expected();
            }
         };
View Full Code Here

   /**
    * returns {@link Endpoint#isV1Default()} or first endpoint for service
    */
   @Override
   public String get() {
      Auth authResponse = auth.get();
      Iterable<Endpoint> endpointsForService = authResponse.getServiceCatalog().get(apiType);
      Optional<Endpoint> defaultEndpoint = tryFind(endpointsForService, new Predicate<Endpoint>() {
         @Override
         public boolean apply(Endpoint in) {
            return in.isV1Default();
         }
View Full Code Here

      this.apiType = apiType;
   }

   @Override
   public Map<String, Supplier<URI>> get() {
      Auth authResponse = auth.get();
      Collection<Endpoint> endpointsForService = authResponse.getServiceCatalog().get(apiType);
      Map<String, Endpoint> regionIdToEndpoint = Maps.uniqueIndex(endpointsForService, endpointToRegion);
      return Maps.transformValues(regionIdToEndpoint, endpointToSupplierURI);
   }
View Full Code Here

TOP

Related Classes of org.jclouds.openstack.keystone.v1_1.functions.RegionFirstPartOfDNSNameOrProvider

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.