Hi Andrew,

Thanks for the reply.

I opt for the option "remove the two arguments from the OrionBlobStore
constructor if we don't need them" however super constructor requires
the location and locations. I used Optional.absent() for now and I
don't get an exception related to location or locations.

Could you please check the code again? I get a long exception and I
can't go further. I want to get over with jcloud specific problems and
focus on the Orion specific details however my progress is too slowly
due to such exceptions :(


Regards,

Timur




On Mon, Aug 5, 2013 at 6:32 PM, Andrew Phillips <[email protected]> wrote:
>> I added OrionAsyncBlobStore.java because otherwise BaseBlobLiveTest
>> was complaining about it.
>
>
> Async blobstores are deprecated - please refactor the live test to use the
> *sync* API and remove the async blobstore.
>
> The Guice error is straightforward, thankfully:
>
> In the module, we're telling Guice to make an OrionBlobStore [1]. But if you
> look at the dependencies of OrionBlobStore, as demonstated by its
> constructor [2], it needs a
>
> Supplier<Location> defaultLocation, Supplier<Set<? extends Location>>
> locations
>
> jclouds provides these in a rather complicated way, based on region if no
> explicit provider is defined [3]. And we are not defining any regions in our
> ApiMetadata or ProviderMetadata (there's a typo in OrionProviderMetada, by
> the way ;-)).
>
> So we have a couple of choices:
>
> * define the region and other properties required for the implicit location
> supplier to work
> * define an *explicit* supplier for defaultLocation and locations
> * remove the two arguments from the OrionBlobStore constructor if we don't
> need them
>
> Regards
>
> ap
>
> [1]
> https://github.com/timur87/orion/blob/master/src/main/java/org/jclouds/orion/config/OrionBlobStoreModule.java#L19
> [2]
> https://github.com/timur87/orion/blob/master/src/main/java/org/jclouds/orion/blobstore/OrionBlobStore.java#L28
> [3]
> https://github.com/jclouds/jclouds/blob/master/core/src/main/java/org/jclouds/location/suppliers/implicit/OnlyLocationOrFirstRegionOptionallyMatchingRegionId.java

Reply via email to