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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the namespace.Return the pod name.intgetPort()Return the port to use.Return the deployment properties.protected booleangetProperty(Properties properties, String key, boolean defaultValue) Return the boolean property setting.Return the service name.booleanisActive()Return true if clustering is active.voidloadFromProperties(Properties properties) Load the settings from properties.voidsetActive(boolean active) Set to true for clustering to be active.voidsetNamespace(String namespace) Set the namespace.voidsetPodName(String podName) Set the pod name.voidsetPort(int port) Set the port to use.voidsetProperties(Properties properties) Set the deployment properties.voidsetServiceName(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.
-