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,com.microsoft.azure.toolkit.lib.common.model.Refreshable,com.microsoft.azure.toolkit.lib.servicelinker.ServiceLinkerConsumer
- Direct Known Subclasses:
SpringCloudDeploymentDraft
public class SpringCloudDeployment extends com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<SpringCloudDeployment,SpringCloudApp,com.azure.resourcemanager.appplatform.models.SpringAppDeployment> implements com.microsoft.azure.toolkit.lib.servicelinker.ServiceLinkerConsumer
-
-
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,R extends Object>, com.microsoft.azure.toolkit.lib.common.model.AzResource.FormalStatus, com.microsoft.azure.toolkit.lib.common.model.AzResource.None, com.microsoft.azure.toolkit.lib.common.model.AzResource.Status
-
-
Field Summary
Fields Modifier and Type Field Description private SpringCloudAppInstanceModuleinstanceModuleprivate com.microsoft.azure.toolkit.lib.servicelinker.ServiceLinkerModulelinkerModuleprivate booleanremoteDebuggingEnabled
-
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 voiddisableRemoteDebugging()voidenableRemoteDebugging(int port)IntegergetCapacity()DoublegetCpu()Map<String,String>getEnvironmentVariables()List<SpringCloudAppInstance>getInstances()StringgetJvmOptions()SpringCloudAppInstancegetLatestInstance()DoublegetMemoryInGB()intgetRemoteDebuggingPort()StringgetRuntimeVersion()com.microsoft.azure.toolkit.lib.servicelinker.ServiceLinkerModulegetServiceLinkerModule()List<com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<?,?,?>>getSubModules()BooleanisActive()booleanisRemoteDebuggingEnabled()private booleanisRemoteDebuggingSupported()StringloadStatus(com.azure.resourcemanager.appplatform.models.SpringAppDeployment remote)voidrestart()voidsetStatus(String status)voidstart()voidstop()protected voidupdateAdditionalProperties(com.azure.resourcemanager.appplatform.models.SpringAppDeployment newRemote, com.azure.resourcemanager.appplatform.models.SpringAppDeployment oldRemote)private voidvalidateRemoteDebuggingSupport()booleanwaitUntilReady(int timeoutInSeconds)-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource
canEqual, delete, deleteFromCache, doModify, doModify, equals, exists, getId, getModule, getName, getParent, getRemote, getResourceGroup, getResourceGroupName, getStatus, getSubModule, hashCode, invalidateCache, isAuthRequired, isDraft, isDraftForCreating, isDraftForUpdating, loadRemote, refresh, refreshRemoteFromAzure, reloadStatus, remoteOptional, setRemote, toString, update
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResource
delete, exists, getFormalStatus, getFormalStatus, getFullResourceType, getId, getModule, getName, getPortalUrl, getResourceGroupName, getResourceTypeName, getStatus, getStatus, getSubscription, getSubscriptionId, id, name, refresh
-
-
-
-
Field Detail
-
instanceModule
@Nonnull private final SpringCloudAppInstanceModule instanceModule
-
linkerModule
private final com.microsoft.azure.toolkit.lib.servicelinker.ServiceLinkerModule linkerModule
-
remoteDebuggingEnabled
private boolean remoteDebuggingEnabled
-
-
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<?,?,?>> getSubModules()
- Specified by:
getSubModulesin classcom.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<SpringCloudDeployment,SpringCloudApp,com.azure.resourcemanager.appplatform.models.SpringAppDeployment>
-
updateAdditionalProperties
protected void updateAdditionalProperties(com.azure.resourcemanager.appplatform.models.SpringAppDeployment newRemote, com.azure.resourcemanager.appplatform.models.SpringAppDeployment oldRemote)- Overrides:
updateAdditionalPropertiesin classcom.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<SpringCloudDeployment,SpringCloudApp,com.azure.resourcemanager.appplatform.models.SpringAppDeployment>
-
waitUntilReady
public boolean waitUntilReady(int timeoutInSeconds)
-
getInstances
public List<SpringCloudAppInstance> getInstances()
-
setStatus
public void setStatus(@Nonnull String status)
- Overrides:
setStatusin classcom.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<SpringCloudDeployment,SpringCloudApp,com.azure.resourcemanager.appplatform.models.SpringAppDeployment>
-
enableRemoteDebugging
public void enableRemoteDebugging(int port)
-
disableRemoteDebugging
public void disableRemoteDebugging()
-
isRemoteDebuggingEnabled
public boolean isRemoteDebuggingEnabled()
-
getRemoteDebuggingPort
public int getRemoteDebuggingPort()
-
validateRemoteDebuggingSupport
private void validateRemoteDebuggingSupport()
-
isRemoteDebuggingSupported
private boolean isRemoteDebuggingSupported()
-
getLatestInstance
@Nullable public SpringCloudAppInstance getLatestInstance()
-
getServiceLinkerModule
public com.microsoft.azure.toolkit.lib.servicelinker.ServiceLinkerModule getServiceLinkerModule()
- Specified by:
getServiceLinkerModulein interfacecom.microsoft.azure.toolkit.lib.servicelinker.ServiceLinkerConsumer
-
-