Interface PgHost

All Known Implementing Classes:
PgHostImpl

public interface PgHost
An abstraction of database host.

This is a real server where your queries will be executed.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determines whether this host can be a primary host.
    default boolean
     
    Gets the name of this host.
    Gets a valid connection string to this host.
  • Method Details

    • getPgUrl

      @Nonnull String getPgUrl()
      Gets a valid connection string to this host.
      Returns:
      connection url to the host
    • getName

      @Nonnull String getName()
      Gets the name of this host.
      Returns:
      host name
    • canBePrimary

      boolean canBePrimary()
      Determines whether this host can be a primary host.
      Returns:
      true if this host can be a primary host
    • cannotBePrimary

      default boolean cannotBePrimary()