PHP Class Swift_Plugins_BandwidthMonitorPlugin, Halite

Author: Chris Corbyn
Inheritance: implements Swift_Events_SendListener, implements Swift_Events_CommandListener, implements Swift_Events_ResponseListener, implements Swift_InputByteStream
Afficher le fichier Open project: HaliteChallenge/Halite Class Usage Examples

Méthodes publiques

Méthode Description
beforeSendPerformed ( Swift_Events_SendEvent $evt ) Not used.
bind ( Swift_InputByteStream $is ) Attach $is to this stream.
commandSent ( Swift_Events_CommandEvent $evt ) Invoked immediately following a command being sent.
commit ( ) Not used.
flushBuffers ( ) Not used.
getBytesIn ( ) : integer Get the total number of bytes received from the server.
getBytesOut ( ) : integer Get the total number of bytes sent to the server.
reset ( ) Reset the internal counters to zero.
responseReceived ( Swift_Events_ResponseEvent $evt ) Invoked immediately following a response coming back.
sendPerformed ( Swift_Events_SendEvent $evt ) Invoked immediately after the Message is sent.
unbind ( Swift_InputByteStream $is ) Remove an already bound stream.
write ( string $bytes ) Called when a message is sent so that the outgoing counter can be increased.

Method Details

beforeSendPerformed() public méthode

Not used.
public beforeSendPerformed ( Swift_Events_SendEvent $evt )
$evt Swift_Events_SendEvent

bind() public méthode

The stream acts as an observer, receiving all data that is written. All {@link write()} and {@link flushBuffers()} operations will be mirrored.
public bind ( Swift_InputByteStream $is )
$is Swift_InputByteStream

commandSent() public méthode

Invoked immediately following a command being sent.
public commandSent ( Swift_Events_CommandEvent $evt )
$evt Swift_Events_CommandEvent

commit() public méthode

Not used.
public commit ( )

flushBuffers() public méthode

Not used.
public flushBuffers ( )

getBytesIn() public méthode

Get the total number of bytes received from the server.
public getBytesIn ( ) : integer
Résultat integer

getBytesOut() public méthode

Get the total number of bytes sent to the server.
public getBytesOut ( ) : integer
Résultat integer

reset() public méthode

Reset the internal counters to zero.
public reset ( )

responseReceived() public méthode

Invoked immediately following a response coming back.
public responseReceived ( Swift_Events_ResponseEvent $evt )
$evt Swift_Events_ResponseEvent

sendPerformed() public méthode

Invoked immediately after the Message is sent.
public sendPerformed ( Swift_Events_SendEvent $evt )
$evt Swift_Events_SendEvent

unbind() public méthode

If $is is not bound, no errors will be raised. If the stream currently has any buffered data it will be written to $is before unbinding occurs.
public unbind ( Swift_InputByteStream $is )
$is Swift_InputByteStream

write() public méthode

Called when a message is sent so that the outgoing counter can be increased.
public write ( string $bytes )
$bytes string