public class DeployToServerRunConfiguration<S extends ServerConfiguration,D extends DeploymentConfiguration> extends RunConfigurationBase<Element> implements LocatableConfiguration
| Modifier and Type | Class and Description |
|---|---|
static class |
DeployToServerRunConfiguration.ConfigurationState |
RunConfiguration.RestartSingletonResult| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SETTINGS_ELEMENT |
DATA_KEY| Constructor and Description |
|---|
DeployToServerRunConfiguration(Project project,
ConfigurationFactory factory,
java.lang.String name,
ServerType<S> serverType,
DeploymentConfigurator<D,S> deploymentConfigurator) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkConfiguration()
Checks whether the run configuration settings are valid.
|
RunConfiguration |
clone()
Clones the run configuration.
|
SettingsEditor<DeployToServerRunConfiguration> |
getConfigurationEditor()
Returns the UI control for editing the run configuration settings.
|
D |
getDeploymentConfiguration() |
DeploymentSource |
getDeploymentSource() |
java.lang.String |
getServerName() |
ServerType<S> |
getServerType() |
RunProfileState |
getState(Executor executor,
ExecutionEnvironment env)
Prepares for executing a specific instance of the run configuration.
|
boolean |
isGeneratedName()
Checks if the current name for the run configuration was automatically generated.
|
void |
onNewConfigurationCreated()
Called when configuration created via UI (Add Configuration).
|
void |
readExternal(Element element) |
void |
setDeploymentConfiguration(D deploymentConfiguration) |
void |
setDeploymentSource(DeploymentSource deploymentSource) |
void |
setServerName(java.lang.String serverName) |
java.lang.String |
suggestedName()
Returns the default name for the run configuration based on its settings (such as the name of class or file to run).
|
void |
writeExternal(Element element) |
addLogFile, addLogFile, addPredefinedLogFile, canRunOn, checkRunnerSettings, checkSettingsBeforeRun, collectOutputFromProcessHandler, createAdditionalTabComponents, customizeLogConsole, equals, excludeCompileBeforeLaunchOption, getAllLogFiles, getBeforeRunTasks, getDefaultOptionsClass, getFactory, getIcon, getLogFiles, getName, getOptions, getOptionsClass, getOptionsForPredefinedLogFile, getOutputFilePath, getPredefinedLogFiles, getProject, getState, hashCode, isAllowRunningInParallel, isNewSerializationUsed, isSaveOutputToFile, isShowConsoleOnStdErr, isShowConsoleOnStdOut, loadState, onConfigurationCopied, removeAllLogFiles, removeAllPredefinedLogFiles, setAllowRunningInParallel, setBeforeRunTasks, setFileOutputPath, setName, setOptionsFromConfigurationFile, setSaveOutputToFile, setShowConsoleOnStdErr, setShowConsoleOnStdOut, toStringchangeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapfinalize, getClass, notify, notifyAll, wait, wait, waitcreateRunnerSettings, getBeforeRunTasks, getFactory, getId, getPresentableType, getProject, getRunnerSettingsEditor, getType, getUniqueID, hideDisabledExecutorButtons, isAllowRunningInParallel, restartSingleton, setAllowRunningInParallel, setBeforeRunTasks, setNamegetIcon, getNamepublic static final java.lang.String SETTINGS_ELEMENT
public DeployToServerRunConfiguration(Project project, ConfigurationFactory factory, java.lang.String name, ServerType<S> serverType, DeploymentConfigurator<D,S> deploymentConfigurator)
public ServerType<S> getServerType()
public java.lang.String getServerName()
public SettingsEditor<DeployToServerRunConfiguration> getConfigurationEditor()
RunConfigurationCheckableRunConfigurationEditor. The returned object
can also implement SettingsEditorGroup if the settings it provides need to be displayed in
multiple tabs.getConfigurationEditor in interface RunConfigurationpublic RunProfileState getState(Executor executor, ExecutionEnvironment env) throws ExecutionException
RunProfilegetState in interface RunProfileexecutor - the execution mode selected by the user (run, debug, profile etc.)env - the environment object containing additional settings for executing the configuration.ExecutionExceptionpublic void checkConfiguration()
throws RuntimeConfigurationException
RunConfigurationcheckConfiguration in interface RunConfigurationRuntimeConfigurationException - if the configuration settings contain a non-fatal problem which the user should be warned about
but the execution should still be allowed.RuntimeConfigurationError - if the configuration settings contain a fatal problem which makes it impossible
to execute the run configuration.public void setServerName(java.lang.String serverName)
public DeploymentSource getDeploymentSource()
public void setDeploymentSource(DeploymentSource deploymentSource)
public D getDeploymentConfiguration()
public void setDeploymentConfiguration(D deploymentConfiguration)
public boolean isGeneratedName()
LocatableConfigurationisGeneratedName in interface LocatableConfigurationLocatableConfiguration.suggestedName(), false if it was manually entered or changed by the user.public java.lang.String suggestedName()
LocatableConfigurationsuggestedName in interface LocatableConfigurationpublic void readExternal(Element element)
throws InvalidDataException
readExternal in interface RunConfigurationreadExternal in class RunConfigurationBase<Element>InvalidDataExceptionpublic void writeExternal(Element element)
throws WriteExternalException
writeExternal in interface RunConfigurationwriteExternal in class RunConfigurationBase<Element>WriteExternalExceptionpublic RunConfiguration clone()
RunConfigurationclone in interface RunConfigurationclone in class RunConfigurationBase<Element>public void onNewConfigurationCreated()
RunConfigurationBaseonNewConfigurationCreated in interface ConfigurationCreationListeneronNewConfigurationCreated in class RunConfigurationBase<Element>