本文整理匯總了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;
}