MediaWiki  1.34.0
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. More...
 
 getData ()
 Return the buffered data from the factory. More...
 
 getDataCount ()
 Return the number of buffered statsd data entries. More...
 
 hasData ()
 Check whether this data factory has any buffered data. More...
 
 setEnabled ( $enabled)
 Set collection enable status. More...
 

Detailed Description

MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.

See also
BufferingStatsdDataFactory

Definition at line 11 of file IBufferingStatsdDataFactory.php.

Member Function Documentation

◆ clearData()

IBufferingStatsdDataFactory::clearData ( )

Clear all buffered data from the factory.

Since
1.31

Implemented in NullStatsdDataFactory, and BufferingStatsdDataFactory.

Referenced by MediaWiki\emitBufferedStatsdData().

◆ getData()

IBufferingStatsdDataFactory::getData ( )

Return the buffered data from the factory.

Returns
StatsdData[]

Implemented in NullStatsdDataFactory, and BufferingStatsdDataFactory.

Referenced by MediaWiki\emitBufferedStatsdData().

◆ getDataCount()

IBufferingStatsdDataFactory::getDataCount ( )

Return the number of buffered statsd data entries.

Returns
int
Since
1.31

Implemented in NullStatsdDataFactory, and BufferingStatsdDataFactory.

◆ hasData()

IBufferingStatsdDataFactory::hasData ( )

Check whether this data factory has any buffered data.

Returns
bool

Implemented in NullStatsdDataFactory, and BufferingStatsdDataFactory.

Referenced by MediaWiki\emitBufferedStatsdData().

◆ setEnabled()

IBufferingStatsdDataFactory::setEnabled (   $enabled)

Set collection enable status.

Parameters
bool$enabledWill collection be enabled?
Returns
void

Implemented in NullStatsdDataFactory, and BufferingStatsdDataFactory.


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