Search in sources :

Example 6 with ServerSettings

use of com.centurylink.mdw.plugin.project.model.ServerSettings in project mdw-designer by CenturyLinkCloud.

the class ProjectMonitoringSection method launchFilePanel.

private void launchFilePanel() {
    ServerSettings ss = project.getServerSettings();
    String path;
    if (project.checkRequiredVersion(5, 5))
        path = project.getMdwHubContextRoot() + "/system/filepanel/index.jsf";
    else
        path = project.getWebContextRoot() + "/filepanel/index.jsf";
    Program.launch("http://" + ss.getHost() + ":" + ss.getPort() + "/" + path);
}
Also used : ServerSettings(com.centurylink.mdw.plugin.project.model.ServerSettings)

Example 7 with ServerSettings

use of com.centurylink.mdw.plugin.project.model.ServerSettings in project mdw-designer by CenturyLinkCloud.

the class RemoteHostInfoPage method getStatuses.

/**
 * @see WizardPage#getStatuses()
 */
@Override
public IStatus[] getStatuses() {
    if (isPageComplete())
        return null;
    String msg = null;
    ServerSettings wlSettings = getProject().getServerSettings();
    if (containsWhitespace(wlSettings.getHost()))
        msg = "Invalid value for Remote Host";
    if (msg == null)
        return null;
    return new IStatus[] { new Status(IStatus.ERROR, getPluginId(), 0, msg, null) };
}
Also used : Status(org.eclipse.core.runtime.Status) IStatus(org.eclipse.core.runtime.IStatus) IStatus(org.eclipse.core.runtime.IStatus) ServerSettings(com.centurylink.mdw.plugin.project.model.ServerSettings)

Example 8 with ServerSettings

use of com.centurylink.mdw.plugin.project.model.ServerSettings 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)

Example 9 with ServerSettings

use of com.centurylink.mdw.plugin.project.model.ServerSettings in project mdw-designer by CenturyLinkCloud.

the class ServerSettingsPage method getStatuses.

/**
 * @see WizardPage#getStatuses()
 */
public IStatus[] getStatuses() {
    String msg = null;
    ServerSettings serverSettings = getProject().getServerSettings();
    String serverHomeMsg = serverHomeSpecializedCheck(serverSettings.getHome());
    String serverLocMsg = serverLocSpecializedCheck(serverSettings.getServerLoc());
    if (!checkDir(serverHomeTextField.getText().trim()))
        msg = "Please enter a valid directory for " + getServerName() + " Home";
    else if (containsWhitespace(serverHomeTextField.getText().trim()))
        msg = getServerName() + " Home must not contain whitespace characters";
    else if (serverHomeMsg != null)
        msg = serverHomeMsg;
    else if (!checkDir(jdkHomeTextField.getText().trim()))
        msg = "Please enter a valid directory for JDK Home";
    else if (containsWhitespace(jdkHomeTextField.getText().trim()))
        msg = "JDK Home must not contain whitespace characters";
    else if (serverSettings.getJdkHome() != null && serverSettings.getJdkHome().length() != 0 && !checkFile(serverSettings.getJdkHome() + "/jre/lib/rt.jar"))
        msg = "JDK Home must contain jre/lib/rt.jar";
    else if (containsWhitespace(serverSettings.getHost()))
        msg = "Invalid value for " + getServerName() + " Server Host";
    else if (serverSettings.getPort() <= 0)
        msg = "Invalid value for " + getServerName() + " Server Port";
    else if (!checkDir(serverSettings.getServerLoc()) && serverLocTextField != null)
        msg = "Please enter a valid directory for " + getServerName() + " " + getServerLocationLabel();
    else if (containsWhitespace(serverSettings.getServerLoc()))
        msg = getServerName() + " " + getServerLocationLabel() + " must not contain whitespace characters";
    else if (serverLocMsg != null)
        msg = serverLocMsg;
    if (msg == null)
        return null;
    IStatus[] is = { new Status(IStatus.ERROR, getPluginId(), 0, msg, null) };
    return is;
}
Also used : IStatus(org.eclipse.core.runtime.IStatus) Status(org.eclipse.core.runtime.Status) IStatus(org.eclipse.core.runtime.IStatus) ServerSettings(com.centurylink.mdw.plugin.project.model.ServerSettings)

Example 10 with ServerSettings

use of com.centurylink.mdw.plugin.project.model.ServerSettings in project mdw-designer by CenturyLinkCloud.

the class FuseServerBehavior method getServerSettings.

@Override
ServerSettings getServerSettings() {
    ServerSettings serverSettings = super.getServerSettings();
    serverSettings.setContainerType(ContainerType.Fuse);
    serverSettings.setJavaOptions(getServer().getAttribute(JAVA_OPTIONS, DEFAULT_JAVA_OPTS));
    return serverSettings;
}
Also used : ServerSettings(com.centurylink.mdw.plugin.project.model.ServerSettings)

Aggregations

ServerSettings (com.centurylink.mdw.plugin.project.model.ServerSettings)19 WorkflowProject (com.centurylink.mdw.plugin.project.model.WorkflowProject)7 JdbcDataSource (com.centurylink.mdw.plugin.project.model.JdbcDataSource)3 Activity (com.centurylink.mdw.plugin.designer.model.Activity)2 AdapterActivity (com.centurylink.mdw.plugin.designer.model.Activity.AdapterActivity)2 EvaluatorActivity (com.centurylink.mdw.plugin.designer.model.Activity.EvaluatorActivity)2 StartActivity (com.centurylink.mdw.plugin.designer.model.Activity.StartActivity)2 ExternalEvent (com.centurylink.mdw.plugin.designer.model.ExternalEvent)2 WorkflowProcess (com.centurylink.mdw.plugin.designer.model.WorkflowProcess)2 ActivityLaunchShortcut (com.centurylink.mdw.plugin.launch.ActivityLaunchShortcut)2 ExternalEventLaunchShortcut (com.centurylink.mdw.plugin.launch.ExternalEventLaunchShortcut)2 ProcessLaunchShortcut (com.centurylink.mdw.plugin.launch.ProcessLaunchShortcut)2 VcsRepository (com.centurylink.mdw.plugin.project.model.VcsRepository)2 ServerConfigurator (com.centurylink.mdw.plugin.server.ServerConfigurator)2 ServerRunner (com.centurylink.mdw.plugin.server.ServerRunner)2 GeneralSecurityException (java.security.GeneralSecurityException)2 IStatus (org.eclipse.core.runtime.IStatus)2 NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)2 Status (org.eclipse.core.runtime.Status)2 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)2