public function getNameByConvention()
{
$displayConvention = Scalr::config('scalr.ui.server_display_convention');
$name = "#{$this->index}: ";
if ($displayConvention == 'hostname') {
$name .= $this->GetProperty(Scalr_Role_Behavior::SERVER_BASE_HOSTNAME);
} elseif ($displayConvention == 'auto' && $this->remoteIp || $displayConvention == 'public') {
$name .= $this->remoteIp;
} elseif ($this->localIp) {
$name .= $this->localIp;
}
return $name;
}