本文整理汇总了Java中com.intellij.remoteServer.impl.runtime.deployment.DeploymentTaskImpl类的典型用法代码示例。如果您正苦于以下问题:Java DeploymentTaskImpl类的具体用法?Java DeploymentTaskImpl怎么用?Java DeploymentTaskImpl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DeploymentTaskImpl类属于com.intellij.remoteServer.impl.runtime.deployment包,在下文中一共展示了DeploymentTaskImpl类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: deploy
import com.intellij.remoteServer.impl.runtime.deployment.DeploymentTaskImpl; //导入依赖的package包/类
@Override
public void deploy(@NotNull final DeploymentTask<D> task, @NotNull final ParameterizedRunnable<String> onDeploymentStarted) {
connectIfNeeded(new ConnectionCallbackBase<D>() {
@Override
public void connected(@NotNull ServerRuntimeInstance<D> instance) {
LocalDeploymentImpl deployment = new LocalDeploymentImpl(instance,
ServerConnectionImpl.this,
DeploymentStatus.DEPLOYING,
null,
null,
task);
String deploymentName = deployment.getName();
synchronized (myLocalDeployments) {
myLocalDeployments.put(deploymentName, deployment);
}
DeploymentLogManagerImpl logManager = new DeploymentLogManagerImpl(task.getProject(), new ChangeListener())
.withMainHandlerVisible(true);
LoggingHandlerImpl handler = logManager.getMainLoggingHandler();
myLogManagers.put(deploymentName, logManager);
handler.printlnSystemMessage("Deploying '" + deploymentName + "'...");
onDeploymentStarted.run(deploymentName);
instance
.deploy(task, logManager, new DeploymentOperationCallbackImpl(deploymentName, (DeploymentTaskImpl<D>)task, handler, deployment));
}
});
}
示例2: execute
import com.intellij.remoteServer.impl.runtime.deployment.DeploymentTaskImpl; //导入依赖的package包/类
@Nullable
@Override
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
final ServerConnection connection = ServerConnectionManager.getInstance().getOrCreateConnection(myServer);
final Project project = myEnvironment.getProject();
RemoteServersView.getInstance(project).showServerConnection(connection);
final DebugConnector<?,?> debugConnector;
if (DefaultDebugExecutor.getDebugExecutorInstance().equals(executor)) {
debugConnector = myServer.getType().createDebugConnector();
}
else {
debugConnector = null;
}
connection.deploy(new DeploymentTaskImpl(mySource, myConfiguration, project, debugConnector, myEnvironment),
new ParameterizedRunnable<String>() {
@Override
public void run(String s) {
RemoteServersView.getInstance(project).showDeployment(connection, s);
}
});
return null;
}
示例3: deploy
import com.intellij.remoteServer.impl.runtime.deployment.DeploymentTaskImpl; //导入依赖的package包/类
@Override
public void deploy(@Nonnull final DeploymentTask<D> task, @Nonnull final ParameterizedRunnable<String> onDeploymentStarted) {
connectIfNeeded(new ConnectionCallbackBase<D>() {
@Override
public void connected(@Nonnull ServerRuntimeInstance<D> instance) {
DeploymentSource source = task.getSource();
String deploymentName = instance.getDeploymentName(source);
DeploymentImpl deployment;
synchronized (myLocalDeployments) {
deployment = new DeploymentImpl(deploymentName, DeploymentStatus.DEPLOYING, null, null, task);
myLocalDeployments.put(deploymentName, deployment);
}
DeploymentLogManagerImpl logManager = new DeploymentLogManagerImpl(task.getProject(), new Runnable() {
@Override
public void run() {
myEventDispatcher.queueDeploymentsChanged(ServerConnectionImpl.this);
}
});
LoggingHandlerImpl handler = logManager.getMainLoggingHandler();
myLogManagers.put(deploymentName, logManager);
handler.printlnSystemMessage("Deploying '" + deploymentName + "'...");
onDeploymentStarted.run(deploymentName);
instance.deploy(task, logManager, new DeploymentOperationCallbackImpl(deploymentName, (DeploymentTaskImpl<D>)task, handler, deployment));
}
});
}
示例4: DeploymentOperationCallbackImpl
import com.intellij.remoteServer.impl.runtime.deployment.DeploymentTaskImpl; //导入依赖的package包/类
public DeploymentOperationCallbackImpl(String deploymentName,
DeploymentTaskImpl<D> deploymentTask,
LoggingHandlerImpl handler,
DeploymentImpl deployment) {
myDeploymentName = deploymentName;
myDeploymentTask = deploymentTask;
myLoggingHandler = handler;
myDeployment = deployment;
}
示例5: doDeploy
import com.intellij.remoteServer.impl.runtime.deployment.DeploymentTaskImpl; //导入依赖的package包/类
public void doDeploy(Executor executor) {
DeploymentTask<?> deploymentTask = getDeployment().getDeploymentTask();
if (deploymentTask != null) {
ExecutionEnvironment environment = ((DeploymentTaskImpl)deploymentTask).getExecutionEnvironment();
RunnerAndConfigurationSettings settings = environment.getRunnerAndConfigurationSettings();
if (settings != null) {
ProgramRunnerUtil.executeConfiguration(doGetProject(), settings, executor);
}
}
}
示例6: editConfiguration
import com.intellij.remoteServer.impl.runtime.deployment.DeploymentTaskImpl; //导入依赖的package包/类
public void editConfiguration() {
DeploymentTask<?> task = getDeployment().getDeploymentTask();
if (task != null) {
RunnerAndConfigurationSettings settings = ((DeploymentTaskImpl)task).getExecutionEnvironment().getRunnerAndConfigurationSettings();
if (settings != null) {
RunDialog.editConfiguration(doGetProject(), settings, "Edit Deployment Configuration");
}
}
}
示例7: execute
import com.intellij.remoteServer.impl.runtime.deployment.DeploymentTaskImpl; //导入依赖的package包/类
@Nullable
@Override
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
ServerConnection connection = ServerConnectionManager.getInstance().getOrCreateConnection(myServer);
connection.deploy(new DeploymentTaskImpl(mySource, myConfiguration, myEnvironment.getProject()));
return null;
}
示例8: execute
import com.intellij.remoteServer.impl.runtime.deployment.DeploymentTaskImpl; //导入依赖的package包/类
@javax.annotation.Nullable
@Override
public ExecutionResult execute(Executor executor, @Nonnull ProgramRunner runner) throws ExecutionException {
final ServerConnection connection = ServerConnectionManager.getInstance().getOrCreateConnection(myServer);
final Project project = myEnvironment.getProject();
RemoteServersView.getInstance(project).showServerConnection(connection);
final DebugConnector<?,?> debugConnector;
if (DefaultDebugExecutor.getDebugExecutorInstance().equals(executor)) {
debugConnector = myServer.getType().createDebugConnector();
}
else {
debugConnector = null;
}
connection.computeDeployments(new Runnable() {
@Override
public void run() {
connection.deploy(new DeploymentTaskImpl(mySource, myConfiguration, project, debugConnector, myEnvironment),
new ParameterizedRunnable<String>() {
@Override
public void run(String s) {
RemoteServersView.getInstance(project).showDeployment(connection, s);
}
});
}
});
return null;
}
示例9: editConfiguration
import com.intellij.remoteServer.impl.runtime.deployment.DeploymentTaskImpl; //导入依赖的package包/类
@Override
public void editConfiguration() {
DeploymentTask<?> task = getValue().getDeploymentTask();
if (task != null) {
RunnerAndConfigurationSettings settings = ((DeploymentTaskImpl)task).getExecutionEnvironment().getRunnerAndConfigurationSettings();
if (settings != null) {
RunDialog.editConfiguration(doGetProject(), settings, "Edit Deployment Configuration");
}
}
}
示例10: isDeployActionVisible
import com.intellij.remoteServer.impl.runtime.deployment.DeploymentTaskImpl; //导入依赖的package包/类
@Override
public boolean isDeployActionVisible() {
DeploymentTask<?> deploymentTask = getValue().getDeploymentTask();
return deploymentTask instanceof DeploymentTaskImpl<?> && ((DeploymentTaskImpl)deploymentTask).getExecutionEnvironment().getRunnerAndConfigurationSettings() != null;
}