org.apache.commons.modeler.demo
Class Demo

java.lang.Object
  extended by org.apache.commons.modeler.demo.Demo
All Implemented Interfaces:
java.util.EventListener, javax.management.NotificationListener

public class Demo
extends java.lang.Object
implements javax.management.NotificationListener

Demonstration program for the Modeller package. Instantiates a set of simple managed objects, and a set of corresponding MBeans, then manipulates the objects through the MBean interfaces.

Version:
$Revision: 480402 $ $Date: 2006-11-29 04:43:23 +0000 (Wed, 29 Nov 2006) $
Author:
Craig R. McClanahan

Constructor Summary
Demo()
           
 
Method Summary
 void handleNotification(javax.management.Notification notification, java.lang.Object handback)
          Handle the notification of a JMX event.
static void main(java.lang.String[] arg)
          The main program for this demonstration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Demo

public Demo()
Method Detail

handleNotification

public void handleNotification(javax.management.Notification notification,
                               java.lang.Object handback)
Handle the notification of a JMX event.

Specified by:
handleNotification in interface javax.management.NotificationListener
Parameters:
notification - The event that has occurred
handback - The handback object for this event

main

public static void main(java.lang.String[] arg)
The main program for this demonstration.

Parameters:
args - Command line arguments


Copyright 2002-2008 The Apache Software Foundation. All Rights Reserved.