项目作者: highpeakdata

项目描述 :
Edge-X Java connector library for EdgeFS
高级语言: Java
项目地址: git://github.com/highpeakdata/edgex-java-connector.git
创建时间: 2017-11-17T23:22:34Z
项目社区:https://github.com/highpeakdata/edgex-java-connector

开源协议:Apache License 2.0

下载


EdgeFS Edge-X Java connector

edgex-java-connector is Edge-X Java connector library

S3X interface for High-Performance load/unload/edit of billions of images
via object HTTP/S interface.


edgefs-s3x-kv-benefits.png

It is S3 compatible protocol, with extensions that allows batch operations
so that load of hundreds objects (like pictures, logs, packets, etc) can be
combined as one S3 emulated object.

The API documentation is available here https://nexenta.github.io/edgex-java-connector/

Use cases details

  • Advanced Versioned S3 Object Append and RW “Object as File” access
  • S3 Object as a Key-Value database
  • High-performance S3 Object Stream Session (RW)

API examples

For API definitions see https://nexenta.github.io/edgex-java-connector/com/nexenta/edgex/EdgexClient.html

For Object examples see https://github.com/Nexenta/edgex-java-connector/blob/master/edgex-connector/src/test/java/com/nexenta/edgex/ObjectTest.java

For Key-Value examples https://github.com/Nexenta/edgex-java-connector/blob/master/edgex-connector/src/test/java/com/nexenta/edgex/KeyValueTest.java

Quick start

On Ubuntu

  1. Install Java jdk

    1. apt-get install openjdk-8-jdk
  2. Install maven

    1. apt install maven
  3. Clone the edgex-java-connector repository

    1. git clone https://github.com/Nexenta/edgex-java-connector.git
    2. cd edgex-java-connector/edgex-connector
  1. Build edgex-java-connector

    1. mvn install -Dmaven.test.skip=true

    The build process creates output jars:

    1. target/edgex-connector-1.0-SNAPSHOT.jar,
    2. target/edgex-connector-1.0-SNAPSHOT-javadoc.jar

    and installes them to local maven repository.

  2. Test edgex-java-connector with EdgeFS cluster

    1. mvn test -Dedgex=http://<s3 gateway ip>:<port> -Dkey=<s3 key> -Dsecret=<s3 secret key>

    To test edgex-java-connector you need running EdgeFS cluster and configured s3 Edge-X gateway service