You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Prerequisites

To install the monitoring application locally, the instructions Installing HPS Software should be followed, and specifically the whole trunk should be built by typing 'mvn -DskipTests' from the trunk directory in the local copy.  If the build is successful, the runnable jar for the application will be created in trunk/monitoring-app/target and can be executed using the standard java command.

Not Windows Compatible

The monitoring application is not compatible with Windows due to a dependence on system libraries that do not exist on that platform.

Running the Jar

 

Jar Version

The following examples assume that the '3.0.2-SNAPSHOT' version of the monitoring application is being used but this may change in the future.  You should use the jar that is actually created by your local build

Aside from a dependence on a platform-dependent library used through JNI (covered under the next section), the monitoring application jar is self-contained and can be run as follows.
java -jar ./target/hps-monitoring-app-3.0.2-SNAPSHOT-bin.jar

This will start the application with the default options.

There are a few options that can be shown by using the help command line switch.

java -jar ./target/hps-monitoring-app-3.0.2-SNAPSHOT-bin.jar -h

 

To load preexisting settings for the job and connection, a command like this should be executed.

java -jar ./target/hps-monitoring-app-3.0.2-SNAPSHOT-bin.jar -h

Setting Up the Environment

Assuming that you want to run a local ET ring and not connect to one that is already online, you should open three terminals.  These are for running the monitoring application itself, running an ET ring, and streaming a test file onto the ET ring.
In each of these terminals, the load library path needs to be set as follows.

 

. trunk/et/target/scripts/ldpath.sh

 

# setup library load path
export DYLD_LIBRARY_PATH=/work/eclipse_juno_workspace/hps-et-java/lib/Darwin-x86_32/ 
# in new terminal start ET server
cd /work/eclipse_juno_workspace/hps-et-java/
./target/scripts/et_server_test.sh   
# in another terminal stream file onto ET ring
cd /work/eclipse_juno_workspace/hps-java/
./target/scripts/et_evio_file_producer_test.sh /work/data/hps/hps_001351.evio.0 
# startup the monitoring app
./target/scripts/et_monitoring_app.sh
  • No labels