org.apache.maven.continuum.configuration
Class DefaultConfigurationService

java.lang.Object
  extended by org.apache.maven.continuum.configuration.DefaultConfigurationService
All Implemented Interfaces:
ConfigurationService

public class DefaultConfigurationService
extends Object
implements ConfigurationService

Version:
$Id: DefaultConfigurationService.java 1412760 2012-11-23 06:28:56Z brett $
Author:
Jason van Zyl

Field Summary
 
Fields inherited from interface org.apache.maven.continuum.configuration.ConfigurationService
DEFAULT_BUILD_QUEUE_NAME, DEFAULT_SCHEDULE_NAME, ROLE
 
Constructor Summary
DefaultConfigurationService()
           
 
Method Summary
 void addBuildAgent(BuildAgentConfiguration buildAgent)
           
 void addBuildAgent(BuildAgentGroupConfiguration buildAgentGroup, BuildAgentConfiguration buildAgent)
           
 void addBuildAgentGroup(BuildAgentGroupConfiguration buildAgentGroup)
           
 boolean containsBuildAgentUrl(String buildAgentUrl, BuildAgentGroupConfiguration buildAgentGroup)
           
 File getApplicationHome()
           
 BuildAgentConfiguration getBuildAgent(String url)
           
 BuildAgentGroupConfiguration getBuildAgentGroup(String name)
           
 List<BuildAgentGroupConfiguration> getBuildAgentGroups()
           
 List<BuildAgentConfiguration> getBuildAgents()
           
 String getBuildOutput(int buildId, int projectId)
           
 File getBuildOutputDirectory()
           
 File getBuildOutputDirectory(int projectId)
           
 File getBuildOutputFile(int buildId, int projectId)
           
 BuildQueueService getBuildQueueService()
           
 ContinuumConfiguration getConfiguration()
           
 BuildQueue getDefaultBuildQueue()
           
 Schedule getDefaultSchedule()
           
 File getDeploymentRepositoryDirectory()
           
 File getFile(String filename)
           
 int getNumberOfBuildsInParallel()
           
 String getReleaseOutput(int projectGroupId, String name)
           
 File getReleaseOutputDirectory()
           
 File getReleaseOutputDirectory(int projectGroupId)
           
 File getReleaseOutputFile(int projectGroupId, String name)
           
 ScheduleDao getScheduleDao()
           
 String getSharedSecretPassword()
           
 SystemConfigurationDao getSystemConfigurationDao()
           
 File getTestReportsDirectory(int buildId, int projectId)
           
 String getUrl()
           
 File getWorkingDirectory()
           
 void initialize()
           
 boolean isDistributedBuildEnabled()
           
 boolean isInitialized()
           
 boolean isLoaded()
           
 void reload()
           
 void removeBuildAgent(BuildAgentConfiguration buildAgent)
           
 void removeBuildAgent(BuildAgentGroupConfiguration buildAgentGroup, BuildAgentConfiguration buildAgent)
           
 void removeBuildAgentGroup(BuildAgentGroupConfiguration buildAgentGroup)
           
 void setApplicationHome(File applicationHome)
           
 void setBuildOutputDirectory(File buildOutputDirectory)
           
 void setBuildQueueService(BuildQueueService buildQueueService)
           
 void setConfiguration(ContinuumConfiguration configuration)
           
 void setDeploymentRepositoryDirectory(File deploymentRepositoryDirectory)
           
 void setDistributedBuildEnabled(boolean distributedBuildEnabled)
           
 void setInitialized(boolean initialized)
           
 void setNumberOfBuildsInParallel(int num)
           
 void setReleaseOutputDirectory(File releaseOutputDirectory)
           
 void setScheduleDao(ScheduleDao scheduleDao)
           
 void setSharedSecretPassword(String sharedSecretPassword)
           
 void setSystemConfigurationDao(SystemConfigurationDao systemConfigurationDao)
           
 void setUrl(String url)
           
 void setWorkingDirectory(File workingDirectory)
           
 void store()
           
 void updateBuildAgent(BuildAgentConfiguration buildAgent)
           
 void updateBuildAgentGroup(BuildAgentGroupConfiguration buildAgentGroup)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConfigurationService

public DefaultConfigurationService()
Method Detail

initialize

public void initialize()
                throws ConfigurationLoadingException,
                       ContinuumConfigurationException
Throws:
ConfigurationLoadingException
ContinuumConfigurationException

getScheduleDao

public ScheduleDao getScheduleDao()

setScheduleDao

public void setScheduleDao(ScheduleDao scheduleDao)

getBuildQueueService

public BuildQueueService getBuildQueueService()

setBuildQueueService

public void setBuildQueueService(BuildQueueService buildQueueService)

getSystemConfigurationDao

public SystemConfigurationDao getSystemConfigurationDao()

setSystemConfigurationDao

public void setSystemConfigurationDao(SystemConfigurationDao systemConfigurationDao)

getConfiguration

public ContinuumConfiguration getConfiguration()

setConfiguration

public void setConfiguration(ContinuumConfiguration configuration)

getApplicationHome

public File getApplicationHome()
Specified by:
getApplicationHome in interface ConfigurationService

setApplicationHome

public void setApplicationHome(File applicationHome)

setInitialized

public void setInitialized(boolean initialized)
Specified by:
setInitialized in interface ConfigurationService

isInitialized

public boolean isInitialized()
Specified by:
isInitialized in interface ConfigurationService

getUrl

public String getUrl()
Specified by:
getUrl in interface ConfigurationService

setUrl

public void setUrl(String url)
Specified by:
setUrl in interface ConfigurationService

getBuildOutputDirectory

public File getBuildOutputDirectory()
Specified by:
getBuildOutputDirectory in interface ConfigurationService
See Also:
ConfigurationService.getBuildOutputDirectory()

setBuildOutputDirectory

public void setBuildOutputDirectory(File buildOutputDirectory)
Specified by:
setBuildOutputDirectory in interface ConfigurationService

getWorkingDirectory

public File getWorkingDirectory()
Specified by:
getWorkingDirectory in interface ConfigurationService

setWorkingDirectory

public void setWorkingDirectory(File workingDirectory)
Specified by:
setWorkingDirectory in interface ConfigurationService

getDeploymentRepositoryDirectory

public File getDeploymentRepositoryDirectory()
Specified by:
getDeploymentRepositoryDirectory in interface ConfigurationService

setDeploymentRepositoryDirectory

public void setDeploymentRepositoryDirectory(File deploymentRepositoryDirectory)
Specified by:
setDeploymentRepositoryDirectory in interface ConfigurationService

getBuildOutput

public String getBuildOutput(int buildId,
                             int projectId)
                      throws ConfigurationException
Specified by:
getBuildOutput in interface ConfigurationService
Throws:
ConfigurationException

getReleaseOutputDirectory

public File getReleaseOutputDirectory()
Specified by:
getReleaseOutputDirectory in interface ConfigurationService

setReleaseOutputDirectory

public void setReleaseOutputDirectory(File releaseOutputDirectory)
Specified by:
setReleaseOutputDirectory in interface ConfigurationService

getBuildAgents

public List<BuildAgentConfiguration> getBuildAgents()
Specified by:
getBuildAgents in interface ConfigurationService

addBuildAgent

public void addBuildAgent(BuildAgentConfiguration buildAgent)
                   throws ConfigurationException
Specified by:
addBuildAgent in interface ConfigurationService
Throws:
ConfigurationException

removeBuildAgent

public void removeBuildAgent(BuildAgentConfiguration buildAgent)
Specified by:
removeBuildAgent in interface ConfigurationService

updateBuildAgent

public void updateBuildAgent(BuildAgentConfiguration buildAgent)
Specified by:
updateBuildAgent in interface ConfigurationService

isDistributedBuildEnabled

public boolean isDistributedBuildEnabled()
Specified by:
isDistributedBuildEnabled in interface ConfigurationService

setDistributedBuildEnabled

public void setDistributedBuildEnabled(boolean distributedBuildEnabled)
Specified by:
setDistributedBuildEnabled in interface ConfigurationService

addBuildAgentGroup

public void addBuildAgentGroup(BuildAgentGroupConfiguration buildAgentGroup)
                        throws ConfigurationException
Specified by:
addBuildAgentGroup in interface ConfigurationService
Throws:
ConfigurationException

removeBuildAgentGroup

public void removeBuildAgentGroup(BuildAgentGroupConfiguration buildAgentGroup)
                           throws ConfigurationException
Specified by:
removeBuildAgentGroup in interface ConfigurationService
Throws:
ConfigurationException

updateBuildAgentGroup

public void updateBuildAgentGroup(BuildAgentGroupConfiguration buildAgentGroup)
                           throws ConfigurationException
Specified by:
updateBuildAgentGroup in interface ConfigurationService
Throws:
ConfigurationException

addBuildAgent

public void addBuildAgent(BuildAgentGroupConfiguration buildAgentGroup,
                          BuildAgentConfiguration buildAgent)
                   throws ConfigurationException
Specified by:
addBuildAgent in interface ConfigurationService
Throws:
ConfigurationException

removeBuildAgent

public void removeBuildAgent(BuildAgentGroupConfiguration buildAgentGroup,
                             BuildAgentConfiguration buildAgent)
                      throws ConfigurationException
Specified by:
removeBuildAgent in interface ConfigurationService
Throws:
ConfigurationException

getBuildAgentGroup

public BuildAgentGroupConfiguration getBuildAgentGroup(String name)
Specified by:
getBuildAgentGroup in interface ConfigurationService

getBuildAgent

public BuildAgentConfiguration getBuildAgent(String url)
Specified by:
getBuildAgent in interface ConfigurationService

getBuildAgentGroups

public List<BuildAgentGroupConfiguration> getBuildAgentGroups()
Specified by:
getBuildAgentGroups in interface ConfigurationService

containsBuildAgentUrl

public boolean containsBuildAgentUrl(String buildAgentUrl,
                                     BuildAgentGroupConfiguration buildAgentGroup)
Specified by:
containsBuildAgentUrl in interface ConfigurationService

getBuildOutputDirectory

public File getBuildOutputDirectory(int projectId)
Specified by:
getBuildOutputDirectory in interface ConfigurationService

getTestReportsDirectory

public File getTestReportsDirectory(int buildId,
                                    int projectId)
                             throws ConfigurationException
Specified by:
getTestReportsDirectory in interface ConfigurationService
Throws:
ConfigurationException

getBuildOutputFile

public File getBuildOutputFile(int buildId,
                               int projectId)
                        throws ConfigurationException
Specified by:
getBuildOutputFile in interface ConfigurationService
Throws:
ConfigurationException

getReleaseOutputDirectory

public File getReleaseOutputDirectory(int projectGroupId)
Specified by:
getReleaseOutputDirectory in interface ConfigurationService

getReleaseOutputFile

public File getReleaseOutputFile(int projectGroupId,
                                 String name)
                          throws ConfigurationException
Specified by:
getReleaseOutputFile in interface ConfigurationService
Throws:
ConfigurationException

getReleaseOutput

public String getReleaseOutput(int projectGroupId,
                               String name)
                        throws ConfigurationException
Specified by:
getReleaseOutput in interface ConfigurationService
Throws:
ConfigurationException

getNumberOfBuildsInParallel

public int getNumberOfBuildsInParallel()
Specified by:
getNumberOfBuildsInParallel in interface ConfigurationService

setNumberOfBuildsInParallel

public void setNumberOfBuildsInParallel(int num)
Specified by:
setNumberOfBuildsInParallel in interface ConfigurationService

getSharedSecretPassword

public String getSharedSecretPassword()
Specified by:
getSharedSecretPassword in interface ConfigurationService

setSharedSecretPassword

public void setSharedSecretPassword(String sharedSecretPassword)
Specified by:
setSharedSecretPassword in interface ConfigurationService

getFile

public File getFile(String filename)
Specified by:
getFile in interface ConfigurationService

isLoaded

public boolean isLoaded()
Specified by:
isLoaded in interface ConfigurationService

reload

public void reload()
            throws ConfigurationLoadingException,
                   ContinuumConfigurationException
Specified by:
reload in interface ConfigurationService
Throws:
ConfigurationLoadingException
ContinuumConfigurationException

store

public void store()
           throws ConfigurationStoringException,
                  ContinuumConfigurationException
Specified by:
store in interface ConfigurationService
Throws:
ConfigurationStoringException
ContinuumConfigurationException

getDefaultSchedule

public Schedule getDefaultSchedule()
                            throws ContinuumStoreException,
                                   ConfigurationLoadingException,
                                   ContinuumConfigurationException,
                                   BuildQueueServiceException
Specified by:
getDefaultSchedule in interface ConfigurationService
Throws:
ContinuumStoreException
ConfigurationLoadingException
ContinuumConfigurationException
BuildQueueServiceException

getDefaultBuildQueue

public BuildQueue getDefaultBuildQueue()
                                throws BuildQueueServiceException
Specified by:
getDefaultBuildQueue in interface ConfigurationService
Throws:
BuildQueueServiceException


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.