Class SpringCloudDeployment
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<SpringCloudDeployment,SpringCloudApp,com.azure.resourcemanager.appplatform.models.SpringAppDeployment>
-
- com.microsoft.azure.toolkit.lib.springcloud.SpringCloudDeployment
-
- All Implemented Interfaces:
com.microsoft.azure.toolkit.lib.common.model.AzResource<SpringCloudDeployment,SpringCloudApp,com.azure.resourcemanager.appplatform.models.SpringAppDeployment>,com.microsoft.azure.toolkit.lib.common.model.AzResourceBase,com.microsoft.azure.toolkit.lib.common.model.Refreshable
- Direct Known Subclasses:
SpringCloudDeploymentDraft
public class SpringCloudDeployment extends com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<SpringCloudDeployment,SpringCloudApp,com.azure.resourcemanager.appplatform.models.SpringAppDeployment>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResource
com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<T extends com.microsoft.azure.toolkit.lib.common.model.AzResource<T,?,R>,R extends Object>, com.microsoft.azure.toolkit.lib.common.model.AzResource.None, com.microsoft.azure.toolkit.lib.common.model.AzResource.Status
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSpringCloudDeployment(com.azure.resourcemanager.appplatform.models.SpringAppDeployment remote, SpringCloudDeploymentModule module)protectedSpringCloudDeployment(SpringCloudDeployment origin)copy constructorprotectedSpringCloudDeployment(String name, SpringCloudDeploymentModule module)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetCpu()Map<String,String>getEnvironmentVariables()IntegergetInstanceNum()List<com.azure.resourcemanager.appplatform.models.DeploymentInstance>getInstances()StringgetJvmOptions()IntegergetMemoryInGB()StringgetRuntimeVersion()List<com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<?,SpringCloudDeployment,?>>getSubModules()BooleanisActive()StringloadStatus(com.azure.resourcemanager.appplatform.models.SpringAppDeployment remote)voidrestart()voidstart()voidstop()reactor.core.publisher.Flux<String>streamLogs(String instance)reactor.core.publisher.Flux<String>streamLogs(String instance, int sinceSeconds, int tailLines, int limitBytes, boolean follow)booleanwaitUntilReady(int timeoutInSeconds)-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource
canEqual, delete, deleteFromLocal, doModify, doModify, doModifyAsync, doModifyAsync, equals, exists, getId, getModule, getName, getRemote, getResourceGroup, getResourceGroupName, getStatus, getStatusSync, getSubModule, hashCode, isDraft, isDraftForCreating, isDraftForUpdating, loadRemote, refresh, refreshRemote, remoteOptional, setRemote, setStatus, toString, update
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
SpringCloudDeployment
protected SpringCloudDeployment(@Nonnull String name, @Nonnull SpringCloudDeploymentModule module)
-
SpringCloudDeployment
protected SpringCloudDeployment(@Nonnull SpringCloudDeployment origin)
copy constructor
-
SpringCloudDeployment
protected SpringCloudDeployment(@Nonnull com.azure.resourcemanager.appplatform.models.SpringAppDeployment remote, @Nonnull SpringCloudDeploymentModule module)
-
-
Method Detail
-
start
public void start()
-
stop
public void stop()
-
restart
public void restart()
-
loadStatus
@Nonnull public String loadStatus(@Nonnull com.azure.resourcemanager.appplatform.models.SpringAppDeployment remote)
- Specified by:
loadStatusin classcom.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<SpringCloudDeployment,SpringCloudApp,com.azure.resourcemanager.appplatform.models.SpringAppDeployment>
-
getSubModules
@Nonnull public List<com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<?,SpringCloudDeployment,?>> getSubModules()
- Specified by:
getSubModulesin classcom.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<SpringCloudDeployment,SpringCloudApp,com.azure.resourcemanager.appplatform.models.SpringAppDeployment>
-
streamLogs
@Nonnull public reactor.core.publisher.Flux<String> streamLogs(String instance, int sinceSeconds, int tailLines, int limitBytes, boolean follow)
-
waitUntilReady
public boolean waitUntilReady(int timeoutInSeconds)
-
getInstances
@Nonnull public List<com.azure.resourcemanager.appplatform.models.DeploymentInstance> getInstances()
-
-