MediaWiki fundraising/REL1_35
IBufferingStatsdDataFactory Interface Reference

MediaWiki adaptation of StatsdDataFactory that provides buffering functionality. More...

Inheritance diagram for IBufferingStatsdDataFactory:
Collaboration diagram for IBufferingStatsdDataFactory:

Public Member Functions

 clearData ()
 Clear all buffered data from the factory.
 
 getData ()
 Return the buffered data from the factory.
 
 getDataCount ()
 Return the number of buffered statsd data entries.
 
 hasData ()
 Check whether this data factory has any buffered data.
 
 setEnabled ( $enabled)
 Set collection enable status.
 

Detailed Description

MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.

Stable to implement

See also
BufferingStatsdDataFactory

Definition at line 13 of file IBufferingStatsdDataFactory.php.

Member Function Documentation

◆ clearData()

IBufferingStatsdDataFactory::clearData ( )

Clear all buffered data from the factory.

Since
1.31

Implemented in BufferingStatsdDataFactory, and NullStatsdDataFactory.

Referenced by MediaWiki\emitBufferedStatsdData().

◆ getData()

IBufferingStatsdDataFactory::getData ( )

Return the buffered data from the factory.

Returns
StatsdData[]

Implemented in BufferingStatsdDataFactory, and NullStatsdDataFactory.

Referenced by MediaWiki\emitBufferedStatsdData().

◆ getDataCount()

IBufferingStatsdDataFactory::getDataCount ( )

Return the number of buffered statsd data entries.

Returns
int
Since
1.31

Implemented in BufferingStatsdDataFactory, and NullStatsdDataFactory.

◆ hasData()

IBufferingStatsdDataFactory::hasData ( )

Check whether this data factory has any buffered data.

Returns
bool

Implemented in BufferingStatsdDataFactory, and NullStatsdDataFactory.

Referenced by MediaWiki\emitBufferedStatsdData().

◆ setEnabled()

IBufferingStatsdDataFactory::setEnabled ( $enabled)

Set collection enable status.

Parameters
bool$enabledWill collection be enabled?
Returns
void

Implemented in BufferingStatsdDataFactory, and NullStatsdDataFactory.


The documentation for this interface was generated from the following file: