PHP 클래스 DataSift\Storyplayer\DefinitionLib\TestEnvironment_GroupDefinition

저자: Stuart Herbert ([email protected])
파일 보기 프로젝트 열기: datasift/storyplayer 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$groupAdapter Storyplayer\TestEnvironments\GroupAdapter the code that understands what's special about this type of group
$groupId integer | string which group are we?
$hosts array a list of all of the hosts in this group
$parentEnv TestEnvironment_Definition the test environment that we belong to
$provisioningAdapters array a list of provisioning adapters to use for this group

공개 메소드들

메소드 설명
__construct ( TestEnvironment_Definition $parent, $groupId, Storyplayer\TestEnvironments\GroupAdapter $groupAdapter )
addProvisioningAdapter ( Storyplayer\TestEnvironments\ProvisioningAdapter $adapter ) add a provisioning adapter to our list
getBaseFolder ( ) : string which folder contains all of our supporting files?
getGroupAdapter ( ) : Storyplayer\TestEnvironments\GroupAdapter get the plugin we use to start and stop this test environment
getGroupId ( ) : integer | string what is our group ID?
getGroupType ( ) : string what type of group are we?
getHostAdapterValidator ( ) : Storyplayer\TestEnvironments\HostAdapterValidator what should we use to validate a host adapter that is being added to one of the hosts in this group?
getHosts ( ) : array what hosts exist in this group?
getHostsAsConfig ( ) : DataSift\Stone\ObjectLib\BaseObject return our hosts, as SPv2.0-style config tree
getProvisioningAdapters ( ) : array how should we provision this environment?
getProvisioningAsConfig ( ) : DataSift\Stone\ObjectLib\BaseObject return our first provisioning adapter, as SPv2.0-style config tree
getTestEnvironmentName ( ) : string which test environment do we belong to?
hasProvisioningAdapters ( ) : boolean do we have any provisioning adapters?
newHost ( string $hostId, Storyplayer\TestEnvironments\HostAdapter $hostAdapter ) : TestEnvironment_HostDefinition start the definition of a host in this group
setGroupAdapter ( Storyplayer\TestEnvironments\GroupAdapter $groupAdapter ) : TestEnvironment_GroupDefinition tell us which plugin to use to start and stop this test environment

보호된 메소드들

메소드 설명
requireGroupAdapter ( ) : void throws an exception if we don't have a valid group adapter to use

메소드 상세

__construct() 공개 메소드

public __construct ( TestEnvironment_Definition $parent, $groupId, Storyplayer\TestEnvironments\GroupAdapter $groupAdapter )
$parent TestEnvironment_Definition
$groupAdapter Storyplayer\TestEnvironments\GroupAdapter

addProvisioningAdapter() 공개 메소드

our list can have as many provisioning adapters as you would like they are executed in the order that you add them
public addProvisioningAdapter ( Storyplayer\TestEnvironments\ProvisioningAdapter $adapter )
$adapter Storyplayer\TestEnvironments\ProvisioningAdapter the provisioning adapter to add

getBaseFolder() 공개 메소드

which folder contains all of our supporting files?
public getBaseFolder ( ) : string
리턴 string

getGroupAdapter() 공개 메소드

get the plugin we use to start and stop this test environment
public getGroupAdapter ( ) : Storyplayer\TestEnvironments\GroupAdapter
리턴 Storyplayer\TestEnvironments\GroupAdapter

getGroupId() 공개 메소드

what is our group ID?
public getGroupId ( ) : integer | string
리턴 integer | string

getGroupType() 공개 메소드

this is the name of the class (without namespace) that our group adapter uses
public getGroupType ( ) : string
리턴 string

getHostAdapterValidator() 공개 메소드

what should we use to validate a host adapter that is being added to one of the hosts in this group?
public getHostAdapterValidator ( ) : Storyplayer\TestEnvironments\HostAdapterValidator
리턴 Storyplayer\TestEnvironments\HostAdapterValidator

getHosts() 공개 메소드

what hosts exist in this group?
public getHosts ( ) : array
리턴 array

getHostsAsConfig() 공개 메소드

return our hosts, as SPv2.0-style config tree
public getHostsAsConfig ( ) : DataSift\Stone\ObjectLib\BaseObject
리턴 DataSift\Stone\ObjectLib\BaseObject

getProvisioningAdapters() 공개 메소드

how should we provision this environment?
public getProvisioningAdapters ( ) : array
리턴 array

getProvisioningAsConfig() 공개 메소드

return our first provisioning adapter, as SPv2.0-style config tree
public getProvisioningAsConfig ( ) : DataSift\Stone\ObjectLib\BaseObject
리턴 DataSift\Stone\ObjectLib\BaseObject

getTestEnvironmentName() 공개 메소드

which test environment do we belong to?
public getTestEnvironmentName ( ) : string
리턴 string

hasProvisioningAdapters() 공개 메소드

do we have any provisioning adapters?

newHost() 공개 메소드

start the definition of a host in this group
public newHost ( string $hostId, Storyplayer\TestEnvironments\HostAdapter $hostAdapter ) : TestEnvironment_HostDefinition
$hostId string the ID of this host
$hostAdapter Storyplayer\TestEnvironments\HostAdapter the plugin for this kind of host
리턴 TestEnvironment_HostDefinition the empty host definition, for you to complete

requireGroupAdapter() 보호된 메소드

throws an exception if we don't have a valid group adapter to use
protected requireGroupAdapter ( ) : void
리턴 void

setGroupAdapter() 공개 메소드

tell us which plugin to use to start and stop this test environment
public setGroupAdapter ( Storyplayer\TestEnvironments\GroupAdapter $groupAdapter ) : TestEnvironment_GroupDefinition
$groupAdapter Storyplayer\TestEnvironments\GroupAdapter the adapter to use for this group
리턴 TestEnvironment_GroupDefinition

프로퍼티 상세

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

the code that understands what's special about this type of group
protected GroupAdapter,Storyplayer\TestEnvironments $groupAdapter
리턴 Storyplayer\TestEnvironments\GroupAdapter

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

which group are we?
protected int|string $groupId
리턴 integer | string

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

a list of all of the hosts in this group
protected array $hosts
리턴 array

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

the test environment that we belong to
protected TestEnvironment_Definition,DataSift\Storyplayer\DefinitionLib $parentEnv
리턴 TestEnvironment_Definition

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

a list of provisioning adapters to use for this group
protected array $provisioningAdapters
리턴 array