Skip to content

First Loop Test

peshkira edited this page Apr 2, 2012 · 19 revisions

First Loop

This pages summarizes how to install and try out a first version of the watch component (Scout).

What to expect

As soon as you deploy and run the application, the central monitor will look for an c3po (collection profile) adaptor plugin and will load it (provided it is in the correct place) dynamically. We have provided a simple initial Async Request that checks if the size of a collection is over 10 000 000 bytes.

As soon as the adaptor is found the monitor will configure it and run it continuously. The c3po dummy adaptor povides some dummy properties and will simulate the collection profile querying. As soon as it returns the request will be assessed and the collection profile monitor will trigger a notification if needed. Currently the notification is just a simple log message.

If you wait enough (a couple of runs of the adaptor) you should see it.

Setup

ALL

You have to checkout the project and more specifically the jenawatch_020212 branch. Navigate to the root directory of the project and run mvn clean install (this will fetch all dependencies of the project, run all the tests and build it) You have to install JBoss 7.0.2 or higher.

Unix

You have to create the following directories in /usr/local/watch

  • adaptors (this one won't be necessary later, but we need it now to simulate input passed by the frontend)
  • data (this one holds the jena tdb storage)
  • plugins (this one holds the adaptor plugins.

Deployment

If you are using eclipse, you can run the server from there. Provided you have setup the server in eclipse just right click on the scout-web project and select Run As > Run on Server

If you start the server in a different fashion make sure you copy the war into the deployments folder of JBoss.

Clone this wiki locally