JPPF
 Home   About   Download   Documentation   Forums 

Node Connection Events sample

What does the sample do?

This samples illustrates the implementation of a node connection listener for a JPPF server.

How do I run it?

Before running this sample, 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/NodeConnectionEvents
  2. build the sample: type "ant jar"; this will create a file named NodeConnectionEvents.jar
  3. copy NodeConnectionEvents.jar in the "lib" folder of the JPPF driver installation, to add it to the driver's classpath.
  4. start the server, in its console you should see the following message:
    [java] *** MyNodeConnectionListener instance successfully loaded ***
  5. start the node
  6. in the driver console, you should see the following message:
    [java] *** Node host:port is now connected ***
  7. get back to the node's shell console and kill the node (for instance with CTRL+C)
  8. in the driver console, you should now see the following message:
    [java] *** Node host:port is disconnected ***

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-2014 JPPF.org
Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads