Perforce JViews Diagrammer Sample: Tunnel Monitoring
Description
This demo illustrates how to use dashboards and symbols to monitor traffic and events in a tunnel.
How to Use the Sample
- Once the demo is started you see a screen that allows you to choose a tunnel by clicking the buttons located under the map. Clicking one of the buttons button opens a new window displaying other dashboards in which you can watch changing traffic statistics and events.
How to Run the Sample as an Application
This sample can
be run as an application.
The installation directory contains
an executable JAR file,
tunnel-demo.jar
,
that allows you to execute the sample with a double click from a
file browser. Note that if you are using Internet Explorer, you can
open the installation directory
and execute the JAR file from the browser. This
technique may not work in other Web browsers.
Alternatively, you
can run the sample application from the command line.
First check that the Ant utility is properly configured. If not, see the
instructions on how to configure Ant for Perforce JViews.
Then, go to the installation directory
of the sample and type:
ant run
Topics Covered
- Using Dashboard module.
Detailed Description
This demo simulates the traffic in a tunnel and several events which could affect either the traffic or the installations.
Installation Directory
The Tunnel Monitoring sample is installed here.
Classes Involved
-
ilog.views.dashboard.IlvDashboardDiagram
The main class of the Diagrammer component.
Source Files
-
Tunnel
The entry point of the demo. Creates a dashboard used as a starting screen and a menu to choose the tunnel to monitor.
-
MonitoringView
The monitoring view displays a frame containing two dashboards used to monitor traffic statistics, tunnel states and events.
-
Supervisor
The supervisor is associated to a dashboard. It will inspect it in order to retrieve the parameters to update. It will also periodically request values for the parameters to the simulator.
-
Simulator
The simulator computes values for parameters that could be requested by a supervisor.