Class 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

      Nested Classes 
      Modifier and Type Class Description
      protected static class  JmxDemo.MyNotification  
    • Constructor Summary

      Constructors 
      Constructor Description
      JmxDemo()  
    • 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)