当前位置: 首页>>代码示例>>Java>>正文


Java DeploymentTaskImpl类代码示例

本文整理汇总了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));
    }
  });
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:27,代码来源:ServerConnectionImpl.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:24,代码来源:DeployToServerState.java

示例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));
    }
  });
}
 
开发者ID:consulo,项目名称:consulo,代码行数:27,代码来源:ServerConnectionImpl.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:ServerConnectionImpl.java

示例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);
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:ServersTreeStructure.java

示例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");
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:ServersTreeStructure.java

示例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;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:8,代码来源:DeployToServerState.java

示例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;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:29,代码来源:DeployToServerState.java

示例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");
    }
  }
}
 
开发者ID:consulo,项目名称:consulo,代码行数:11,代码来源:ServersTreeStructure.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ServersTreeStructure.java


注:本文中的com.intellij.remoteServer.impl.runtime.deployment.DeploymentTaskImpl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。