Skip to content
This repository was archived by the owner on Mar 19, 2019. It is now read-only.

Frontend Usage

jbytecoder edited this page Jun 17, 2015 · 2 revisions

System forntend is deployed on database machine 172.17.84.79. Frontend offers a REST interface to controll and monitor the app.

The frontend requieres the spark app running to be responsive. In the user folder there is LSF.jar which reresents the most recent build of sprak app. It should be run passing in the 3 reqiered parameters:

LSF.jar

  • delay - the delay in seconds specified for twitter streaming api - represents how frequently we query twitter
  • window - the tweets buffer size in seconds, it specifies how much data will be processed at a time
  • slide - time in seconds, declaring by how much to slide the window over data, should be equal delay

Example parameters LSF.jar 1 1000 1

Keyword API

The manipulation of keywords happens through the url: http://172.17.84.79:8080/lsf/keyword

  • GET - lists all keywords that would be sought for
  • PUT - requieres two parameters. category specifying the word category can be any string. name specifies the actual keyword to add to database
  • DELETE - removes a keyword, requieres a parameter name, specifing the keyword to remove - any data asociated with the keyword is deleted

Clone this wiki locally