PHP 클래스 Elastica\Snapshot

파일 보기 프로젝트 열기: ruflin/elastica 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_client Client

공개 메소드들

메소드 설명
__construct ( Client $client )
createSnapshot ( string $repository, string $name, array $options = [], boolean $waitForCompletion = false ) : Response Create a new snapshot.
deleteSnapshot ( string $repository, string $name ) : Response Delete a snapshot.
getAllRepositories ( ) : array Retrieve all repository records.
getAllSnapshots ( string $repository ) : array Retrieve data regarding all snapshots in the given repository.
getRepository ( string $name ) : array Retrieve a repository record by name.
getSnapshot ( string $repository, string $name ) : array Retrieve data regarding a specific snapshot.
registerRepository ( string $name, string $type, array $settings = [] ) : Response Register a snapshot repository.
request ( string $path, string $method = Request::GET, array $data = [], array $query = [] ) : Response Perform a snapshot request.
restoreSnapshot ( string $repository, string $name, array $options = [], boolean $waitForCompletion = false ) : Response Restore a snapshot.

메소드 상세

__construct() 공개 메소드

public __construct ( Client $client )
$client Client

createSnapshot() 공개 메소드

Create a new snapshot.
public createSnapshot ( string $repository, string $name, array $options = [], boolean $waitForCompletion = false ) : Response
$repository string the name of the repository in which this snapshot should be stored
$name string the name of this snapshot
$options array optional settings for this snapshot
$waitForCompletion boolean if true, the request will not return until the snapshot operation is complete
리턴 Response

deleteSnapshot() 공개 메소드

Delete a snapshot.
public deleteSnapshot ( string $repository, string $name ) : Response
$repository string the repository in which the snapshot resides
$name string the name of the snapshot to be deleted
리턴 Response

getAllRepositories() 공개 메소드

Retrieve all repository records.
public getAllRepositories ( ) : array
리턴 array

getAllSnapshots() 공개 메소드

Retrieve data regarding all snapshots in the given repository.
public getAllSnapshots ( string $repository ) : array
$repository string the repository name
리턴 array

getRepository() 공개 메소드

Retrieve a repository record by name.
public getRepository ( string $name ) : array
$name string the name of the desired repository
리턴 array

getSnapshot() 공개 메소드

Retrieve data regarding a specific snapshot.
public getSnapshot ( string $repository, string $name ) : array
$repository string the name of the repository from which to retrieve the snapshot
$name string the name of the desired snapshot
리턴 array

registerRepository() 공개 메소드

Register a snapshot repository.
public registerRepository ( string $name, string $type, array $settings = [] ) : Response
$name string the name of the repository
$type string the repository type ("fs" for file system)
$settings array Additional repository settings. If type "fs" is used, the "location" setting must be provided.
리턴 Response

request() 공개 메소드

Perform a snapshot request.
public request ( string $path, string $method = Request::GET, array $data = [], array $query = [] ) : Response
$path string the URL
$method string the HTTP method
$data array request body data
$query array query string parameters
리턴 Response

restoreSnapshot() 공개 메소드

Restore a snapshot.
public restoreSnapshot ( string $repository, string $name, array $options = [], boolean $waitForCompletion = false ) : Response
$repository string the name of the repository
$name string the name of the snapshot
$options array options for the restore operation
$waitForCompletion boolean if true, the request will not return until the restore operation is complete
리턴 Response

프로퍼티 상세

$_client 보호되어 있는 프로퍼티

protected Client,elastica $_client
리턴 Client