Git Product home page Git Product logo

example-batchoutputfiledownload-java's Introduction

Example-BatchOutputFileDownload-Java

Java example for automatic detection and download of BatchAutomation job output files.

Prerequisites

An SDC account is required. A general knowledge of how to set up and run BatchAutomation jobs is required. Details for both of these can be found here https://github.com/Syniverse/QuickStart-BatchAutomation-Java

Setup

To run this sample as-is, the following are required

  • JDK 8
  • Eclipse or other IDE
  • Maven
  • Publicly accessible web container (must host a service to receive job completion notifications)

Importing this project into Eclipse as "Existing Maven Projects" should generate needed project metadata and resolve dependencies (assuming automatic build preferences were not disabled in the workspace).

This sample covers all operations required to capture job completion notifications and download the related output.

  • Start a web service to receive ESS event notifications
  • Harvest data from the notification to retrieve output files from MSS
  • Download and save files locally

Some configurations will need to be set to specify some user specific data, and define which sample job type is to be run. All of this is done in src/main/resources/application.properties

user.sdc.bearer-token - This value is set as the Authentication header in the sample http requests. A valid SDC bearer token must be set here.

Run It

com.syniverse.eis.aba.sample.controllers.EssEventController defines the service endpoint. Once started, invocation is performed via POST /aba-sample-outputdownload/ess/event-delivery

The URL to this service will need to be set as the "address" value of the Delivery Configuration set up in the prerequisite steps. Once that's done, ESS will dispatch notifications to this sample service. If access to a publicly visible web server is not possible, something like https://putsreq.com can be used as a workaround. The Delivery Configuration address can be set to a putsreq site, then notifications can be manually copied from the putsreq history and used to manually invoke a local instance of this sample service.

When a notification event of type "aba_job_completed" is received by this service, the output files associated with the completed job are downloaded and placed under /aba-sample-output

example-batchoutputfiledownload-java's People

Contributors

mikebradford avatar royspinnersyniverse 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.