Module io.ebean.api

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 Details

    • ContainerConfig

      public ContainerConfig()
  • Method Details

    • 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.
    • getProperty

      protected boolean getProperty(Properties properties, String key, boolean defaultValue)
      Return the boolean property setting.