Overview

Namespaces

  • predictionio

Classes

  • BaseClient
  • EngineClient
  • EventClient
  • FileExporter

Traits

  • Exporter

Exceptions

  • PredictionIOAPIError
  • Overview
  • Namespace
  • Class

Class BaseClient

Base client for Event and Engine client

Direct known subclasses

predictionio\EngineClient, predictionio\EventClient
Abstract
Namespace: predictionio
Located at predictionio/BaseClient.php
Methods summary
public
# __construct( string $baseUrl, float $timeout, float $connectTimeout )

Parameters

$baseUrl
Base URL to the server
$timeout
Timeout of the request in seconds. Use 0 to wait indefinitely
$connectTimeout
Number of seconds to wait while trying to connect to a server
public string
# getStatus( )

Get the status of the Event Server or Engine Instance

Get the status of the Event Server or Engine Instance

Returns

string
status
protected array
# sendRequest( string $method, string $url, string $body )

Send a HTTP request to the server

Send a HTTP request to the server

Parameters

$method
HTTP request method
$url
Relative or absolute url
$body
HTTP request body

Returns

array
JSON response

Throws

predictionio\PredictionIOAPIError
Request error
Properties summary
public $client
#
PredictionIO API PHP Client API documentation generated by ApiGen