Class ContainerConfiguration


  • public class ContainerConfiguration
    extends Object
    The configuration of the container.
    Author:
    Fabio Simeoni, Luca Frosini (ISTI - CNR)
    • Constructor Detail

      • ContainerConfiguration

        public ContainerConfiguration()
    • Method Detail

      • setBaseConfiguration

        protected void setBaseConfiguration​(BaseConfiguration baseConfiguration)
      • setProperties

        protected void setProperties​(Map<String,​String> properties)
      • setSite

        protected void setSite​(Site site)
      • setProxy

        protected void setProxy​(ProxyAddress proxy)
      • setAccountingFallbackLocation

        protected void setAccountingFallbackLocation​(String accountingFallbackLocation)
      • setPersistenceConfiguration

        protected void setPersistenceConfiguration​(PersistenceConfiguration persistenceConfiguration)
      • mode

        public Mode mode()
        Returns the management mode for the container.
        Returns:
        the management mode
      • apps

        public List<ApplicationConfiguration> apps()
        Returns the application configurations included in this configuration.
        Returns:
        the application configurations
      • app

        public ApplicationConfiguration app​(String context)
        Returns the configuration of an application with a given context path.
        Parameters:
        context - the context path
        Returns:
        the application configuration
      • site

        public Site site()
        Returns the geographical site of the container.
        Returns:
        the site
      • infrastructure

        public String infrastructure()
        Returns the infrastructure in which the container is running.
        Returns:
        the infrastructure
      • hostname

        public String hostname()
        Returns the host name of the container.
        Returns:
        the host name;
      • port

        public int port()
        Returns the port at which the container is listening for requests.
        Returns:
        the port
      • protocol

        public String protocol()
        Returns the port at which the container is listening for requests.
        Returns:
        the port
      • authorizeChildrenContext

        public boolean authorizeChildrenContext()
      • proxy

        public ProxyAddress proxy()
        Returns the proxy of the container.
        Returns:
        the proxy
      • persistenceConfiguration

        public PersistenceConfiguration persistenceConfiguration()
        Returns the persistence manager of the container.
        Returns:
        the manager
      • accountingFallbackLocation

        public String accountingFallbackLocation()
        Returns the persistence manager of the container.
        Returns:
        the manager
      • authorizationConfiguration

        public AuthorizationProviderConfiguration authorizationConfiguration()
        Returns the authorization configuration.
        Returns:
        AuthorizationProviderConfiguration the configuration
      • properties

        public Map<String,​String> properties()
        Returns the configuration properties of the container.
        Returns:
        the properties
      • publicationFrequency

        public long publicationFrequency()
        Returns the publication frequency for the container's profile.
        Returns:
        the frquency;
      • validate

        public void validate()
        Validates this configuration
        Throws:
        IllegalStateException - if the configuration is invalid