GithubHelp home page GithubHelp logo

gluster / libgfapi-jni Goto Github PK

View Code? Open in Web Editor NEW
9.0 5.0 12.0 141 KB

Java Native Interface (JNI) bindings for libgfapi (the GlusterFS client API)

Home Page: https://github.com/gluster/libgfapi-jni

License: Other

Java 86.02% C 4.61% M4 6.55% Makefile 2.82%
libgfapi jni java glusterfs-java-filesystem storage filesystem low-level

libgfapi-jni's Introduction

libgfapi-jni

Java Native Interface (JNI) bindings for libgfapi, the GlusterFS client API.

Usage

This project provides a low level binding from Java to the C language GlusterFS API library.

It was developed as part of glusterfs-java-filesystem. Use that project to enable GlusterFS support in your Java applications.

Development Instructions

Prerequisites

  • glusterfs 3.4 or newer - installed from source or a gluster development package installed.
  • maven 3.0.3 or newer
  • auto tool chain
  • Ubuntu packages: build-essential libtool pkg-config automake
  • Ubuntu glusterfs PPAs: https://launchpad.net/~gluster (the glusterfs-common package is required to build this project)

Compiling without tests

If you have installed gluster to non-standard location then you export GLFS_HOME so we know where it's at:

export GLFS_HOME=/path/to/gluster/prefix

Building without tests is simple. Just run:

mvn -Dmaven.test.skip=true install

Compiling and Testing

The test suite is configured by default to run against the glusterfs server configured in the vagrant box provided by glusterfs-java-filesystem. Run vagrant up in that project's root directory to launch the server, then run the tests in this project.

Once that server is up, you can run the tests with:

mvn test

Project License

Until further notice (made here and in LICENSE.txt) this project is licensed under the terms of the 3-clause BSD license, as written in LICENSE.txt (and copied in several source files).

The licensing is likely to change in the near future as the project matures.

libgfapi-jni's People

Contributors

chirino avatar iherbig avatar louiszuckerman avatar maylem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

libgfapi-jni's Issues

Test fails : Fedora16 / java 1.6 / gluster 3.3.0

The build appears to have one failing test in my environment:

Here are the system details:

[root@fedoravm libgfapi-jni]# uname -a

Linux fedoravm 3.1.0-7.fc16.x86_64 #1 SMP Tue Nov 1 21:10:48 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

[root@fedoravm libgfapi-jni]# java -version

java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.6) (fedora-71.1.11.6.fc16-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

[root@fedoravm libgfapi-jni]# gluster --version

glusterfs 3git built on Mar 27 2013 20:39:59
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2011 Gluster Inc. http://www.gluster.com
GlusterFS comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GlusterFS under the terms of the GNU General Public License.

Here are the other details:

[root@fedoravm libgfapi-jni]# more /root/Development/libgfapi-jni/glfsjni-linux64/target/surefire-reports/TestSuite-output.txt
NEW: 139945135510768
SETLOG: 0
SERVER: 0
INIT: -1
[root@fedoravm libgfapi-jni]# more /root/Development/libgfapi-jni/glfsjni-linux64/target/surefire-reports/testng-failed.xml

suite verbose="0" name="Failed suite [Command line suite]"
test name="Command line test(failed)"
class name="org.fusesource.glfsjni.internal.GLFSTest"
methods


















org.fusesource.glfsjni.internal.GLFSTest
Command line test(failed)
Failed suite [Command line suite]

Benchmarking tests (examples/ add args to args[])

It would be great to add a java file buffer to the write test, + a configurable byte argument to the args[], so that we can benchmark the throughput of the library into libgfapi for a first pass of prototyping ...

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.