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 String
getNamespace()
Return the namespace.String
getPodName()
Return the pod name.int
getPort()
Return the port to use.Properties
getProperties()
Return the deployment properties.String
getServiceName()
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 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.
-
-