org.norther.tammi.manual.sample
Class ReferableCounter

java.lang.Object
  extended by org.norther.tammi.manual.sample.FibonacciCounter
      extended by org.norther.tammi.manual.sample.Counter
          extended by 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.


Field Summary
 
Fields inherited from interface org.norther.tammi.core.base.ReferableMBean
DEFAULT_ID, ID, MBEAN, MBEAN_DESCRIPTION, TYPE
 
Constructor Summary
ReferableCounter()
          Default constructor.
 
Method Summary
 void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
           
 MBeanReference getMBean()
          Gets a reference to the MBean.
 MBeanNotificationInfo[] getNotificationInfo()
           
 void postDeregister()
           
 void postRegister(Boolean done)
           
 void preDeregister()
           
 ObjectName preRegister(MBeanServer server, ObjectName name)
           
 void removeNotificationListener(NotificationListener listener)
           
 
Methods inherited from class org.norther.tammi.manual.sample.FibonacciCounter
count, getCounter, setCounter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.norther.tammi.manual.sample.CounterMBean
count, getCounter, setCounter
 

Constructor Detail

ReferableCounter

public ReferableCounter()
Default constructor.

Method Detail

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.