Skip to content

dinal/JXIO

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JXIO

JXIO is Java API over AccelIO (C library).

AccelIO (http://www.accelio.org/) is a high-performance asynchronous reliable messaging and RPC library optimized for hardware acceleration. RDMA and TCP/IP transport are implemented, and other transports, such as shared-memory can take advantage of efficient and convenient API.

Build instructions:

1. Download: git clone https://github.com/accelio/JXIO.git
2. Move into folder: cd JXIO
3. Set JAVA_HOME: export JAVA_HOME=/usr/java/jdk1.7.0_25/
4. Build: ./build.sh (this pulls the relevant C level Accelio library and builds everything you need)

Examples:

In examples folder there is HelloWorld example. Both client and server are single threaded. Client sends a single message to Server and exits after receiving a response.
  1. Run Server side: ./examples/runHelloWorld.sh server 36.0.0.120 1234
    LD library is: /.autodirect/mtrswgwork/katyak/tmp/jxio/examples
    Compiling JAVA files....
    Running Server side test
    2014-02-16 11:17:35,013 main INFO HelloServer:44 waiting for JXIO incoming connections
    2014-02-16 11:17:46,576 main INFO HelloServer:90 [SUCCESS] Got event onSessionNew from 36.0.0.121, URI='rdma://36.0.0.120:1234/'
    2014-02-16 11:17:46,578 main INFO HelloServer:108 [SUCCESS] Got a message request! Prepare the champagne!
    2014-02-16 11:17:46,579 main INFO HelloServer:116 msg is: 'Hello Server'
    2014-02-16 11:17:46,583 main INFO HelloServer:135 [EVENT] Got event SESSION_CLOSED

  2. Run Client side: ./examples/runHelloWorld.sh client 36.0.0.120 1234
    LD library is: /.autodirect/mtrswgwork/katyak/tmp/jxio/examples
    Compiling JAVA files....
    Running Client side test...
    2014-02-16 11:17:46,552 main INFO HelloClient:68 Try to establish a new session to 'rdma://36.0.0.120:1234/'
    2014-02-16 11:17:46,580 main INFO HelloClient:102 [SUCCESS] Session established! Hurray !
    2014-02-16 11:17:46,581 main INFO HelloClient:106 [SUCCESS] Got a message! Bring the champagne!
    2014-02-16 11:17:46,582 main INFO HelloClient:114 msg is: 'Hello to you too, Client'
    2014-02-16 11:17:46,582 main INFO HelloClient:118 Closing the session...
    2014-02-16 11:17:46,585 main INFO HelloClient:126 [EVENT] Got event SESSION_CLOSED
    2014-02-16 11:17:46,586 main INFO HelloClient:57 Client is releasing JXIO resources and exiting

About

Java API over Accelio

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 60.6%
  • C++ 34.7%
  • C 2.2%
  • Shell 1.2%
  • Makefile 1.1%
  • M4 0.2%