本文整理汇总了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);
}
}
示例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());
}
示例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);
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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);
}
}
示例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);
}
};
}
示例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;
}
示例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);
}
}
示例12: getRuntime
import com.intellij.remoteServer.runtime.deployment.DeploymentRuntime; //导入依赖的package包/类
@Nullable
DeploymentRuntime getRuntime();
示例13: getRuntime
import com.intellij.remoteServer.runtime.deployment.DeploymentRuntime; //导入依赖的package包/类
public DeploymentRuntime getRuntime() {
return myState.getRuntime();
}
示例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;
}
示例15: isUndeployActionEnabled
import com.intellij.remoteServer.runtime.deployment.DeploymentRuntime; //导入依赖的package包/类
@Override
public boolean isUndeployActionEnabled() {
DeploymentRuntime runtime = getDeployment().getRuntime();
return runtime != null && runtime.isUndeploySupported();
}