Code Monkey home page Code Monkey logo

aktos-dcs-java's Introduction

aktos-dcs-java

Java binding example for aktos-dcs

Running the code

Before running the code, make sure you have ZeroMQ installed and compiled for java. Follow instructions on : http://zeromq.org/bindings:java

Also you will need to download and compile jzmq from : http://github.com/zeromq/jzmq

On linux machines you will find zmq.jar in : /usr/local/share/java And other shared libraries in : /usr/local/lib

Modifying code for own needs

Just modify the TestClass to send required pin_name value pairs to Publisher.sendMessage(pin_name, value) function.

Publisher builds message in aktos-dcs message format and send it to subscribers. Sample TestClass is a CLI which is talking with aktos-website interface via aktos-dcs python process.

Notes

All classes of com.aktos_elektronik.json_ops package are taken from : http://www.json.org/java/

aktos-dcs and aktos-website can be found on : http://github.com/ceremcem

"Hello World!" samples are taken from : https://dzone.com/articles/working-zeromq-java-and-jzmq

##TO-DO

  • Auto-generate messages. Remove hard-coded ones. OK
    • Now payload of message comes from Broker, senderID is Java UUID and messageID is JavaUUID+""+Math.Random()

aktos-dcs-java's People

Stargazers

Cerem Cem ASLAN avatar

Watchers

James Cloos avatar Canburak Tümer avatar Cerem Cem ASLAN 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.