Class MySqlServer

  • All Implemented Interfaces:
    com.microsoft.azure.toolkit.lib.common.model.AzComponent, com.microsoft.azure.toolkit.lib.common.model.AzResource, com.microsoft.azure.toolkit.lib.common.model.Deletable, com.microsoft.azure.toolkit.lib.common.model.Refreshable, com.microsoft.azure.toolkit.lib.common.model.Startable, com.microsoft.azure.toolkit.lib.database.entity.IDatabaseServer<MySqlDatabase>
    Direct Known Subclasses:
    MySqlServerDraft

    public class MySqlServer
    extends com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<MySqlServer,​MySqlServiceSubscription,​com.azure.resourcemanager.mysql.models.Server>
    implements com.microsoft.azure.toolkit.lib.common.model.Deletable, com.microsoft.azure.toolkit.lib.common.model.Startable, com.microsoft.azure.toolkit.lib.database.entity.IDatabaseServer<MySqlDatabase>
    • 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
    • Method Detail

      • getSubModules

        @Nonnull
        public List<com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<?,​?,​?>> getSubModules()
        Specified by:
        getSubModules in class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<MySqlServer,​MySqlServiceSubscription,​com.azure.resourcemanager.mysql.models.Server>
      • loadStatus

        @Nonnull
        protected String loadStatus​(@Nonnull
                                    com.azure.resourcemanager.mysql.models.Server remote)
        Specified by:
        loadStatus in class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<MySqlServer,​MySqlServiceSubscription,​com.azure.resourcemanager.mysql.models.Server>
      • start

        public void start()
        Specified by:
        start in interface com.microsoft.azure.toolkit.lib.common.model.Startable
      • stop

        public void stop()
        Specified by:
        stop in interface com.microsoft.azure.toolkit.lib.common.model.Startable
      • restart

        public void restart()
        Specified by:
        restart in interface com.microsoft.azure.toolkit.lib.common.model.Startable
      • getRegion

        @Nullable
        public com.microsoft.azure.toolkit.lib.common.model.Region getRegion()
        Specified by:
        getRegion in interface com.microsoft.azure.toolkit.lib.database.entity.IDatabaseServer<MySqlDatabase>
      • getAdminName

        @Nullable
        public String getAdminName()
        Specified by:
        getAdminName in interface com.microsoft.azure.toolkit.lib.database.entity.IDatabaseServer<MySqlDatabase>
      • getFullyQualifiedDomainName

        @Nullable
        public String getFullyQualifiedDomainName()
        Specified by:
        getFullyQualifiedDomainName in interface com.microsoft.azure.toolkit.lib.database.entity.IDatabaseServer<MySqlDatabase>
      • isAzureServiceAccessAllowed

        public boolean isAzureServiceAccessAllowed()
        Specified by:
        isAzureServiceAccessAllowed in interface com.microsoft.azure.toolkit.lib.database.entity.IDatabaseServer<MySqlDatabase>
      • isLocalMachineAccessAllowed

        public boolean isLocalMachineAccessAllowed()
        Specified by:
        isLocalMachineAccessAllowed in interface com.microsoft.azure.toolkit.lib.database.entity.IDatabaseServer<MySqlDatabase>
      • getVersion

        @Nullable
        public String getVersion()
        Specified by:
        getVersion in interface com.microsoft.azure.toolkit.lib.database.entity.IDatabaseServer<MySqlDatabase>
      • getType

        @Nullable
        public String getType()
        Specified by:
        getType in interface com.microsoft.azure.toolkit.lib.database.entity.IDatabaseServer<MySqlDatabase>
      • getVCore

        public int getVCore()
      • getStorageInMB

        public int getStorageInMB()
      • getLocalMachinePublicIp

        @Nonnull
        public String getLocalMachinePublicIp()
        Specified by:
        getLocalMachinePublicIp in interface com.microsoft.azure.toolkit.lib.database.entity.IDatabaseServer<MySqlDatabase>
      • getJdbcUrl

        @Nonnull
        public com.microsoft.azure.toolkit.lib.database.JdbcUrl getJdbcUrl()
        Specified by:
        getJdbcUrl in interface com.microsoft.azure.toolkit.lib.database.entity.IDatabaseServer<MySqlDatabase>
      • listDatabases

        @Nonnull
        public List<MySqlDatabase> listDatabases()
        Specified by:
        listDatabases in interface com.microsoft.azure.toolkit.lib.database.entity.IDatabaseServer<MySqlDatabase>
      • isStoppable

        public boolean isStoppable()
        Specified by:
        isStoppable in interface com.microsoft.azure.toolkit.lib.common.model.Startable
      • isStartable

        public boolean isStartable()
        Specified by:
        isStartable in interface com.microsoft.azure.toolkit.lib.common.model.Startable