Saltar para o conteúdo principal
Versão: 20 R9 BETA

WEB Server list

WEB Server list : Collection

ParâmetroTipoDescrição
ResultadoCollectionCollection of the available Web Server objects
História
ReleaseMudanças
18 R3Adicionado

Descrição

O comando WEB Server list retorna uma coleção de todos os objetos do servidor Web disponíveis na aplicação 4D.

Uma aplicação 4D pode conter em qualquer lugar de um a vários servidores Web:

  • um servidor Web para o banco de dados host (servidor Web padrão)
  • um servidor web para cada componente.

All available Web servers are returned by the WEB Server list command, whether they are actually running or not.

O objeto do servidor Web padrão é carregado automaticamente pelo 4D na inicialização. On the other hand, each component Web server that you want to use must be instantiated using the WEB Server command.

You can use the .name property of the Web server object to identify the project or component to which each Web server object in the list is attached.

Exemplo

Queremos saber quantos servidores rodando estão disponíveis:

 var $wSList : Collection
var $vRun : Integer

$wSList:=WEB Server list
$vRun:=$wSList.countValues(True;"isRunning")
ALERT(String($vRun)+" web server(s) running on "+String($wSList.length)+" available.")

Veja também

WEB Server
webServer.stop()

Propriedades

Número de comando1716
Thread safe