IBM WebSphere Extended Deployment (XD)TM
Release 6.0

com.ibm.websphere.externalnode
PeriodicStatsCollector

All Implemented Interfaces
     StatsCollector


This is the PeriodicStatsCollector interface a plugin class for the ExternalNodeStatsService framework must implement.

This interface extends the base StatsCollector interface.
See Also:

     StatsCollector



Method Summary
public  voidsetStatsListener(com.ibm.websphere.externalnode.StatsListener, long)
           Sets a StatsListener to receive statistics update from the Plugin instance at specified interval in milliseconds.
public  voidremoveStatsListener()
           Removes the StatsListener that was set previously by setStatsListener()..

Inherited Methods

Methods inherited from com.ibm.websphere.externalnode.StatsCollector
getNodeName, initialize, setProperties

Method Detail

setStatsListener

public void setStatsListener(StatsListener listener,long interval)
Sets a StatsListener to receive statistics update from the Plugin instance at specified interval in milliseconds.

It is expected that the Plugin instance will call the statsUpdated() method of the StatsListener at the specified interval till removeStatsListener is called.
See Also:

     StatsListener
Parameters:
    listener - the StatsListener to report updated statistics on a periodic basis.
    interval - the interval in milliseconds


removeStatsListener

public void removeStatsListener()
Removes the StatsListener that was set previously by setStatsListener(). This is also a signal to stop the periodic reporting of statistics updates.


IBM WebSphere Extended Deployment (XD)TM
Release 6.0