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


Java DeploymentRuntime类代码示例

本文整理汇总了Java中com.intellij.remoteServer.runtime.deployment.DeploymentRuntime的典型用法代码示例。如果您正苦于以下问题:Java DeploymentRuntime类的具体用法?Java DeploymentRuntime怎么用?Java DeploymentRuntime使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


DeploymentRuntime类属于com.intellij.remoteServer.runtime.deployment包,在下文中一共展示了DeploymentRuntime类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: processTerminated

import com.intellij.remoteServer.runtime.deployment.DeploymentRuntime; //导入依赖的package包/类
@Override
public void processTerminated(ProcessEvent event) {
  int exitCode = event.getExitCode();
  if (exitCode == 0) {
    myCallback.succeeded(new DeploymentRuntime() {
      @Override
      public boolean isUndeploySupported() {
        return false;
      }

      @Override
      public void undeploy(@NotNull UndeploymentTaskCallback callback) {
      }
    });
  }
  else {
    myCallback.errorOccurred("Process terminated with exit code " + exitCode);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:20,代码来源:AppEngineUploader.java

示例2: getApplicationRuntime

import com.intellij.remoteServer.runtime.deployment.DeploymentRuntime; //导入依赖的package包/类
protected T getApplicationRuntime(DeploymentNode node) {
  Deployment deployment = getDeployment(node);
  if (deployment == null) {
    return null;
  }
  DeploymentRuntime deploymentRuntime = deployment.getRuntime();
  return ObjectUtils.tryCast(deploymentRuntime, getApplicationRuntimeClass());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:ApplicationActionBase.java

示例3: DeploymentImpl

import com.intellij.remoteServer.runtime.deployment.DeploymentRuntime; //导入依赖的package包/类
public DeploymentImpl(@NotNull ServerConnectionImpl<D> connection,
                      @NotNull String name,
                      @NotNull DeploymentStatus status,
                      @Nullable String statusText,
                      @Nullable DeploymentRuntime runtime,
                      @Nullable DeploymentTask<D> deploymentTask,
                      @Nullable String group) {
  myConnection = connection;
  myName = name;
  myDeploymentTask = deploymentTask;
  myGroup = group;
  myState = new DeploymentState(status, statusText, runtime);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:DeploymentImpl.java

示例4: changeState

import com.intellij.remoteServer.runtime.deployment.DeploymentRuntime; //导入依赖的package包/类
public boolean changeState(@NotNull DeploymentStatus oldStatus, @NotNull DeploymentStatus newStatus, @Nullable String statusText,
                           @Nullable DeploymentRuntime runtime) {
  if (myState.getStatus() == oldStatus) {
    myState = new DeploymentState(newStatus, statusText, runtime);
    return true;
  }
  return false;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:DeploymentImpl.java

示例5: LocalDeploymentImpl

import com.intellij.remoteServer.runtime.deployment.DeploymentRuntime; //导入依赖的package包/类
public LocalDeploymentImpl(@NotNull ServerRuntimeInstance<D> instance,
                           @NotNull ServerConnectionImpl<D> connection,
                           @NotNull DeploymentStatus status,
                           @Nullable String statusText,
                           @Nullable DeploymentRuntime runtime,
                           @NotNull DeploymentTask<D> deploymentTask) {
  super(connection,
        instance.getDeploymentName(deploymentTask.getSource(), deploymentTask.getConfiguration()),
        status,
        statusText,
        runtime,
        deploymentTask,
        instance.getDeploymentGroup(deploymentTask.getSource(), deploymentTask.getConfiguration()));
  myServerInstance = instance;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:16,代码来源:LocalDeploymentImpl.java

示例6: setRemoteDeployment

import com.intellij.remoteServer.runtime.deployment.DeploymentRuntime; //导入依赖的package包/类
public void setRemoteDeployment(DeploymentImpl remoteDeployment) {
  myRemoteDeployment = remoteDeployment;
  String presentableName = null;
  if (remoteDeployment != null) {
    DeploymentRuntime deploymentRuntime = remoteDeployment.getRuntime();
    DeploymentTask<D> task = getDeploymentTask();
    if (deploymentRuntime != null) {
      presentableName = myServerInstance.getRuntimeDeploymentName(deploymentRuntime, task.getSource(), task.getConfiguration());
    }
  }
  setPresentableName(presentableName);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:LocalDeploymentImpl.java

示例7: changeState

import com.intellij.remoteServer.runtime.deployment.DeploymentRuntime; //导入依赖的package包/类
@Override
public boolean changeState(@NotNull DeploymentStatus oldStatus,
                           @NotNull DeploymentStatus newStatus,
                           @Nullable String statusText,
                           @Nullable DeploymentRuntime runtime) {
  boolean result = super.changeState(oldStatus, newStatus, statusText, runtime);
  if (result && myRemoteDeployment != null) {
    myRemoteDeployment.changeState(myRemoteDeployment.getStatus(), newStatus, statusText, myRemoteDeployment.getRuntime());
  }
  return result;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:LocalDeploymentImpl.java

示例8: undeploy

import com.intellij.remoteServer.runtime.deployment.DeploymentRuntime; //导入依赖的package包/类
@Override
public void undeploy() {
  DeploymentRuntime runtime = getDeployment().getRuntime();
  if (runtime != null) {
    getConnection().undeploy(getDeployment(), runtime);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:ServersTreeStructure.java

示例9: wrapCallbackForUsageTracking

import com.intellij.remoteServer.runtime.deployment.DeploymentRuntime; //导入依赖的package包/类
@NotNull
private DeploymentOperationCallback wrapCallbackForUsageTracking(
    final DeploymentOperationCallback deploymentCallback, AppEngineEnvironment environment) {

  StringBuilder labelBuilder = new StringBuilder();
  if (environment == AppEngineEnvironment.APP_ENGINE_STANDARD) {
    labelBuilder.append("standard");
  } else {
    labelBuilder.append("flex");
  }
  final String eventLabel = labelBuilder.toString();

  return new DeploymentOperationCallback() {
    @Override
    public Deployment succeeded(@NotNull DeploymentRuntime deploymentRuntime) {
      UsageTrackerProvider.getInstance()
          .trackEvent(GctTracking.APP_ENGINE_DEPLOY_SUCCESS)
          .addMetadata(GctTracking.METADATA_LABEL_KEY, eventLabel)
          .ping();
      return deploymentCallback.succeeded(deploymentRuntime);
    }

    @Override
    public void errorOccurred(@NotNull String errorMessage) {
      UsageTrackerProvider.getInstance()
          .trackEvent(GctTracking.APP_ENGINE_DEPLOY_FAIL)
          .addMetadata(GctTracking.METADATA_LABEL_KEY, eventLabel)
          .addMetadata(GctTracking.METADATA_MESSAGE_KEY, errorMessage)
          .ping();
      deploymentCallback.errorOccurred(errorMessage);
    }
  };
}
 
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-intellij,代码行数:34,代码来源:CloudSdkAppEngineHelper.java

示例10: changeState

import com.intellij.remoteServer.runtime.deployment.DeploymentRuntime; //导入依赖的package包/类
public boolean changeState(@Nonnull DeploymentStatus oldStatus, @Nonnull DeploymentStatus newStatus, @Nullable String statusText,
                           @Nullable DeploymentRuntime runtime) {
  if (myState.getStatus() == oldStatus) {
    myState = new DeploymentState(newStatus, statusText, runtime);
    return true;
  }
  return false;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:9,代码来源:DeploymentImpl.java

示例11: undeploy

import com.intellij.remoteServer.runtime.deployment.DeploymentRuntime; //导入依赖的package包/类
@Override
public void undeploy() {
  DeploymentRuntime runtime = getValue().getRuntime();
  if (runtime != null) {
    getConnection().undeploy(getValue(), runtime);
  }
}
 
开发者ID:consulo,项目名称:consulo,代码行数:8,代码来源:ServersTreeStructure.java

示例12: getRuntime

import com.intellij.remoteServer.runtime.deployment.DeploymentRuntime; //导入依赖的package包/类
@Nullable
DeploymentRuntime getRuntime();
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:3,代码来源:Deployment.java

示例13: getRuntime

import com.intellij.remoteServer.runtime.deployment.DeploymentRuntime; //导入依赖的package包/类
public DeploymentRuntime getRuntime() {
  return myState.getRuntime();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:DeploymentImpl.java

示例14: DeploymentState

import com.intellij.remoteServer.runtime.deployment.DeploymentRuntime; //导入依赖的package包/类
private DeploymentState(@NotNull DeploymentStatus status, @Nullable String statusText, @Nullable DeploymentRuntime runtime) {
  myStatus = status;
  myStatusText = statusText;
  myRuntime = runtime;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:DeploymentImpl.java

示例15: isUndeployActionEnabled

import com.intellij.remoteServer.runtime.deployment.DeploymentRuntime; //导入依赖的package包/类
@Override
public boolean isUndeployActionEnabled() {
  DeploymentRuntime runtime = getDeployment().getRuntime();
  return runtime != null && runtime.isUndeploySupported();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ServersTreeStructure.java


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