|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StatsCollector
This is the base StatsCollector
interface which other more specific
StatsCollector
interface extends from. Plugin class should implements
a subinterface of the StatsCollector
interface.
One known subinterface of the StatsCollector
interface is the
PeriodicStatsCollector
interface.
Method Summary | |
---|---|
java.lang.String |
getNodeName()
Get the name of the node that this instance was initialized with. |
void |
initialize(java.lang.String nodeName,
java.lang.String hostName,
java.util.Map properties)
Initialize an instance of the plugin for the specified node. |
void |
setProperties(java.util.Map newProperties)
Supply a new set of Properties to the StatsCollector instance. |
Method Detail |
---|
void initialize(java.lang.String nodeName, java.lang.String hostName, java.util.Map properties)
nodeName
- the name of the node from which this plugin instance will collect Statistics.hostName
- the domain-qualified hostname of the node. (It could be the IP address.
The value comes straight from the Nodes configuration panel. The framework does not do
any checking.)properties
- a Map consisting of all the custom properties configured for the Node.
Again, the framework does not do any checking of the validity of the properties and values
and the Map may be empty.java.lang.String getNodeName()
void setProperties(java.util.Map newProperties)
StatsCollector
instance.
StatsCollector instance that allow changes to the initial set of properties passed in via the initialize() method should handle this appropriately.
newProperties
- the new set of Properties to be used.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |