Class DeploySpringCloudAppTask
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.operation.OperationBase
-
- com.microsoft.azure.toolkit.lib.common.task.AzureTask<SpringCloudDeployment>
-
- com.microsoft.azure.toolkit.lib.springcloud.task.DeploySpringCloudAppTask
-
- All Implemented Interfaces:
com.microsoft.azure.toolkit.lib.common.operation.Operation
public class DeploySpringCloudAppTask extends com.microsoft.azure.toolkit.lib.common.task.AzureTask<SpringCloudDeployment>
-
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description private SpringCloudAppConfigconfigstatic StringDEFAULT_DEPLOYMENT_NAMEprivate SpringCloudDeploymentdeploymentprivate reactor.core.Disposabledisposableprivate static StringGET_APP_STATUS_TIMEOUTprivate booleanopenStreamingLogOnFailureprivate static StringSTART_APPprivate List<com.microsoft.azure.toolkit.lib.common.task.AzureTask<?>>subTasksprivate static intTIMEOUT_IN_SECONDSprivate booleanwaitDeploymentComplete
-
Constructor Summary
Constructors Constructor Description DeploySpringCloudAppTask(SpringCloudAppConfig appConfig)DeploySpringCloudAppTask(SpringCloudAppConfig appConfig, boolean openStreamingLogOnFailure, boolean waitDeploymentComplete)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpringCloudDeploymentdoExecute()private List<com.microsoft.azure.toolkit.lib.common.task.AzureTask<?>>initTasks()private voidstartApp()private voidstartStreamingLog(boolean follow)private voidstopStreamingLog()-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.task.AzureTask
execute, getBackgrounded, getBody, getDescription, getExecutionId, getId, getModality, getMonitor, getProject, getType, isBackgroundable, isCancellable, setBackgroundable, setBackgrounded, setMonitor, setType, toString
-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.operation.OperationBase
getContext, getParent, setParent
-
-
-
-
Field Detail
-
DEFAULT_DEPLOYMENT_NAME
public static final String DEFAULT_DEPLOYMENT_NAME
- See Also:
- Constant Field Values
-
config
private final SpringCloudAppConfig config
-
subTasks
@Nonnull private final List<com.microsoft.azure.toolkit.lib.common.task.AzureTask<?>> subTasks
-
deployment
private SpringCloudDeployment deployment
-
openStreamingLogOnFailure
private final boolean openStreamingLogOnFailure
-
waitDeploymentComplete
private final boolean waitDeploymentComplete
-
TIMEOUT_IN_SECONDS
private static final int TIMEOUT_IN_SECONDS
- See Also:
- Constant Field Values
-
GET_APP_STATUS_TIMEOUT
private static final String GET_APP_STATUS_TIMEOUT
- See Also:
- Constant Field Values
-
START_APP
private static final String START_APP
- See Also:
- Constant Field Values
-
disposable
private reactor.core.Disposable disposable
-
-
Constructor Detail
-
DeploySpringCloudAppTask
public DeploySpringCloudAppTask(SpringCloudAppConfig appConfig)
-
DeploySpringCloudAppTask
public DeploySpringCloudAppTask(SpringCloudAppConfig appConfig, boolean openStreamingLogOnFailure, boolean waitDeploymentComplete)
-
-
Method Detail
-
initTasks
@Nonnull private List<com.microsoft.azure.toolkit.lib.common.task.AzureTask<?>> initTasks()
-
doExecute
public SpringCloudDeployment doExecute() throws Exception
- Overrides:
doExecutein classcom.microsoft.azure.toolkit.lib.common.task.AzureTask<SpringCloudDeployment>- Throws:
Exception
-
startStreamingLog
private void startStreamingLog(boolean follow)
-
stopStreamingLog
private void stopStreamingLog()
-
startApp
private void startApp()
-
-