public function __construct(DBServer $dbServer, $port = 8010)
{
$this->dbServer = $dbServer;
$this->port = $port;
if ($this->dbServer->farmId) {
if (DBFarm::LoadByID($this->dbServer->farmId)->GetSetting(Entity\FarmSetting::EC2_VPC_ID)) {
$this->isVPC = true;
}
}
$this->cryptoTool = \Scalr::getContainer()->srzcrypto($this->dbServer->GetKey(true));
}