Search in sources :

Example 1 with AppEngineStopTask

use of com.google.cloud.tools.intellij.appengine.cloud.executor.AppEngineStopTask in project google-cloud-intellij by GoogleCloudPlatform.

the class AppEngineDeploymentRuntime method stop.

private void stop(@NotNull UndeploymentTaskCallback callback) {
    AppEngineStop stop = new AppEngineStop(appEngineHelper, loggingHandler, configuration, callback);
    final AppEngineExecutor stopRunner = new AppEngineExecutor(new AppEngineStopTask(stop, service, version));
    ProgressManager.getInstance().run(new Task.Backgroundable(appEngineHelper.getProject(), "Stop App Engine", true, null) {

        @Override
        public void run(@NotNull ProgressIndicator indicator) {
            ApplicationManager.getApplication().invokeLater(stopRunner);
        }
    });
}
Also used : AppEngineStopTask(com.google.cloud.tools.intellij.appengine.cloud.executor.AppEngineStopTask) AppEngineStopTask(com.google.cloud.tools.intellij.appengine.cloud.executor.AppEngineStopTask) Task(com.intellij.openapi.progress.Task) ProgressIndicator(com.intellij.openapi.progress.ProgressIndicator) AppEngineExecutor(com.google.cloud.tools.intellij.appengine.cloud.executor.AppEngineExecutor)

Aggregations

AppEngineExecutor (com.google.cloud.tools.intellij.appengine.cloud.executor.AppEngineExecutor)1 AppEngineStopTask (com.google.cloud.tools.intellij.appengine.cloud.executor.AppEngineStopTask)1 ProgressIndicator (com.intellij.openapi.progress.ProgressIndicator)1 Task (com.intellij.openapi.progress.Task)1