To view the histograms in this demonstration, you will have to
run a sample DHP histogram server as well as the DOT-JAS server.
If instead you wish to start up a reference server on an hbook
file of your choosing, look at the instructions
here.
This demonstration assumes you're using release 8.6.0 or
later. If you're not sure type
and choose the appropriate architecture.
You may need to build the DhpDistCorbaAccumulator in
package DhpDistCorba yourself.
Start the DHP sample accumulator. This creates some demo
histograms, and fills them incrementally with random data at 200
msec intervals.
DhpDistCorbaAccumulator -l 200
Note the shared memory key that is displayed.
Start the DHP reader/server process (must run on the same
machine as the accumulator). This reads the histograms out via
shared memory, and serves them via Distributed Object Tree. The
server uses the name "test" to identify itself in the CORBA name
service.
DhpDistCorbaServer <key>
test
Substitute the shared memory key from the accumulator for
<key>.
Now you need to start the JasInterfaceServer.
This reads the histograms out of
the DHP server using CORBA, and makes them available to
JAS. This process may be run on a different host than the DHP server.
For this to work correctly your environment MUST be set up as desribed above!
JasInterfaceServer -n test -u 5
The second (optional) argument specifies that JAS will receive updated
histogram data at 5 second intervals. If you leave it off, JAS will update
at a reasonable default interval
You're now ready to start JAS and view the demo page layout
page at xml_table_demo.html.. Again, your
environment must be correctly set up as described above for this to work.
Start
JAS with this command line:
BabarJas --connect <hostname>/Histograms --startPage \
file:/afs/slac/g/babar/www/Computing/Online/EventProc/jas/examples/xml_table_demo.html
where <hostname> is the name of the host on
which you are running the JasInterfaceServer.