Code example for CounterMonitorMBean

Methods: stop

0
        new TestCase("Stop monitor within threshold listener", 
                     When.IN_NOTIFY) {
            @Override 
            void doSensitiveThing(CounterMonitorMBean monitorProxy,
                                  ObjectName observedName) {
                monitorProxy.stop();
            } 
        }, 
    }; 
 
    public static interface TestMBean { 
        public int getThing(); 
        public void setThing(int thing);
        public int getGetCount(); 
    } 
 
    public static class Test implements TestMBean { 
        public Test(Runnable runWithinGetAttribute) {
            this.runWithinGetAttribute = runWithinGetAttribute;
        }