Class Swift_Plugin_BandwidthMonitor

Description

Implements interfaces:

Swift Bandwidth Monitor.

Tracks bytes in and out of the connection.

Located in /Swift/Plugin/BandwidthMonitor.php (line 21)


	
			
Direct descendents
Class Description
Swift_Plugin_Throttler Throttler plugin for Swift Mailer.
Variable Summary
int $in
int $out
Method Summary
void addBytesIn (int $num)
void addBytesOut (int $num)
void commandSent ( $e)
int getBytesIn ()
int getBytesOut ()
void responseReceived ( $e)
void setBytesIn (int $num)
void setBytesOut (int $num)
Variables
int $in = 0 (line 27)

The number of bytes received

  • access: protected
int $out = 0 (line 32)

The number of bytes sent

  • access: protected
Methods
addBytesIn (line 59)

Add some bytes to the running totals for incoming bandwidth

  • access: public
void addBytesIn (int $num)
  • int $num: Bytes in
addBytesOut (line 68)

Add some bytes to the running totals for outgoing bandwidth

  • access: public
void addBytesOut (int $num)
  • int $num: Bytes out
commandSent (line 38)

Part of the interface which is notified after a command is sent.

  • access: public
void commandSent ( $e)

Redefined in descendants as:
getBytesIn (line 77)

Get the total number of bytes received

  • access: public
int getBytesIn ()
getBytesOut (line 85)

Get the total number of bytes sent

  • access: public
int getBytesOut ()
responseReceived (line 50)

Part of the interface which is notified when a response is received

  • access: public
void responseReceived ( $e)
setBytesIn (line 94)

Set the total number of bytes received.

Can be used to reset the counters at runtime.

  • access: public
void setBytesIn (int $num)
  • int $num: The bytes in
setBytesOut (line 103)

Set the total number of bytes sent.

Can be used to reset the counters at runtime.

  • access: public
void setBytesOut (int $num)
  • int $num: The bytes out

Documentation generated on Wed, 26 Mar 2008 20:33:03 +1100 by phpDocumentor 1.3.1