Package xyz.srnyx.annoyingapi.storage
Class StorageConfig.RemoteConnection
java.lang.Object
eu.okaeri.configs.OkaeriConfig
xyz.srnyx.annoyingapi.file.okaeri.AnnoyingConfig
xyz.srnyx.annoyingapi.file.okaeri.SubConfig<StorageConfig,StorageConfig>
xyz.srnyx.annoyingapi.storage.StorageConfig.RemoteConnection
- Enclosing class:
StorageConfig
The remote connection details/properties
-
Field Summary
FieldsModifier and TypeFieldDescriptionintAdditional custom properties for the remote connectionThe table prefix for the remote database
Defaults to the plugin name in lowercase with all non-alphanumeric characters removed + an underscore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull StringgetDefaultTablePrefix(@NotNull AnnoyingPlugin plugin) Methods inherited from class xyz.srnyx.annoyingapi.file.okaeri.AnnoyingConfig
getAsMethods inherited from class eu.okaeri.configs.OkaeriConfig
asMap, asMap, asMap, configure, get, get, get, getBindFile, getBindFileName, getConfigurer, getContext, getDeclaration, getEffectiveConfigurer, getInternalPath, getInternalState, isSubconfig, load, load, load, load, load, load, load, load, load, migrate, migrate, migrateInternalState, migrateInternalState, save, save, save, saveDefaults, saveToBytes, saveToString, set, setBindFile, setConfigurer, setContext, setDeclaration, setInternalPath, setInternalState, update, updateDeclaration, validate, withBindFile, withBindFile, withBindFile, withConfigurer, withConfigurer, withLogger, withRemoveOrphans, withSerdesPack
-
Field Details
-
host
-
port
public int port -
database
-
username
-
password
-
table_prefix
The table prefix for the remote database
Defaults to the plugin name in lowercase with all non-alphanumeric characters removed + an underscore -
properties
Additional custom properties for the remote connection
-
-
Constructor Details
-
RemoteConnection
-
-
Method Details
-
getDefaultTablePrefix
@NotNull public static @NotNull String getDefaultTablePrefix(@NotNull @NotNull AnnoyingPlugin plugin)
-