Scalr_Db_Msr_Info::getMessageProperties PHP Method

getMessageProperties() public method

    public function getMessageProperties()
    {
        $retval = new stdClass();
        $retval->replicationMaster = $this->replicationMaster;
        $retval->volumeConfig = $this->volumeConfig;
        $retval->snapshotConfig = $this->snapshotConfig;
        if ($retval->replicationMaster) {
            $growConfig = $this->dbFarmRole->GetSetting(Scalr_Role_DbMsrBehavior::ROLE_DATA_STORAGE_GROW_CONFIG);
            if ($growConfig) {
                $config = @json_decode($growConfig);
                $retval->volumeGrowth = $config;
            }
        }
        return $retval;
    }

Usage Example

Example #1
0
 public function getMessageProperties()
 {
     $retval = parent::getMessageProperties();
     $retval->masterPassword = $this->masterPassword;
     $retval->persistence_type = $this->persistenceType;
     return $retval;
 }
All Usage Examples Of Scalr_Db_Msr_Info::getMessageProperties