Package io.ebean.config
Class ContainerConfig
- java.lang.Object
-
- io.ebean.config.ContainerConfig
-
public class ContainerConfig extends Object
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 Constructor Description ContainerConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetNamespace()Return the namespace.StringgetPodName()Return the pod name.intgetPort()Return the port to use.PropertiesgetProperties()Return the deployment properties.StringgetServiceName()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 Detail
-
ContainerConfig
public ContainerConfig()
-
-
Method Detail
-
getServiceName
public String getServiceName()
Return the service name.
-
setServiceName
public void setServiceName(String serviceName)
Set the service name.
-
getNamespace
public String getNamespace()
Return the namespace.
-
setNamespace
public void setNamespace(String namespace)
Set the namespace.
-
getPodName
public String getPodName()
Return the pod name.
-
setPodName
public void setPodName(String podName)
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
public Properties getProperties()
Return the deployment properties.
-
setProperties
public void setProperties(Properties properties)
Set the deployment properties.
-
loadFromProperties
public void loadFromProperties(Properties properties)
Load the settings from properties.
-
-