Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Servers View

Vlado Pakan edited this page Aug 23, 2013 · 7 revisions

API / Abstract

Implementation

Tests Implementation

Usage

Instantiate Servers View

ServersView serversView = new ServersView();

Open Servers View

serversView.open();

Add server

NewServerWizardDialog wizardDialog = serversView.newServer();
NewServerWizardPage newServerPage = wizardDialog.getFirstPage();
newServerPage.selectType("Basic","HTTP Server");
newServerPage.setName("TestHTTPServer");		
wizardDialog.finish();

Get server by name

Server server = serversView.getServer("TestHTTPServer");

Get all defined servers

List<Server> servers = serversView.getServers();

Manage server

To manage particular server Server class can be used

Server server = serversView.getServer("TestHTTPServer");
server.restart();

Get server status

To get particulart server status ServerLabel class can be used

ServerLabel serverLabel = serversView.getServer("TestHTTPServer").getLabel();
ServerState serverState = serverLabel.getState();
ServerPublishState serverPublishState = serverLabel.getPublishState();
Clone this wiki locally