java.lang.Object
io.ebean.config.ContainerConfig
Configuration for the container that holds the Database instances.
Provides configuration for cluster communication (if clustering is used). The cluster communication is used to invalidate appropriate parts of the L2 cache across the cluster.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the namespace.Return the pod name.int
getPort()
Return the port to use.Return the deployment properties.protected boolean
getProperty
(Properties properties, String key, boolean defaultValue) Return the boolean property setting.Return the service name.boolean
isActive()
Return true if clustering is active.void
loadFromProperties
(Properties properties) Load the settings from properties.void
setActive
(boolean active) Set to true for clustering to be active.void
setNamespace
(String namespace) Set the namespace.void
setPodName
(String podName) Set the pod name.void
setPort
(int port) Set the port to use.void
setProperties
(Properties properties) Set the deployment properties.void
setServiceName
(String serviceName) Set the service name.
-
Constructor Details
-
ContainerConfig
public ContainerConfig()
-
-
Method Details
-
getServiceName
Return the service name. -
setServiceName
Set the service name. -
getNamespace
Return the namespace. -
setNamespace
Set the namespace. -
getPodName
Return the pod name. -
setPodName
Set the pod name. -
getPort
public int getPort()Return the port to use. -
setPort
public void setPort(int port) Set the port to use. -
isActive
public boolean isActive()Return true if clustering is active. -
setActive
public void setActive(boolean active) Set to true for clustering to be active. -
getProperties
Return the deployment properties. -
setProperties
Set the deployment properties. -
loadFromProperties
Load the settings from properties. -
getProperty
Return the boolean property setting.
-