org.jgroups.demos
Class JmxDemo

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.jgroups.demos.JmxDemo
All Implemented Interfaces:
javax.management.NotificationBroadcaster, javax.management.NotificationEmitter

public class JmxDemo
extends javax.management.NotificationBroadcasterSupport

Shows how annotations can be used to expose attributes and operations

Author:
Bela Ban

Nested Class Summary
protected static class JmxDemo.MyNotification
           
 
Constructor Summary
JmxDemo()
           
 
Method Summary
 int add(int a, int b)
           
 void foo()
           
 void foobar()
           
 int getAccountNumber()
           
 int getMaxAge()
           
static int getMyFoo()
           
 java.lang.String getNumberAsString()
           
static boolean isFlag()
           
static void main(java.lang.String[] args)
           
 java.lang.String sayName()
           
 void setAccountNumber(int num)
           
 void setMaxAge(int age)
           
 void setMyNumber(long new_number)
           
 void setNumber(int num)
           
 void setOtherNumber(int num)
           
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxDemo

public JmxDemo()
Method Detail

foo

public void foo()

setNumber

public void setNumber(int num)

getNumberAsString

public java.lang.String getNumberAsString()

getMyFoo

public static int getMyFoo()

setOtherNumber

public void setOtherNumber(int num)

foobar

public void foobar()

isFlag

public static boolean isFlag()

setMyNumber

public void setMyNumber(long new_number)

setAccountNumber

public void setAccountNumber(int num)

getAccountNumber

public int getAccountNumber()

setMaxAge

public void setMaxAge(int age)

getMaxAge

public int getMaxAge()

sayName

public java.lang.String sayName()

add

public int add(int a,
               int b)

main

public static void main(java.lang.String[] args)


Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.