Interface LocalConfiguration

    • Method Detail

      • getHome

        String getHome()
        Returns:
        the configuration home directory. Note that we're returning a String instead of a File because we want to leave the possibility of using URIs for specifying the home location.
      • setFileHandler

        void setFileHandler​(FileHandler handler)
        Parameters:
        handler - means by which we affect local files.
      • getFileHandler

        FileHandler getFileHandler()
        Returns:
        the means by which we affect local files.
      • setConfigFileProperty

        void setConfigFileProperty​(FileConfig fileConfig)
        set the config file property for a configuration.
        Parameters:
        fileConfig - The FileConfig to use
      • setFileProperty

        void setFileProperty​(FileConfig fileConfig)
        set the file property for a configuration.
        Parameters:
        fileConfig - The FileConfig to use
      • getFileProperties

        List<FileConfig> getFileProperties()
        Returns the file configurations.
        Returns:
        The configuration file properies
      • addDeployable

        void addDeployable​(Deployable deployable)
        Deploy a Deployable in the container. It installs the Deployable in the container's configuration directory.
        Parameters:
        deployable - the Deployable to deploy
      • getDeployables

        List<Deployable> getDeployables()
        Returns:
        the list of Deployables that are going to be deployed in the container when it is started
      • addResource

        void addResource​(Resource resource)
        Add resources the container can take advantage of. I.e. datasources.
        Parameters:
        resource - the Resource to add.
      • getResources

        List<Resource> getResources()
        Returns:
        the list of Resources that are going to be added to the container when it is started.
      • addUser

        void addUser​(User user)
        Add user to container.
        Parameters:
        user - the User to add.
      • getUsers

        List<User> getUsers()
        Returns:
        the list of Users that are going to be added to the container.
      • addDataSource

        void addDataSource​(DataSource dataSource)
        Add data source the container can take advantage of.
        Parameters:
        dataSource - the DataSource to add.
      • getDataSources

        List<DataSource> getDataSources()
        Returns:
        the configured DataSources for this container.
      • applyPortOffset

        void applyPortOffset()
        Apply the port offset to the configuration port properties.
      • revertPortOffset

        void revertPortOffset()
        Revert the port offset on the configuration port properties.
      • isOffsetApplied

        boolean isOffsetApplied()
        Checks whether the offset is already applied or not.
        Returns:
        true if the offset is already applied
      • configure

        void configure​(LocalContainer container)
        Setup the container which means setting up a valid directory structure, setting up configuration files and deploying static deployables.
        Parameters:
        container - the container to configure