Interface Target

  • All Known Implementing Classes:
    TargetImpl

    public interface Target
    Represents a deployment target.
    Author:
    avasquez
    • Method Detail

      • getId

        String getId()
        Returns the ID of the target.
      • getEnv

        String getEnv()
        Returns the environment of the target.
      • getSiteName

        String getSiteName()
        Returns the site name of the target.
      • getLoadDate

        ZonedDateTime getLoadDate()
        Returns the load date of the target.
      • getStatus

        Target.Status getStatus()
        Returns the status of the target
      • getConfigurationFile

        File getConfigurationFile()
        Returns the YAML configuration file of the target.
      • getConfiguration

        org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> getConfiguration()
        Returns the configuration of the target.
      • getApplicationContext

        org.springframework.context.ConfigurableApplicationContext getApplicationContext()
        Returns this target's Spring application context
      • init

        void init()
        Starts the initialization of the target (asynchronous operation). Called when the create target API is called or the target config is loaded.
      • getPendingDeployments

        Collection<Deployment> getPendingDeployments()
        Returns the pending deployments.
      • getCurrentDeployment

        Deployment getCurrentDeployment()
        Returns the current deployment.
      • getAllDeployments

        Collection<Deployment> getAllDeployments()
        Returns all deployments (pending and current).
      • cleanRepo

        void cleanRepo()
        Performs a cleanup of the local repository.
      • close

        void close()
        Closes the target, releases any open resources and stops any running threads associated to the target.
      • delete

        void delete()
        Deletes the target, executing any delete hooks. Calls close() too.
      • unlock

        void unlock()
        Deletes the git lock file is present in the local repository.