PHP 클래스 Scalr\Modules\Platforms\Ec2\Ec2PlatformModule

상속: extends Scalr\Modules\Platforms\AbstractAwsPlatformModule, implements Scalr\Modules\PlatformModuleInterface
파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$instancesListCache array

공개 메소드들

메소드 설명
AllocateNewSubnet ( Ec2 $ec2, $vpcId, $availZone, $subnetLength = 24 )
CheckServerSnapshotStatus ( BundleTask $BundleTask )
ClearCache ( )
CreateServerSnapshot ( BundleTask $BundleTask )
GetPlacementGroupData ( string $instanceType, DBServer $DBServer, Scalr\Service\Aws\Ec2\DataType\PlacementResponseData &$placementData = null ) : Scalr\Service\Aws\Ec2\DataType\PlacementResponseData Gets pre filled PlacementResponseData
GetPlatformAccessData ( Scalr_Environment $environment, DBServer $DBServer ) : object
GetServerCloudLocation ( DBServer $DBServer )
GetServerConsoleOutput ( DBServer $DBServer )
GetServerExtendedInformation ( DBServer $DBServer, $extended = false )
GetServerID ( DBServer $DBServer )
GetServerIPAddresses ( DBServer $DBServer )
GetServerRealStatus ( DBServer $DBServer )
GetServersList ( Scalr_Environment $environment, string $region, boolean $skipCache = false ) : array Gets the list of the EC2 instances for the specified environment and AWS location
IsServerExists ( DBServer $DBServer, $debug = false )
LaunchServer ( DBServer $DBServer, Scalr_Server_LaunchOption\Scalr_Server_LaunchOptions $launchOptions = null )
PutAccessData ( DBServer $DBServer, Scalr_Messaging_Msg $message )
RebootServer ( DBServer $DBServer, $soft = true )
RemoveServerSnapshot ( Image $image )
ResumeServer ( DBServer $DBServer )
SuspendServer ( DBServer $DBServer )
TerminateServer ( DBServer $DBServer )
__construct ( )
getDefaultVpc ( Scalr_Environment $environment, $cloudLocation )
getHttpClient ( DBServer $dbServer ) : Scalr\Service\Aws\Client\ClientInterface
getImageInfo ( Scalr_Environment $environment, $cloudLocation, $imageId )
getInstanceIdPropertyName ( )
getInstanceType ( $instanceTypeId, Scalr_Environment $env, $cloudLocation = null )
getInstanceTypes ( Scalr_Environment $env = null, $cloudLocation = null, $details = false )
getOrphanedServers ( Environment $environment, $cloudLocation, $instanceIds = null )
getRoutingTable ( $type, $aws, $networkInterfaceId = null, $vpcId )
getRoutingTables ( Ec2 $ec2, $vpcId )
hasCloudPrices ( Scalr_Environment $env )
listSubnets ( Scalr_Environment $env, $cloudLocation, $vpcId, $extended = true, $subnetId = null )

비공개 메소드들

메소드 설명
ApplyAccessData ( Scalr_Messaging_Msg $msg )
GetBlockDeviceMapping ( string $instanceType, string $prefix = '/dev/sd' ) : array Gets block device mapping
GetServerAvailZone ( DBServer $DBServer, Ec2 $ec2, Scalr_Server_LaunchOption\Scalr_Server_LaunchOptions $launchOptions ) Gets Avail zone for the specified DB server
GetServerSecurityGroupsList ( DBServer $DBServer, Ec2 $ec2, string $vpcId = "", Scalr_Governance $governance = null, string $osFamily = null ) : array Gets the list of the security groups for the specified db server.

메소드 상세

AllocateNewSubnet() 공개 메소드

public AllocateNewSubnet ( Ec2 $ec2, $vpcId, $availZone, $subnetLength = 24 )
$ec2 Scalr\Service\Aws\Ec2

CheckServerSnapshotStatus() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::CheckServerSnapshotStatus()
public CheckServerSnapshotStatus ( BundleTask $BundleTask )
$BundleTask BundleTask

ClearCache() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::ClearCache()
public ClearCache ( )

CreateServerSnapshot() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::CreateServerSnapshot()
public CreateServerSnapshot ( BundleTask $BundleTask )
$BundleTask BundleTask

GetPlacementGroupData() 공개 메소드

Gets pre filled PlacementResponseData
public GetPlacementGroupData ( string $instanceType, DBServer $DBServer, Scalr\Service\Aws\Ec2\DataType\PlacementResponseData &$placementData = null ) : Scalr\Service\Aws\Ec2\DataType\PlacementResponseData
$instanceType string The type of the instance
$DBServer DBServer DBServer instance
$placementData Scalr\Service\Aws\Ec2\DataType\PlacementResponseData optional PlacementResponseData to fill
리턴 Scalr\Service\Aws\Ec2\DataType\PlacementResponseData

GetPlatformAccessData() 공개 메소드

public GetPlatformAccessData ( Scalr_Environment $environment, DBServer $DBServer ) : object
$environment Scalr_Environment
$DBServer DBServer
리턴 object

GetServerCloudLocation() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::GetServerCloudLocation()
public GetServerCloudLocation ( DBServer $DBServer )
$DBServer DBServer

GetServerConsoleOutput() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::GetServerConsoleOutput()
public GetServerConsoleOutput ( DBServer $DBServer )
$DBServer DBServer

GetServerExtendedInformation() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::GetServerExtendedInformation()
public GetServerExtendedInformation ( DBServer $DBServer, $extended = false )
$DBServer DBServer

GetServerID() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::GetServerID()
public GetServerID ( DBServer $DBServer )
$DBServer DBServer

GetServerIPAddresses() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::GetServerIPAddresses()
public GetServerIPAddresses ( DBServer $DBServer )
$DBServer DBServer

GetServerRealStatus() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::GetServerRealStatus()
public GetServerRealStatus ( DBServer $DBServer )
$DBServer DBServer

GetServersList() 공개 메소드

Gets the list of the EC2 instances for the specified environment and AWS location
public GetServersList ( Scalr_Environment $environment, string $region, boolean $skipCache = false ) : array
$environment Scalr_Environment Environment Object
$region string EC2 location name
$skipCache boolean optional Whether it should skip the cache.
리턴 array Returns array looks like array(InstanceId => stateName)

IsServerExists() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::IsServerExists()
public IsServerExists ( DBServer $DBServer, $debug = false )
$DBServer DBServer

LaunchServer() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::LaunchServer()
public LaunchServer ( DBServer $DBServer, Scalr_Server_LaunchOption\Scalr_Server_LaunchOptions $launchOptions = null )
$DBServer DBServer
$launchOptions Scalr_Server_LaunchOption\Scalr_Server_LaunchOptions

PutAccessData() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::PutAccessData()
public PutAccessData ( DBServer $DBServer, Scalr_Messaging_Msg $message )
$DBServer DBServer
$message Scalr_Messaging_Msg

RebootServer() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::RebootServer()
public RebootServer ( DBServer $DBServer, $soft = true )
$DBServer DBServer

RemoveServerSnapshot() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::RemoveServerSnapshot()
public RemoveServerSnapshot ( Image $image )
$image Scalr\Model\Entity\Image

ResumeServer() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::ResumeServer()
public ResumeServer ( DBServer $DBServer )
$DBServer DBServer

SuspendServer() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::SuspendServer()
public SuspendServer ( DBServer $DBServer )
$DBServer DBServer

TerminateServer() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::TerminateServer()
public TerminateServer ( DBServer $DBServer )
$DBServer DBServer

__construct() 공개 메소드

public __construct ( )

getDefaultVpc() 공개 메소드

public getDefaultVpc ( Scalr_Environment $environment, $cloudLocation )
$environment Scalr_Environment

getHttpClient() 공개 메소드

또한 보기: PlatformModuleInterface::getgetClientByDbServer()
public getHttpClient ( DBServer $dbServer ) : Scalr\Service\Aws\Client\ClientInterface
$dbServer DBServer
리턴 Scalr\Service\Aws\Client\ClientInterface

getImageInfo() 공개 메소드

또한 보기: PlatformModuleInterface::getImageInfo()
public getImageInfo ( Scalr_Environment $environment, $cloudLocation, $imageId )
$environment Scalr_Environment

getInstanceIdPropertyName() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::getInstanceIdPropertyName()

getInstanceType() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::getInstanceType()
public getInstanceType ( $instanceTypeId, Scalr_Environment $env, $cloudLocation = null )
$env Scalr_Environment

getInstanceTypes() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::getInstanceTypes()
public getInstanceTypes ( Scalr_Environment $env = null, $cloudLocation = null, $details = false )
$env Scalr_Environment

getOrphanedServers() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::getOrphanedServers()
public getOrphanedServers ( Environment $environment, $cloudLocation, $instanceIds = null )
$environment Scalr\Model\Entity\Account\Environment

getRoutingTable() 공개 메소드

public getRoutingTable ( $type, $aws, $networkInterfaceId = null, $vpcId )

getRoutingTables() 공개 메소드

public getRoutingTables ( Ec2 $ec2, $vpcId )
$ec2 Scalr\Service\Aws\Ec2

hasCloudPrices() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::hasCloudPrices()
public hasCloudPrices ( Scalr_Environment $env )
$env Scalr_Environment

listSubnets() 공개 메소드

public listSubnets ( Scalr_Environment $env, $cloudLocation, $vpcId, $extended = true, $subnetId = null )
$env Scalr_Environment

프로퍼티 상세

$instancesListCache 공개적으로 프로퍼티

public array $instancesListCache
리턴 array