Class StorageConfig.RemoteConnection

  • Enclosing class:
    StorageConfig

    public class StorageConfig.RemoteConnection
    extends java.lang.Object
    The remote connection details/properties
    • Field Summary

      Fields 
      Modifier and Type Field Description
      @NotNull java.lang.String database
      The remote database name
      @NotNull java.lang.String host
      The remote host
      @Nullable java.lang.String password
      The remote password
      int port
      The remote port
      @NotNull java.util.Map<java.lang.String,​java.lang.String> properties
      Additional custom properties for the remote connection
      @NotNull java.lang.String tablePrefix
      The table prefix for the remote database
      Defaults to the plugin name in lowercase with all non-alphanumeric characters removed + an underscore
      @Nullable java.lang.String username
      The remote username
    • Constructor Summary

      Constructors 
      Constructor Description
      RemoteConnection​(@NotNull org.bukkit.configuration.ConfigurationSection section)
      Construct a new StorageConfig.RemoteConnection instance to parse the remote-connection section
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • host

        @NotNull
        public final @NotNull java.lang.String host
        The remote host
      • port

        public final int port
        The remote port
      • database

        @NotNull
        public final @NotNull java.lang.String database
        The remote database name
      • username

        @Nullable
        public final @Nullable java.lang.String username
        The remote username
      • password

        @Nullable
        public final @Nullable java.lang.String password
        The remote password
      • tablePrefix

        @NotNull
        public final @NotNull java.lang.String tablePrefix
        The table prefix for the remote database
        Defaults to the plugin name in lowercase with all non-alphanumeric characters removed + an underscore
      • properties

        @NotNull
        public final @NotNull java.util.Map<java.lang.String,​java.lang.String> properties
        Additional custom properties for the remote connection
    • Constructor Detail

      • RemoteConnection

        public RemoteConnection​(@NotNull
                                @NotNull org.bukkit.configuration.ConfigurationSection section)
        Construct a new StorageConfig.RemoteConnection instance to parse the remote-connection section
        Parameters:
        section - the remote-connection section