Documentation

ContainerMigration

Class responsible for migrating the contents of one container to another

Table of Contents

$defaults  : mixed
$newContainer  : Container
$oldContainer  : Container
$options  : Collection
$readQueue  : Batch
$writeQueue  : Batch
factory()  : ContainerMigration
getNewContainer()  : Container
getOldContainer()  : Container
getOptions()  : Collection
setNewContainer()  : mixed
setOldContainer()  : mixed
setOptions()  : mixed
setupReadQueue()  : mixed
Set the read queue as a {@see \Guzzle\Batch\Batch} queue using the {@see \Guzzle\Batch\BatchBuilder}
setupWriteQueue()  : mixed
Set the write queue as a {@see \Guzzle\Batch\Batch} queue using the {@see \Guzzle\Batch\BatchBuilder}
transfer()  : array<string|int, mixed>
Initiate the transfer process
createPutRequest()  : EntityEnclosingRequestInterface
Create a tailored PUT request for each file
enqueueGetRequests()  : mixed
Create a collection of files to be migrated and add them to the read queue
sendGetRequests()  : array<string|int, mixed>
Send the read queue (in order to gather more information about individual files)
getClient()  : ClientInterface

Properties

$defaults

protected mixed $defaults = array('read.batchLimit' => 1000, 'read.pageLimit' => 10000, 'write.batchLimit' => 100)

Methods

setOptions()

public setOptions(array<string|int, mixed> $options) : mixed
Parameters
$options : array<string|int, mixed>
Return values
mixed

setupReadQueue()

Set the read queue as a {@see \Guzzle\Batch\Batch} queue using the {@see \Guzzle\Batch\BatchBuilder}

public setupReadQueue() : mixed
Return values
mixed

setupWriteQueue()

Set the write queue as a {@see \Guzzle\Batch\Batch} queue using the {@see \Guzzle\Batch\BatchBuilder}

public setupWriteQueue() : mixed
Return values
mixed

transfer()

Initiate the transfer process

public transfer() : array<string|int, mixed>
Return values
array<string|int, mixed>

PUT responses

enqueueGetRequests()

Create a collection of files to be migrated and add them to the read queue

protected enqueueGetRequests() : mixed
Return values
mixed

sendGetRequests()

Send the read queue (in order to gather more information about individual files)

protected sendGetRequests() : array<string|int, mixed>
Return values
array<string|int, mixed>

Responses

Search results