org.sadun.util.polling
Interface PollManagerFactory

All Known Implementing Classes:
TestPollManagerFactory

public interface PollManagerFactory

This interface is used in conjunction with the JMX instrumentation ManagedDirectoryPoller of DirectoryPoller.

The JMX console user can specify the name of a class implementing this interface, which is in turn used to produce a set of PollManager objects which are added to ManagedDirectoryPoller.

The implementing class must have a public default constructor.

Author:
cris

Method Summary
 PollManager[] createPollManagers(java.lang.String mBeanName)
          Create the PollManager to add to the ManagedDirectoryPoller MBean.
 java.lang.String getDescription()
          Provides a description of the factory
 

Method Detail

createPollManagers

public PollManager[] createPollManagers(java.lang.String mBeanName)
Create the PollManager to add to the ManagedDirectoryPoller MBean.

The MBean JMX ObjectName is passed to the factory, so that it can discriminate among different Mbean instances.

* @param mBeanName the ObjectName of the MBean to which the PollManagers are going to be added. * @return PollManager[] the PollManager objects to add.


getDescription

public java.lang.String getDescription()
Provides a description of the factory. * @return String



Copyright © 1999, 2000 Cristiano Sadun. This software is released under GPL.