Coder Social home page Coder Social logo

apamabuilderexample's Introduction

Build Status

Using the Apama Builder image

DESCRIPTION

Using the Apama Builder image to build an EPL plugin written in Java, test the plugin and then

build a docker image that runs the application in the deployed container.

FILES

filename Description
README.txt This file
build.xml ANT build file for all plugins
ComplexPlugin.java Source for the complex example using the Java API
ComplexPlugin.mon MonitorScript code for the Java complex example
ComplexPlugin.xml XML deployment descriptor for the Complex plugin jar
ComplexPluginSample.txt Reference output for the complex plugin

BUILDING THE SAMPLE

clone this repository

git clone <URL copied from the "clone this repository" at the top of the page>

or

svn co <URL copied from the "clone this repository" at the top of the page>

build the image with a tag for the final image, which also runs an automated test

cd ApamaBuilderExample.git/trunk

docker build -t builder-test:latest .

run the image

docker run -it --rm -p 40000:15903 builder-test:latest

RUNNING THE SAMPLES

start another connection to the machine running the docker image, and confirm that the expected docker container is running (and discover its container id)

docker ps

Make sure you source the apama_env file in the <SAG installation>/Apama/bin directory

. <SAG installation>/Apama/bin/apama_env

navigate to the folder that contains this README.txt and the monitorScript code.

engine_inject -v ComplexPlugin.mon -p 40000

SAMPLE OUTPUT

this can be viewed on the screen or read using

docker logs <container id>

ComplexPlugin.mon should produce output similar to the file ComplexPluginSample.txt

TIDY UP

stop the correlator in the container, which will also stop the container

engine_management -p 40000 -s bye!

apamabuilderexample's People

Contributors

cariboujohn avatar imog63 avatar

Watchers

 avatar  avatar  avatar

Forkers

imog63

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.