Giter Site home page Giter Site logo

agfsapi4j's Introduction

AGFsApi4J - an alternative Gluster FS API for Java Build Status Test Coverage Quality Gate Maven Central License

Alternative Gluster FS API for Java

An alternative GlusterFS API for Java

Maven Dependency

<dependency>
  <groupId>com.github.agfsapi4j</groupId>
  <artifactId>agfsapi4j</artifactId>
  <version>1.0.1</version>
</dependency>

Comparison with original GlusterFS Java bindings

The original plan was the creation of a pure Java GlusterFS client lib. But this idea was discarded because of GlusterFS use of translators written in C that must be rewritten in Java too.

So AGFsApi4J is - beside of the original java binding -
another GlusterFS java binding that depends on the native libgfapi, but uses jna for native access instead of jni.

Currently the features implemented are far from complete, but messages in case of errors are far, far better.

Feature AGFsApi4J glusterfs-java-filesystem
Depends on libgfapi yes yes
Native access jna jni
Java Filesystem integration no yes
Log Messages from libgfapi yes no

Feature Status

Feature Status
Connect yes
Create file yes
Read file yes
Write file yes
Delete file yes
Rename file yes
Create directory yes
Rename directory yes
Remove directory yes
List directory files basic
Get file stats basic
Get directory stats basic
Get cluster status no
Java filesytem integration no
... no

Example

GlusterFsApi gfApi4J = GlusterFsApi.newInstance();
try (GlusterFsSession session = gfApi4J.connect("host", GlusterFsApi.DEFAULT_PORT, "vol0");)
{
    GlusterFsFile file = session.openFile(testFilePath, GlusterFsApi.O_RDONLY);
    byte[] buf = new byte[4096];
    int count = file.read(buf);
    file.close();
}

Contributing

This is an open source project, and contributions are welcome! Feel free to raise an issue or submit a pull request.

License

Apache License, Version 2.0

agfsapi4j's People

Contributors

cbuschka avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

shalom1204

agfsapi4j's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.