Git Product home page Git Product logo

kinetic-java's Introduction

Suggested Development Environments

Project components

The kinetic-java project contains:

  • kinetic-client (kinetic java client API and implementation)

  • kinetic-simulator (kinetic simulator API and implementation)

  • kinetic-common (common library for kinetic-client and kinetic-simulator)

  • kinetic-test (test suite for the kinetic-java and kinetic drive implementation)

kinetic-java provides the Java API and Simulator for the Kinetic Open Storage Platform: [https://developers.seagate.com/display/KV/Kinetic+Open+Storage+Documentation+Wiki] (https://developers.seagate.com/display/KV/Kinetic+Open+Storage+Documentation+Wiki)

Client bootstrap class: [https://github.com/Seagate/kinetic-java/blob/master/kinetic-client/src/main/java/kinetic/client/KineticClientFactory.java] (https://github.com/Seagate/kinetic-java/blob/master/kinetic-client/src/main/java/kinetic/client/KineticClientFactory.java)

Simulator bootstrap class: https://github.com/Seagate/kinetic-java/blob/master/kinetic-simulator/src/main/java/kinetic/simulator/KineticSimulator.java

Getting Started With Kinetic drives

Getting Started With Development

  1. Clone the code: git clone https://github.com/Seagate/kinetic-java.git
  2. Run the integration tests against the Java Simulator: mvn test -DargLine="-Xmx500M"
  3. Run the integration tests but exclude specific files: `mvn test -Dmaven.test.excludes="/File.java,/OtherFile.java"
  4. Run the integration tests against the remote instance at a particular path: mvn test -DRUN_AGAINST_EXTERNAL=true -DKINETIC_PATH=/path/to/kinetic_home
  5. Run the integration tests against the remote instance at a particular host: mvn test -DRUN_AGAINST_EXTERNAL=true -DKINETIC_HOST=1.2.3.4
  6. Run the integration tests against the remote instance at a particular host using SSH to reset state before runs: mvn test -DRUN_AGAINST_EXTERNAL=true -DKINETIC_HOST=1.2.3.4 -DFAST_CLEAN_UP=true

Getting Started With Simulator

  1. Run "mvn clean package" in "Kinetic-Folder"

  2. Start with java CLI: java -jar in "Kinetic-Folder"/kinetic-simulator/target/kinetic-simulator-0.6.0.2-SNAPSHOT-jar-with-dependencies.jar

    or Start with script (If configuration tcp_port, tls_port and Kinetic_home, use script -help): Windows: cd "Kinetic-Folder"\bin startSimulator.bat

    Linux & Mac:
         cd "Kinetic-Folder"/bin
         sh startSimulator.sh
    

Admin command line Usage

1, make sure "Kinetic-Folder"/kinetic-simulator/target/kinetic-simulator-0.6.0.2-SNAPSHOT-jar-with-dependencies.jar "Kinetic-Folder"/kinetic-client/target/kinetic-client-0.6.0.2-SNAPSHOT-jar-with-dependencies.jar exist

2, start simulator Windows: cd "Kinetic-Folder"/bin kineticsimulator.bat

Linux: cd "Kinetic-Folder"/bin ./kineticsimulator.sh

3, run admin cli Windows: cd "Kinetic-Folder"/bin kineticadmin -help

Linux: cd "Kinetic-Folder"/bin ./kineticadmin.sh -help

Erasing all data in the Simulator

  • The simulator should be running, default port for TCP is 8123, SSL/TLS port is 8443
  • You'll need to have recently built .jar (i.e. run mvn package)
  1. ./bin/kineticadmin.sh -setup -erase true

Simulator and Java API usage examples

Examples are located at the following directory.

"Kinetic-Folder"/kinetic-test/src/test/java/com/seagate/kinetic/example

Kinetic Javadoc location

To browse Javadoc: [http://seagate.github.io/kinetic-java/] (http://seagate.github.io/kinetic-java/)

To generate Javadoc:

  1. Run "mvn clean package" in "Kinetic-Folder".

  2. Or run "mvn clean package" in "Kinetic-Folder"/kinetic-client, "Kinetic-Folder"/kinetic-simulator and "Kinetic-Folder"/kinetic-test.

  3. Javadoc will be generated for modules in directory of "Kinetic-Folder"/kinetic-client/doc, "Kinetic-Folder"/kinetic-simulator/doc and "Kinetic-Folder"/kinetic-test/doc.

Latest Kinetic runtime dependencies on maven central

Run smoke test against simulator or kinetic drive

Make sure one instance of simulator or kinetic drive is running.

  1. Run "mvn clean package" in "Kinetic-Folder" or "Kinetic-Folder"/kinetic-test, verify that "Kinetic-Folder"/kinetic-test/target/kinetic-test-0.6.0.2-SNAPSHOT-jar-with-dependencies.jar "Kinetic-Folder"/kinetic-test/target/smoke-tests.jar exist.

  2. cd "Kinetic-Folder"/bin

  3. sh runSmokeTests.sh [-host host_ip] [-port port] [-tlsport tlsport] [-home kinetic_home] or python runSmokeTests.py [-host host_ip] [-port port] [-tlsport tlsport] [-home kinetic_home]

kinetic-java's People

Contributors

chiaming2000 avatar chenchongli avatar

Watchers

James Cloos avatar  avatar  avatar

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.