JPPF
 Home   About   Download   Documentation   Forums 

Node Tray sample

What does the sample do?

This sample provides a node health monitor that sits in the system tray.
It displays the following information:
  • A "computer" icon in the system tray, which turns green when the node is connected to a server, and red when it is disconnected
  • System tray notifications when the node status changes
  • Information about the node's performance and connection to a JPPF server, when the mouse is hovering over the icon

Here are some screenshots:

How do I run it?

Before running this sample application, you need to install a JPPF server and at least one node.
For information on how to set up a node and server, please refer to the JPPF documentation.
Once you have installed a server and node, perform the following steps:
  1. open a command prompt in JPPF-x.y-samples-pack/NodeTray
  2. important: to build this sample you need a JDK 1.6 or later, as the system tray APIs are not available in prior Java versions
  3. build the sample: type "ant jar" or simply "ant"; this will create a file named NodeTray.jar
  4. copy NodeTray.jar in the "lib" folder of the JPPF node installation, to add it to the node's classpath. This is enough to deploy the add-on.
  5. start the server and node
  6. you should see the new system tray icon

What features of JPPF are demonstrated?

I have additional questions and comments, where can I go?

If you need more insight into the code of this demo, you can consult the Java source files located in the CustomMBeans/src folder.

In addition, There are 2 privileged places you can go to:

Support This Project Copyright © 2005-2011 JPPF.org Powered by Parallel Matters  Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads