Giter Site home page Giter Site logo

txrabbitmq's Introduction

txrabbitmq - RabbitMQ's rabbitmqctl as a Twisted Service.

Overview

Implements RabbitMQ's rabbitmqctl command line tool as a Twisted Service, Expose this functionality over several protocols, most importantly: HTTP and AMQP.

Install

Get the latest code:

$ git://github.com/clemesha-ooi/txrabbitmq.git

The recommend way of using txrabbitmq is to create a virtualenv and the install all dependencies with pip into the virtualenv:

$ virtualenv --no-site-packages txrabbitmq_env
$ pip -E txrabbitmq_env install -U twotp orbited twisted simplejson stompservice

Usage

Start up the RESTful Command/Data http service:

From top-level package directory run:

$ twistd -n txrabbitmq

Get realtime data from RabbitMQ:

From the top-level package directory run:

$ twistd -n txrabbitmq

Open 2nd shell, navigate to the directory webui/push and run:

$ python data_producer.py #first shell
$ orbited --config=rabbitmq.cfg #second shell

Open ports 8000 and 9000, to see commands data and push, respectively

Testing

From the top-level package directory run:

$ trial tests/test_service.py

NOTES:

The RabbitMQ cookie must exist in ~/.erlang.cookie

For testing with a remote RabbitMQ broker, before using trial run:

$ export TXRABBITMQ_NODENAME=my_node@my_remote_host

Also, when testing with a remote RabbitMQ broker, make sure firewall rules allow communication of the Erlang Port Mapper Daemon (epmd).

License

Apache License: http://www.opensource.org/licenses/apache2.0.php

Contact

This code is part of the Ocean Observatories Initiative project, for more details please see here: http://ci.oceanobservatories.org/ Or email the author: Alex Clemesha <[email protected]>.

txrabbitmq's People

Contributors

clemesha-ooi avatar deldotdr avatar labisso avatar timf avatar

Stargazers

 avatar

Watchers

 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.