Search in sources :

Example 1 with ServerStatusChecker

use of com.centurylink.mdw.plugin.server.ServerStatusChecker in project mdw-designer by CenturyLinkCloud.

the class ServerConnectionsPropertyPage method createContents.

@Override
protected Control createContents(Composite parent) {
    noDefaultAndApplyButton();
    initializeWorkflowProject();
    Composite composite = createComposite(parent);
    ServerSettings serverSettings = getProject().getServerSettings();
    workingCopy = new ServerSettings(serverSettings);
    configurator = ServerConfigurator.Factory.create(workingCopy);
    createContainerControls(composite);
    addSeparator(composite);
    createServerControls(composite);
    addSeparator(composite);
    createServerStartupControls(composite);
    if (serverSettings.isJavaEE()) {
        addSeparator(composite);
        createDeployControls(composite);
    }
    if (serverStatusThread != null)
        serverStatusThread.interrupt();
    statusCheck = new ServerStatusChecker(getProject().getServerSettings());
    statusCheck.addStatusListener(this);
    serverStatusThread = new Thread(statusCheck);
    serverStatusThread.start();
    return composite;
}
Also used : ServerStatusChecker(com.centurylink.mdw.plugin.server.ServerStatusChecker) Composite(org.eclipse.swt.widgets.Composite) ServerSettings(com.centurylink.mdw.plugin.project.model.ServerSettings)

Aggregations

ServerSettings (com.centurylink.mdw.plugin.project.model.ServerSettings)1 ServerStatusChecker (com.centurylink.mdw.plugin.server.ServerStatusChecker)1 Composite (org.eclipse.swt.widgets.Composite)1