PHP Class Scalr\Observer\AbstractEventObserver

Inheritance: implements Scalr\Observer\EventObserverInterface
Mostra file Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$isScalarizrRequired boolean Is scalr agent (scalarizr) require for the observer

Protected Properties

Property Type Description
$DB ADODB_mysqli ADODB instance
$FarmID integer Farm ID
$Logger Logger \Scalr\Logger instance
$container Scalr\DependencyInjection\Container DI Container

Public Methods

Method Description
OnBeforeHostTerminate ( BeforeHostTerminateEvent $event )
OnBeforeHostUp ( BeforeHostUpEvent $event )
OnBeforeInstanceLaunch ( BeforeInstanceLaunchEvent $event )
OnCheckFailed ( CheckFailedEvent $event )
OnCheckRecovered ( CheckRecoveredEvent $event )
OnCustomEvent ( CustomEvent $event )
OnEBSVolumeAttached ( EBSVolumeAttachedEvent $event )
OnEBSVolumeMounted ( EBSVolumeMountedEvent $event )
OnFarmLaunched ( FarmLaunchedEvent $event )
OnFarmTerminated ( FarmTerminatedEvent $event )
OnHostDown ( HostDownEvent $event )
OnHostInit ( HostInitEvent $event )
OnHostInitFailed ( HostInitFailedEvent $event )
OnHostUp ( HostUpEvent $event )
OnIPAddressChanged ( IPAddressChangedEvent $event )
OnInstanceLaunchFailed ( InstanceLaunchFailedEvent $event )
OnMysqlBackupComplete ( MysqlBackupCompleteEvent $event )
OnMysqlBackupFail ( MysqlBackupFailEvent $event )
OnNewDbMsrMasterUp ( NewDbMsrMasterUpEvent $event )
OnNewMysqlMasterUp ( NewMysqlMasterUpEvent $event )
OnRebootBegin ( RebootBeginEvent $event )
OnRebootComplete ( RebootCompleteEvent $event )
OnRebundleComplete ( RebundleCompleteEvent $event )
OnRebundleFailed ( RebundleFailedEvent $event )
OnResumeComplete ( ResumeCompleteEvent $event )
SetFarmID ( integer $farmid ) Set FARM ID
__construct ( ) Constructor
getContainer ( ) : Container Gets DI Container

Method Details

OnBeforeHostTerminate() public method

See also: Scalr\Observer\EventObserverInterface::OnBeforeHostTerminate()
public OnBeforeHostTerminate ( BeforeHostTerminateEvent $event )
$event BeforeHostTerminateEvent

OnBeforeHostUp() public method

See also: Scalr\Observer\EventObserverInterface::OnBeforeHostUp()
public OnBeforeHostUp ( BeforeHostUpEvent $event )
$event BeforeHostUpEvent

OnBeforeInstanceLaunch() public method

See also: Scalr\Observer\EventObserverInterface::OnBeforeInstanceLaunch()
public OnBeforeInstanceLaunch ( BeforeInstanceLaunchEvent $event )
$event BeforeInstanceLaunchEvent

OnCheckFailed() public method

See also: Scalr\Observer\EventObserverInterface::OnCheckFailed()
public OnCheckFailed ( CheckFailedEvent $event )
$event CheckFailedEvent

OnCheckRecovered() public method

See also: Scalr\Observer\EventObserverInterface::OnCheckRecovered()
public OnCheckRecovered ( CheckRecoveredEvent $event )
$event CheckRecoveredEvent

OnCustomEvent() public method

See also: Scalr\Observer\EventObserverInterface::OnCustomEvent()
public OnCustomEvent ( CustomEvent $event )
$event CustomEvent

OnEBSVolumeAttached() public method

public OnEBSVolumeAttached ( EBSVolumeAttachedEvent $event )
$event EBSVolumeAttachedEvent

OnEBSVolumeMounted() public method

See also: Scalr\Observer\EventObserverInterface::OnEBSVolumeMounted()
public OnEBSVolumeMounted ( EBSVolumeMountedEvent $event )
$event EBSVolumeMountedEvent

OnFarmLaunched() public method

See also: Scalr\Observer\EventObserverInterface::OnFarmLaunched()
public OnFarmLaunched ( FarmLaunchedEvent $event )
$event FarmLaunchedEvent

OnFarmTerminated() public method

See also: Scalr\Observer\EventObserverInterface::OnFarmTerminated()
public OnFarmTerminated ( FarmTerminatedEvent $event )
$event FarmTerminatedEvent

OnHostDown() public method

See also: Scalr\Observer\EventObserverInterface::OnHostDown()
public OnHostDown ( HostDownEvent $event )
$event HostDownEvent

OnHostInit() public method

See also: Scalr\Observer\EventObserverInterface::OnHostInit()
public OnHostInit ( HostInitEvent $event )
$event HostInitEvent

OnHostInitFailed() public method

See also: Scalr\Observer\EventObserverInterface::OnHostInitFailed()
public OnHostInitFailed ( HostInitFailedEvent $event )
$event HostInitFailedEvent

OnHostUp() public method

See also: Scalr\Observer\EventObserverInterface::OnHostUp()
public OnHostUp ( HostUpEvent $event )
$event HostUpEvent

OnIPAddressChanged() public method

See also: Scalr\Observer\EventObserverInterface::OnIPAddressChanged()
public OnIPAddressChanged ( IPAddressChangedEvent $event )
$event IPAddressChangedEvent

OnInstanceLaunchFailed() public method

See also: Scalr\Observer\EventObserverInterface::OnInstanceLaunchFailed()
public OnInstanceLaunchFailed ( InstanceLaunchFailedEvent $event )
$event InstanceLaunchFailedEvent

OnMysqlBackupComplete() public method

See also: Scalr\Observer\EventObserverInterface::OnMysqlBackupComplete()
public OnMysqlBackupComplete ( MysqlBackupCompleteEvent $event )
$event MysqlBackupCompleteEvent

OnMysqlBackupFail() public method

See also: Scalr\Observer\EventObserverInterface::OnMysqlBackupFail()
public OnMysqlBackupFail ( MysqlBackupFailEvent $event )
$event MysqlBackupFailEvent

OnNewDbMsrMasterUp() public method

See also: Scalr\Observer\EventObserverInterface::OnNewDbMsrMasterUp()
public OnNewDbMsrMasterUp ( NewDbMsrMasterUpEvent $event )
$event NewDbMsrMasterUpEvent

OnNewMysqlMasterUp() public method

See also: Scalr\Observer\EventObserverInterface::OnNewMysqlMasterUp()
public OnNewMysqlMasterUp ( NewMysqlMasterUpEvent $event )
$event NewMysqlMasterUpEvent

OnRebootBegin() public method

See also: Scalr\Observer\EventObserverInterface::OnRebootBegin()
public OnRebootBegin ( RebootBeginEvent $event )
$event RebootBeginEvent

OnRebootComplete() public method

See also: Scalr\Observer\EventObserverInterface::OnRebootComplete()
public OnRebootComplete ( RebootCompleteEvent $event )
$event RebootCompleteEvent

OnRebundleComplete() public method

See also: Scalr\Observer\EventObserverInterface::OnRebundleComplete()
public OnRebundleComplete ( RebundleCompleteEvent $event )
$event RebundleCompleteEvent

OnRebundleFailed() public method

See also: Scalr\Observer\EventObserverInterface::OnRebundleFailed()
public OnRebundleFailed ( RebundleFailedEvent $event )
$event RebundleFailedEvent

OnResumeComplete() public method

See also: Scalr\Observer\EventObserverInterface::OnResumeComplete()
public OnResumeComplete ( ResumeCompleteEvent $event )
$event ResumeCompleteEvent

SetFarmID() public method

Set FARM ID
public SetFarmID ( integer $farmid )
$farmid integer

__construct() public method

Constructor
public __construct ( )

getContainer() public method

Gets DI Container
public getContainer ( ) : Container
return Scalr\DependencyInjection\Container

Property Details

$DB protected_oe property

ADODB instance
protected ADODB_mysqli $DB
return ADODB_mysqli

$FarmID protected_oe property

Farm ID
protected int $FarmID
return integer

$Logger protected_oe property

\Scalr\Logger instance
protected Logger $Logger
return Logger

$container protected_oe property

DI Container
protected Container,Scalr\DependencyInjection $container
return Scalr\DependencyInjection\Container

$isScalarizrRequired public_oe property

Is scalr agent (scalarizr) require for the observer
public bool $isScalarizrRequired
return boolean