org.norther.tammi.manual.sample
Class ReferableCounter
java.lang.Object
org.norther.tammi.manual.sample.FibonacciCounter
org.norther.tammi.manual.sample.Counter
org.norther.tammi.manual.sample.ReferableCounter
- All Implemented Interfaces:
- MBeanRegistration, NotificationBroadcaster, ReferableMBean, CounterMBean, ReferableCounterMBean
public class ReferableCounter
- extends Counter
- implements ReferableCounterMBean, MBeanRegistration, NotificationBroadcaster
ReferableCounter extends Counter to be referable. Note that this code is only
instructional.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReferableCounter
public ReferableCounter()
- Default constructor.
preRegister
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws Exception
- Specified by:
preRegister in interface MBeanRegistration
- Throws:
Exception
postRegister
public void postRegister(Boolean done)
- Specified by:
postRegister in interface MBeanRegistration
preDeregister
public void preDeregister()
throws Exception
- Specified by:
preDeregister in interface MBeanRegistration
- Throws:
Exception
postDeregister
public void postDeregister()
- Specified by:
postDeregister in interface MBeanRegistration
getMBean
public MBeanReference getMBean()
- Description copied from interface:
ReferableMBean
- Gets a reference to the MBean.
- Specified by:
getMBean in interface ReferableMBean
- Returns:
- a reference to the MBean.
addNotificationListener
public void addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
- Specified by:
addNotificationListener in interface NotificationBroadcaster
removeNotificationListener
public void removeNotificationListener(NotificationListener listener)
throws ListenerNotFoundException
- Specified by:
removeNotificationListener in interface NotificationBroadcaster
- Throws:
ListenerNotFoundException
getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo()
- Specified by:
getNotificationInfo in interface NotificationBroadcaster
Copyright © 2004 The Norther Organization. All rights reserved.