PHP Class Scalr\Modules\Platforms\Cloudstack\Observers\CloudstackObserver

Inheritance: extends EventObserver
显示文件 Open project: scalr/scalr

Public Properties

Property Type Description
$ObserverName

Public Methods

Method Description
OnBeforeHostTerminate ( BeforeHostTerminateEven\BeforeHostTerminateEvent $event )
OnFarmTerminated ( FarmTerminatedEven\FarmTerminatedEvent $event ) Release used elastic IPs if farm terminated
OnHostDown ( HostDownEven\HostDownEvent $event ) Release IP address when instance terminated
OnHostInit ( HostInitEven\HostInitEvent $event )
OnHostUp ( HostUpEven\HostUpEvent $event ) Allocate and Assign Elastic IP to instance if role use it.
__construct ( )

Method Details

OnBeforeHostTerminate() public method

public OnBeforeHostTerminate ( BeforeHostTerminateEven\BeforeHostTerminateEvent $event )
$event BeforeHostTerminateEven\BeforeHostTerminateEvent

OnFarmTerminated() public method

Release used elastic IPs if farm terminated
public OnFarmTerminated ( FarmTerminatedEven\FarmTerminatedEvent $event )
$event FarmTerminatedEven\FarmTerminatedEvent

OnHostDown() public method

Release IP address when instance terminated
public OnHostDown ( HostDownEven\HostDownEvent $event )
$event HostDownEven\HostDownEvent

OnHostInit() public method

public OnHostInit ( HostInitEven\HostInitEvent $event )
$event HostInitEven\HostInitEvent

OnHostUp() public method

Allocate and Assign Elastic IP to instance if role use it.
public OnHostUp ( HostUpEven\HostUpEvent $event )
$event HostUpEven\HostUpEvent

__construct() public method

public __construct ( )

Property Details

$ObserverName public_oe property

public $ObserverName