Class PostgreSqlServer

  • All Implemented Interfaces:
    com.microsoft.azure.toolkit.lib.common.model.AzResource, com.microsoft.azure.toolkit.lib.common.model.AzResourceBase, 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<PostgreSqlDatabase>
    Direct Known Subclasses:
    PostgreSqlServerDraft

    public class PostgreSqlServer
    extends com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<PostgreSqlServer,​PostgreSqlServiceSubscription,​com.azure.resourcemanager.postgresql.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<PostgreSqlDatabase>
    • Method Detail

      • refreshRemoteFromAzure

        @Nullable
        protected com.azure.resourcemanager.postgresql.models.Server refreshRemoteFromAzure​(@Nonnull
                                                                                            com.azure.resourcemanager.postgresql.models.Server remote)
        Overrides:
        refreshRemoteFromAzure in class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<PostgreSqlServer,​PostgreSqlServiceSubscription,​com.azure.resourcemanager.postgresql.models.Server>
      • 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<PostgreSqlServer,​PostgreSqlServiceSubscription,​com.azure.resourcemanager.postgresql.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<PostgreSqlDatabase>
      • getAdminName

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

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

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

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

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

        @Nullable
        public String getType()
        Specified by:
        getType in interface com.microsoft.azure.toolkit.lib.database.entity.IDatabaseServer<PostgreSqlDatabase>
      • 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<PostgreSqlDatabase>
      • getJdbcUrl

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

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