Beanstalk\Command\StatsTube Class Ref

class Beanstalk\Command\StatsTube
Extends:Beanstalk\Command
Description:The stats-tube command gives statistical information about the specified tube if it exists

Class Methods

Beanstalk\Command\StatsTube::__construct($tube)
Description:

Constructor

Parameters:
  • $tube (string) – Stats will be returned for this tube.
Throws:

BeanstalkException When $tube exceeds 200 bytes

Beanstalk\Command\StatsTube::getCommand()
Description:Get the command to send to the beanstalkd server
Returns:string
Beanstalk\Command\StatsTube::parseResponse($response[, $data = null, $conn = null])
Description:

Parse the response for success or failure.

Parameters:
  • $response (string) – Response line, i.e, first line in response
  • $data (string) – Data recieved with reponse, if any, else null
  • $conn (BeanstalkConnection) – BeanstalkConnection use to send the command
Returns:

BeanstalkStats

Throws:

BeanstalkException When the job does not exist

Throws:

BeanstalkException When any other error occurs

Beanstalk\Command\StatsTube::returnsData()
Description:Does the command return data?
Returns:boolean