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);
}
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) };
}
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;
}
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;
}
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;
}
Aggregations