kopia lustrzana https://github.com/gaul/s3proxy
Change filesystem to filesystem-nio2
rodzic
44d1f2b88e
commit
9f317c98ea
|
@ -41,14 +41,14 @@ Sonatype also provides pre-release snapshots:
|
|||
|
||||
# Usage
|
||||
|
||||
Instantiate S3Proxy by creating a backend `BlobStore` object and a frontend `S3Proxy` object. An example configuring the filesystem backend and listening on port 8080:
|
||||
Instantiate S3Proxy by creating a backend `BlobStore` object and a frontend `S3Proxy` object. An example configuring the filesystem-nio2 backend and listening on port 8080:
|
||||
|
||||
```java
|
||||
Properties properties = new Properties();
|
||||
properties.setProperty("jclouds.filesystem.basedir", "/tmp/blobstore");
|
||||
|
||||
BlobStoreContext context = ContextBuilder
|
||||
.newBuilder("filesystem")
|
||||
.newBuilder("filesystem-nio2")
|
||||
.credentials("identity", "credential")
|
||||
.overrides(properties)
|
||||
.build(BlobStoreContext.class);
|
||||
|
|
Ładowanie…
Reference in New Issue