The applicationSynchronize Method

Synchronizing an existing application, whether in order to fix a problem
or to reset an installation. This process is asynchronous, meaning the initial
request will start the synchronize process and the initial response will show
information about the application being synchronized. However, the synchronize
process will proceed after the response is returned. You must continue checking
the application status using the applicationGetStatus method until the process
is complete.
license New BSD License
link for the canonical source repository
author Ingo Walz
category Zend
package Zend_Service
subpackage ZendServerAPI

 Methods

Base constructor for the method implementations

__construct() 
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::__construct()

Returns the parameter array for index $index

buildParameterArray(string $index, array $values) : string
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::buildParameterArray()

Parameters

$index

string

$values

array

Returns

string

Configures all needed information for the method implementation

configure() : void

Returns the default accept header

getAcceptHeader() : string
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::getAcceptHeader()

Returns

string

Content for POST request

getContent() : string

Returns

string

Returns the default content type

getContentType() : string
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::getContentType()

Returns

string

Get the values for preparing the post

getContentValues() : array
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::getContentValues()

Returns

array

Getter for the path to server method

getFunctionPath() : string
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::getFunctionPath()

Returns

string

Get method for the api call

getMethod() : string
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::getMethod()

Returns

string

Get class for result mapping

getParser() : \ZendService\ZendServerAPI\Adapter\Adapter
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::getParser()

Returns

Returns the default post files

getPostFiles() : array
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::getPostFiles()

Returns

array

Get result from parser

parseResponse(string $xml) : \ZendService\ZendServerAPI\Method\DataTypes\DataType
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::parseResponse()

Parameters

$xml

string

Returns

\ZendService\ZendServerAPI\Method\DataTypes\DataType

Set arguments for ApplicationRemove

setArgs(int $applicationId, array $servers, bool $ignoreFailures) 

Parameters

$applicationId

int

ApplicationId to remove

$servers

array

A List of server ID's. If defined, the action will be done only on the servers whose ID's are specified and which are currently members of the cluster.

$ignoreFailures

bool

Ignore failures during staging or activation if only some servers report failures. If all servers report failures the operation will fail in any case. The default value is FALSE, meaning any failure will return an error.

Setter for the function path

setFunctionPath(string $functionPath) : void
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::setFunctionPath()

Parameters

$functionPath

string

e.g. /ZendServerManager/Api/Foo

Set method for the api call

setMethod(string $method) 
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::setMethod()

Parameters

$method

string

GET|POST

Set the implementation for the result mapping

setParser(\ZendService\ZendServerAPI\Adapter\Adapter $parser) : void
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::setParser()

Parameters

$parser

\ZendService\ZendServerAPI\Adapter\Adapter

for result mapping

Set the Zend HTTP Response

setResponse(\Zend\Http\Response $response) : void
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::setResponse()

Parameters

$response

\Zend\Http\Response

 Properties

 

$applicationId : int
 

$functionPath : string
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::$$functionPath
 

$ignoreFailures : boolean
 

$method : string
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::$$method
 

$parser : \ZendService\ZendServerAPI\Adapter\Adapter
Inherited
inherited_from \ZendService\ZendServerAPI\Method\Method::$$parser
 

$servers : array