Class RemoteStorage
java.lang.Object
com.codingchili.core.configuration.system.RemoteStorage
configuration settings for a remote storage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHost()intgetPort()io.vertx.core.json.JsonObjectbooleanbooleanisSecure()setDatabase(String database)setPersisted(boolean persisted)setPersistInterval(int persistInterval)voidsetProperties(io.vertx.core.json.JsonObject properties)voidsetSecure(boolean secure)
-
Constructor Details
-
RemoteStorage
- Parameters:
host- the hostname of the remote storageport- the port of the remote storagedatabase- the database identifier of the remote storage.
-
RemoteStorage
public RemoteStorage()
-
-
Method Details
-
isPersisted
public boolean isPersisted()- Returns:
- true if the contents of the database is persisted to disk. does not apply to storages that are persisted to disk by default. May not be supported.
-
setPersisted
- Parameters:
persisted- indicates that the contents of volatile storages should be flushed to disk in some manner. Does not apply to storages that store their content on disk. May not be supported.- Returns:
- fluent
-
getDatabase
- Returns:
- the database identifier of the remote configuration.
-
setDatabase
- Parameters:
database- sets the database identifier of the remote storage.- Returns:
- fluent
-
getHost
- Returns:
- Returns the hostname of the remote storage.
-
setHost
- Parameters:
host- sets the hostname of the remote storage.- Returns:
- fluent
-
getPort
- Returns:
- the port number of the remote storage.
-
setPort
- Parameters:
port- sets the port number of the remote storage.- Returns:
- fluent
-
getPersistInterval
public int getPersistInterval()- Returns:
- the interval in MS which a database should be persisted for non-disk storages. Only applies if persist is set. May not be supported.
-
setPersistInterval
- Parameters:
persistInterval- sets the interval in ms which a database should be persisted for non-disk storages. Only applies if persist is set. May not be supported.- Returns:
- fluent.
-
isSecure
public boolean isSecure()- Returns:
- true if the storage plugin should attempt to use a secure connection. If the plugin supports security and fails to enable it an error must be thrown and storage initialization fail.
-
setSecure
public void setSecure(boolean secure)- Parameters:
secure- indicates that this storage must be loaded with a secure connection.
-
getProperties
public io.vertx.core.json.JsonObject getProperties()- Returns:
- extra configuration properties used to customize the database.
-
setProperties
public void setProperties(io.vertx.core.json.JsonObject properties)- Parameters:
properties- extra configuration properties used to customize the database.
-