當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。